Introduction
The Distribution API is the partner-facing channel for pool-based flight distribution. It lets approved partners search flights, re-price offers, hold seats, and create orders on behalf of their customers.
The API is a two-phase flow:
-
Mint a session — the partner signs a request with their pre-shared secret (HMAC-SHA256) and exchanges it for a short-lived, scope-limited Bearer token (JWT).
-
Call endpoints — every other endpoint is called with
Authorization: Bearer <token>. The token carries the partner identity, settlement currency, locale, and the granted scopes.
Important: Each airline has their own specific domain. The API endpoints are hosted on airline-specific domains.
Base URL Pattern: https://{your-airline-domain}/api
Important: All API endpoints are prefixed with /api due to the servlet context path configuration.
To get your partner credentials and airline’s API domain, contact your technical integration manager. Onboarding and operational procedures (secret generation, rotation, kill switches) are covered separately in the partner onboarding guide.
Authentication
Phase 1 — Minting a session
POST /distribution/v1/sessions is the only unauthenticated endpoint. It is protected by an HMAC signature instead of a Bearer token. The partner sends the following headers:
| Header | Description |
|---|---|
|
The partner’s UUID, as issued during onboarding. |
|
Unix epoch seconds at the time of the request. Requests outside the allowed clock-skew window are rejected. |
|
A unique value per request (UUIDv4 recommended). Replayed nonces are rejected. |
|
Hex-encoded HMAC-SHA256 of the canonical message (see below), keyed with the partner’s pre-shared secret. |
The canonical message that is signed is the newline-joined tuple:
<partner_id>\n<timestamp>\n<nonce>\n<sha256_hex(request_body_bytes)>
Example using openssl:
BODY='{"locale":"en_US","currency":"USD","scopes":["search:read","fare:read"]}'
TIMESTAMP=$(date +%s)
NONCE=$(uuidgen | tr 'A-Z' 'a-z')
BODY_HASH=$(printf '%s' "$BODY" | openssl dgst -sha256 -hex | awk '{print $2}')
SIGNATURE=$(printf '%s\n%s\n%s\n%s' "$PARTNER_ID" "$TIMESTAMP" "$NONCE" "$BODY_HASH" \
| openssl dgst -sha256 -hmac "$PARTNER_SECRET" -hex | awk '{print $2}')
Phase 2 — Calling endpoints
All other endpoints require the minted token:
Authorization: Bearer <access_token>
Scopes
The token is granted a subset of scopes — the intersection of what the partner requests and what the partner is entitled to. Each endpoint requires a specific scope; a token missing the required scope receives 403 SCOPE_INSUFFICIENT.
| Scope | Grants access to |
|---|---|
|
Flight search |
|
Offer re-pricing |
|
Seat holds and order creation |
|
Reading order details |
|
Listing available and selected ancillaries for an order |
|
Adding ancillaries to an order |
|
Listing available and selected special assistance (SSR) for an order |
|
Adding special assistance (SSR) to an order |
|
Reading the partner wallet balance and transaction statement |
Airline scoping
Requests may include an optional X-Airline-ID header. When present, it must match the partner’s configured airline; a mismatch is rejected with 403 AUTHZ_FAILED. When absent, the airline is resolved from the partner record.
Error Format
All errors share a consistent JSON envelope:
{
"code": "SCOPE_INSUFFICIENT",
"message": "session token does not carry the scope required by this endpoint"
}
Common codes:
| HTTP | Code | Meaning |
|---|---|---|
400 |
|
Request body or parameters failed validation. |
400 |
|
Passenger composition violates inventory rules. |
400 |
|
The |
401 |
|
Bearer token absent. |
401 |
|
Token no longer valid. |
403 |
|
Token lacks the scope required by the endpoint. |
403 |
|
|
404 |
|
Order does not exist or is not owned by the partner. |
404 |
|
Hold does not exist, expired, or is not owned by the partner. |
404 |
|
A |
409 |
|
Capacity is unavailable for the requested composition. |
409 |
|
The order has multiple active bookings (e.g. after a partial-split exchange); resolve per pax-segment. |
409 |
|
Special assistance or an ancillary addition was requested before the booking was activated (i.e. before the order was paid). |
409 |
|
The order cannot be refunded. From the refund quote: the order has no PAID invoice to refund from. From |
410 |
|
Offer or hold is no longer available. |
429 |
|
Per-partner rate limit exceeded. |
500 |
|
Unexpected internal error. Every |
503 |
|
A backing service was unavailable: partner-order ownership could not be persisted on |
|
Note
|
When an Idempotency-Key is supplied on Create Order or Add Assistance, the idempotency layer surfaces failures in a slightly different envelope where code is a numeric domain code rather than a string: a blank/too-long key returns 400, and a replay while the original request is still in flight returns 409. This does NOT apply to Refund Order: its Idempotency-Key is required but informational — the refund path does not use the idempotency layer, so it never returns the numeric envelope or a replay-in-flight 409. Add Ancillaries currently accepts the header but ignores it — the idempotency layer is bypassed while post-payment additions are unavailable, so the numeric envelope never appears there.
|
|
Note
|
A non-UUID {orderId} path parameter returns 400 INVALID_REQUEST on every /distribution/v1/orders/{orderId}/… endpoint.
|
Rate Limiting
Each partner has a configured requests-per-second limit. Exceeding it returns 429 RATE_LIMIT_EXCEEDED.
Statuses
Every status you can observe in the API, and how it changes. Where a value exists in the platform but never reaches the partner channel, this section says so. Do not build against those.
Order status
status on the order. You get it from Create Order, Get Order, Confirm Wallet Payment, Cancel Exchange, and a successful Settle Exchange Payment.
Three other responses use a field of the same name for their own vocabulary: Commit Exchange, the 202 of Settle Exchange Payment, and Refund Order. Each is described where it is returned. Do not resolve those values against the table below, even when they spell REFUNDED or PARTIALLY_REFUNDED.
A partner order moves through:
| Status | Meaning |
|---|---|
|
Order created and held, awaiting payment. Its invoice is |
|
Payment captured and the booking is active. This is the working state of a paid order, and it survives exchanges. It says nothing about tickets. |
|
A |
|
The order was cancelled before payment. Terminal. |
|
Part of the order has been refunded and settled. Only an airline-side refund reaches this state. Your own Refund Order call leaves the order |
|
The whole order has been refunded and settled. Same source as |
Before payment: CONFIRMED → ACTIVATED on payment, CONFIRMED → EXPIRED when the payment window elapses, CONFIRMED → CANCELLED when the order is cancelled first. There is no partner cancel endpoint, so you cannot drive CANCELLED yourself. It is not always airline-initiated either. If the payment system cancels the order’s payment intent, the order is cancelled with nobody acting on it, and the outstanding invoice is voided on the way, so invoice.status then reads CANCELLED rather than ISSUED. Do not read CANCELLED as "the airline cancelled us".
After payment, an airline-side refund moves ACTIVATED → PARTIALLY_REFUNDED → REFUNDED, or straight to REFUNDED when the whole order goes at once. Most of the time you will see ACTIVATED, plus the terminal EXPIRED and CANCELLED. The two refunded states appear only on orders the airline refunded for you.
|
Note
|
A refund you initiate does not change the order status. The money is returned and the order stays ACTIVATED, so confirm it from the Refund Order response and the wallet statement rather than from the order. PARTIALLY_REFUNDED and REFUNDED are real, reachable states, but only an airline-side refund produces them. Your own call never will. Read them when you see them, and never treat their absence as proof that no refund happened. Nothing at all assigns PAID or PARTIALLY_PAID, so do not depend on them. status_reason is not part of the order payload, so expect no such field rather than a null one. DRAFT is a transient pre-confirm state you will never receive.
|
Order-item status
status on each item in items[] (see Get Order). An order is a flat list of items: a flight for a passenger, an ancillary, a fee. This is the per-item state.
| Status | Meaning |
|---|---|
|
Live item. |
|
An item that was superseded when an exchange was paid. It covers the whole replaced flight block, not just the flight leg. The flight item and everything attached to it (taxes, discounts, ancillaries) go |
|
The item is no longer live. Two different things put it here. A pending (unpaid) exchange that is cancelled or expires leaves its new items |
|
The item was refunded out. Only an airline-side refund produces it. See the note below. |
|
Note
|
A refund you initiate does not change the item. It stays ACTIVE, because Refund Order never touches the order aggregate (see the note there). The automatic refund that follows a flight cancellation (see Flight status) leaves the items ACTIVE too. REFUNDED is written only when airline staff refund the order themselves and the money settles, and not even on every such refund. So REFUNDED may well appear on your order, but never treat its absence as proof that no refund happened. Confirm every refund from the Refund Order response and the wallet statement, not from the item status.
|
|
Note
|
While an exchange is committed but unpaid, the new items are ACTIVE alongside the old ones, which are ACTIVE too. No status marks the exchange as pending, and the order stays ACTIVATED. total_amount sums ACTIVE items only, so for that whole window it counts both the old and the new legs plus the exchange penalty, and it drops to the real figure once the exchange is paid and the old items become EXCHANGED. Track a pending exchange by the invoice_id returned by Commit Exchange with status: PENDING_PAYMENT. No endpoint reads a single invoice by id, so poll Get Order and match invoice.invoice_id against it. invoice always reports the most recently issued invoice, which during that window is the exchange invoice (see Invoice status). Match on the id rather than the status. An ISSUED invoice on its own does not tell you which invoice it belongs to.
|
|
Note
|
type on an item is one of FLIGHT (a flight leg or one of its price components), ANCILLARY, TAX, DISCOUNT, TRANSACTION_FEE (booking and transaction fees) or PENALTY (an exchange penalty). Parse it as an open set. More types may appear, and one value that exists in the platform is never assigned today, so it will not reach you.
|
Refund status
status in the Refund Order response. This is a different field from the order status above, and it reuses two of the same words. It is exactly one of PROCESSING, REFUNDED or PARTIALLY_REFUNDED, and it describes the refund of the booking, never the state of the order.
PROCESSING means the refund was accepted and is still settling. REFUNDED and PARTIALLY_REFUNDED mean the booking side of the refund has completed. The credit reaches your wallet separately, so reconcile the money from GET /distribution/v1/wallet/transactions either way.
|
Note
|
Reading REFUNDED here does not mean the order status moved. After a refund you initiate, the order stays ACTIVATED and its items stay ACTIVE (see Order status and Order-item status). Do not feed this field into the same mapping you use for the order and item statuses.
|
Invoice status
invoice.status (see Get Order). The invoice field is the most recently issued invoice for the order.
| Status | Meaning |
|---|---|
|
Awaiting payment. |
|
Settled. |
|
Voided because the order, or a pending exchange, was cancelled. |
|
Not paid before the payment-due date. |
|
Note
|
Every committed exchange issues a delta invoice, including an involuntary or free one. From then on, invoice reflects that invoice’s lifecycle rather than the original purchase invoice, and it never reverts to the earlier one. If the delta invoice is cancelled or expires, invoice.status keeps reporting CANCELLED or EXPIRED on an order that is fully paid and ACTIVATED, until a newer invoice is issued on it. invoice.status is the status of one invoice, never a status of the order, so read order liveness from status and items[].status. A refund does not change the invoice at all. invoice.status keeps whatever it already had: PAID when the newest invoice is the paid purchase invoice, and still CANCELLED or EXPIRED when the newest one is a cancelled or expired delta invoice.
|
|
Note
|
The invoice payload carries no reason field. invoice gives you invoice_id, status, amount, currency, payment_due_date, payment_intent_id, issued_at and paid_at, and nothing else. There is no reason or status_reason, so the payload never tells you why an invoice was cancelled or expired, nor whether it is the original purchase invoice or an exchange delta. Identify it by invoice_id, matching the id Commit Exchange returned.
|
Ticket
There is no ticket status value. ticketed (boolean, see Get Order) is true when every live flight leg on the order sits on a booking in a paid state and at least one of those legs carries an e-ticket number. It is an order-level flag, not a per-passenger one, so ticketed: true does not promise a number for every passenger. An infant travelling on an adult’s ticket has none, and Get Order Ticket returns a null eticket_number for such a passenger. Get Order Ticket applies its own gate: the order must resolve to a single booking, that booking must be paid, and at least one passenger on it must carry an e-ticket number. Read ticketed: true as the moment to call it, not as a guarantee of what it will answer.
|
Note
|
ticketed reflects issuance, not current validity, and it is not a receipt for your refund in either direction. Refunding only some passengers (pax_segment_ids) never moves it. It stays true throughout, and the refunded passenger keeps a ticket number. Refunding the whole order is different. From your Refund Order call until the refund settles, which is the window Refund Order reports as PROCESSING, ticketed reads false and both Get Order Ticket and the ticket PDF answer 409 TICKET_NOT_AVAILABLE. Once it settles, ticketed returns to true and the same ticket numbers are served again. An airline-side refund that settles behaves the other way round: the refunded legs leave ACTIVE, so ticketed can read false while Get Order Ticket still answers 200 with the old numbers. Read neither value as a refund result. Confirm refunds from the Refund Order response and the wallet statement. There is no separate ticket status beyond this boolean.
|
|
Note
|
ticketed also turns false on a live, paid order for reasons that have nothing to do with issuance. It is false for as long as an exchange is committed and unpaid, because the order then carries a second, still-unpaid booking. It is false again when an airline cancellation takes every flight segment of the order. A cancellation that hits only one leg of a multi-leg itinerary leaves the rest live, and ticketed stays true. So never read ticketed as a cancellation signal. Poll flight_status for that. Get Order Ticket returns 409 TICKET_NOT_AVAILABLE during that same exchange window, because the order has more than one live booking. An exchange issues a new booking, so once it is paid the PNR and every eticket_number are new. Re-read Get Order Ticket rather than caching them.
|
|
Note
|
ticketed fails closed. If the platform cannot resolve issuance state for the order, Get Order reports ticketed: false rather than failing, so a single false reading is not proof that no e-ticket exists. Re-read before acting on it.
|
Flight status
flight_status on flight-leg items (see Get Order) reports the airline’s operation on the booked flight. When the flight behind an item cannot be resolved, the key is omitted rather than sent as null. Treat an absent flight_status as unknown and re-read it. Never default it to SCHEDULED.
| Status | Meaning |
|---|---|
|
The airline has neither cancelled nor rescheduled the flight. This is the default value, so it is also what a delayed, already-departed or already-arrived flight reports. It is not a positive confirmation that the flight is running to plan. |
|
The airline cancelled the flight. |
|
The airline changed the flight’s time. |
|
Note
|
Delayed, departed, arrived and re-routed are not reported yet. flight_status is independent of the order status. A CANCELLED flight can coexist with a paid order, and after the disruption is processed the order, its items and the invoice are left as they were. Only the money moves. ticketed is the one exception. If the cancellation takes every flight on the order, ticketed turns false the moment the cancellation is processed, before any money moves, and it may turn back to true once the automatic refund settles. If it takes only some of the flights, ticketed stays true throughout. So do not read ticketed as "this order is still live" on a disrupted order. Detect the cancellation from flight_status, and reconcile the money from the wallet statement.
|
|
Important
|
When the airline cancels a flight, the affected segments of an already-paid partner order are refunded automatically, whenever the airline applies its involuntary-refund rule to them. You do not call Refund Order for them. Two cases produce no automatic refund: the airline may re-accommodate the passengers onto an alternative flight instead, and an order that was not yet paid has nothing to return. A Refund Order call that names those segments in pax_segment_ids is rejected with 409 ORDER_NOT_REFUNDABLE once they are refunding. A whole-order call (pax_segment_ids omitted) is not rejected. It silently skips the segments already refunding and refunds everything else that is still refundable. On a round trip whose other direction was not cancelled, that refunds the flight your passenger is still going to take. Never use the whole-order form to probe whether the automatic refund has happened, and do not read a 409 from it as that signal either. That form returns 409 ORDER_NOT_REFUNDABLE only when nothing on the order is refundable any more, including when the remaining segments are merely past the refund time limit before departure. The API does not call you back, and there is no partner-facing webhook, so detect the cancellation by polling flight_status and reconcile the money from the wallet statement (GET /distribution/v1/wallet/transactions). Treat flight_status: CANCELLED as something to reconcile, not something to act on.
|
Endpoints Summary
| Method | Endpoint | Scope | Description |
|---|---|---|---|
POST |
|
— (HMAC) |
Mint a session token |
GET |
|
any valid token |
Bearer-authenticated smoke test |
POST |
|
|
Pool-based flight search (one-way or round-trip) |
GET |
|
|
Dates with available flights for an O/D + range, each with the minimum price |
GET |
|
|
Available O/D destinations on the channel |
GET |
|
|
Pre-booking catalog of purchasable ancillaries for a flight |
GET |
|
|
Pre-booking seat map: price tiers + full per-seat cabin enumeration |
GET |
|
|
Machine-readable booking rules for 1–2 flights (passenger composition, age tiers, per-flight quotas) |
POST |
|
|
Batch re-price pool offers |
POST |
|
|
Per-pax ADT/CHD/INF price breakdown for a pool offer |
POST |
|
|
Hold seats on a pool offer |
POST |
|
|
Create an order from a hold |
GET |
|
|
Get order details |
GET |
|
|
Get the order e-ticket (PNR + ticket numbers) |
GET |
|
|
Download the e-ticket / itinerary receipt PDF |
GET |
|
|
Get a read-only refund quote for the full order |
POST |
|
|
Quote an exchange (preview delta + penalty) without committing |
POST |
|
|
Commit an exchange (leaves a delta invoice to settle) |
POST |
|
|
Settle an exchange delta from the partner wallet |
POST |
|
|
Cancel an unpaid exchange |
POST |
|
|
Refund a partner-owned order (full or partial) |
POST |
|
|
Confirm payment and settle from the partner wallet |
GET |
|
|
List available and selected ancillaries |
POST |
|
|
Add ancillaries to an order |
GET |
|
|
List available and selected special assistance |
POST |
|
|
Add special assistance to an order |
GET |
|
|
Partner wallet balance (credit limit, balance, available) |
GET |
|
|
Partner wallet statement (paginated) |
API Endpoints
Each request block below lists the headers that endpoint requires. Every endpoint except Mint Session requires the Authorization: Bearer <access_token> header; requests that carry a JSON body also require Content-Type: application/json.
Mint Session
Exchanges an HMAC-signed request for a short-lived Bearer token. See Authentication for the signing scheme.
HTTP Request
POST /distribution/v1/sessions Content-Type: application/json X-Partner-Id: <partner_uuid> X-Timestamp: <unix_epoch_seconds> X-Nonce: <unique_per_request> X-Signature: <hmac_sha256_hex>
Request Body
{
"locale": "en_US",
"currency": "USD",
"cart_id": null,
"scopes": ["search:read", "fare:read", "order:write", "order:read"]
}
|
Note
|
currency is the session’s settlement currency — the order, its invoice, and the wallet payment are all denominated in it (as are /search and /offer prices). It must be a currency the airline accepts for settlement (its domestic currency, or one of its configured payment currencies) and for which an exchange rate is available; otherwise minting is rejected with 400 CURRENCY_NOT_SUPPORTED. Payment settles against the partner’s wallet in that same currency, so for a non-domestic settlement currency the partner must already hold a wallet provisioned in it before an order can be paid — funding a foreign-currency wallet through the admin UI is not yet supported.
|
Response
{
"session_id": "5f8d0a2c-1b3e-4c6a-9f1d-2e3b4c5d6e7f",
"access_token": "<jwt>",
"expires_at": "2026-07-15T12:30:00Z",
"token_type": "Bearer",
"scopes": ["search:read", "fare:read", "order:write", "order:read"]
}
The returned scopes reflect what was actually granted (the intersection of requested and entitled scopes), so the partner can detect any gap.
Ping
A smoke-test endpoint that echoes the caller’s identity from the Bearer token. Useful to confirm the mint → bearer pipeline works.
HTTP Request
GET /distribution/v1/ping Authorization: Bearer <access_token>
Response
{
"partner_id": "f8cc4f24-8f68-4ade-9033-ec1402fe1836",
"session_id": "5f8d0a2c-1b3e-4c6a-9f1d-2e3b4c5d6e7f",
"server_time": "2026-07-15T12:00:00Z"
}
Search Flights
Pool-based flight search. Requires scope search:read.
|
Note
|
Itineraries are direct (single-leg) only; connections are a later milestone. Supplying return_date makes this a round-trip search. A one-way search returns offers; a round-trip returns outbound_offers (each carrying the valid_return_offer_ids it can be combined with) plus a deduped return_offers list. Every offer_id is a real pool-offer id. Each leg is priced in round-trip mode — if the airline configures a global round-trip discount it is already included in the per-leg total_price — so the trip price is the sum of the chosen outbound and return offers.
|
|
Note
|
The request currency must equal the session currency (the currency minted into the token); a mismatch is rejected with 400 INVALID_REQUEST. This keeps /search and /offer prices comparable — both are denominated in the session currency.
|
HTTP Request
POST /distribution/v1/search Authorization: Bearer <access_token> Content-Type: application/json
Request Body
{
"origin": "ALA",
"destination": "OSS",
"outbound_date": "2026-07-15",
"pax": { "adt": 1, "chd": 0, "inf": 0 },
"currency": "USD"
}
Response
The call always returns 200 OK; offers may be empty when no pool offers match.
{
"offers": [
{
"offer_id": "22222222-0000-0000-0000-000000000001",
"fare_frame_id": "ffffffff-0000-0000-0000-000000000001",
"available_seats": 9,
"flight_legs": [
{
"flight_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"flight_number": "FA101",
"origin": "ALA",
"origin_name": "Almaty International Airport",
"origin_city": "Almaty",
"destination": "OSS",
"destination_name": "Osh Airport",
"destination_city": "Osh",
"aircraft": "A320",
"departure_date": "2026-07-15",
"arrival_date": "2026-07-15",
"departure_time": "08:00",
"arrival_time": "09:00",
"duration_minutes": 60
}
],
"pricing": {
"base_price": 50.00,
"fare_price": 10.00,
"total_price": 60.00,
"currency": "USD",
"adt_count": 1,
"chd_count": 0,
"inf_count": 0
}
}
],
"currency": "USD"
}
available_seats is the route-level seat availability. base_price (pool base) and fare_price (selected fare frame’s fare) are per-seat, in the session currency. total_price is the indicative party total — per-pax-type discounts and taxes applied, so it is not (base_price + fare_price) × total pax; it may differ from the amount charged at order creation by a currency-rounding residual and order-level fees. A per-pax-type (ADT/CHD/INF) breakdown is available from the dedicated pricing endpoint.
For a round-trip request (with return_date), the response carries outbound_offers + return_offers instead of offers. Each outbound lists the valid_return_offer_ids it can pair with; the trip price is the sum of the chosen outbound and return offers (each leg priced in round-trip mode, with the airline’s global round-trip discount — if configured — already included):
{
"outbound_offers": [
{
"offer_id": "22222222-0000-0000-0000-000000000001",
"fare_frame_id": "ffffffff-0000-0000-0000-000000000001",
"available_seats": 5,
"flight_legs": [ { "flight_id": "bbbbbbbb-...", "origin": "ALA", "destination": "OSS", "...": "..." } ],
"valid_return_offer_ids": [ "22222222-0000-0000-0000-000000000002" ],
"pricing": { "base_price": 50.00, "fare_price": 10.00, "total_price": 60.00, "currency": "USD", "adt_count": 1, "chd_count": 0, "inf_count": 0 }
}
],
"return_offers": [
{
"offer_id": "22222222-0000-0000-0000-000000000002",
"fare_frame_id": "ffffffff-0000-0000-0000-000000000001",
"available_seats": 3,
"flight_legs": [ { "flight_id": "dddddddd-...", "origin": "OSS", "destination": "ALA", "...": "..." } ],
"pricing": { "base_price": 30.00, "fare_price": 0.00, "total_price": 30.00, "currency": "USD", "adt_count": 1, "chd_count": 0, "inf_count": 0 }
}
],
"currency": "USD"
}
To book, pass the outbound offer_id as pool_offer_id and one of its valid_return_offer_ids as return_pool_offer_id to POST /orders/holds.
Re-price Offers
Re-checks a batch of pool offers by id. Requires scope fare:read. The whole call returns 200 OK; the partner inspects each entry’s status. Up to 100 ids per call.
current_price is the authoritative per-seat (1 adult) price — base + fare + per-seat taxes — computed
by the same pricing engine as /search and order creation, in the session currency (the currency
minted into the token), so re-price, search and the charged amount are directly comparable. A bare
offer_id carries no trip context, so current_price is always the one-way price: for a leg of a
round trip it excludes the airline’s global round-trip discount (if configured) that round-trip
/search and the order apply. An offer
with multiple fare frames quotes its cheapest frame (a "from" price); when none of the offer’s frames
can currently be priced (e.g. no seat available), current_price is null. Each result is also enriched with
fares: one entry per fare_frame_id carrying the marketed fare name, baggage allowance, and
change/refund rules. Change/refund `amount_value`s are expressed in the session currency.
HTTP Request
POST /distribution/v1/offer Authorization: Bearer <access_token> Content-Type: application/json
Request Body
{ "offer_ids": ["22222222-0000-0000-0000-000000000001"] }
Response
{
"results": [
{
"offer_id": "22222222-0000-0000-0000-000000000001",
"status": "VALID",
"current_price": 50.00,
"currency": "USD",
"fare_frame_ids": ["ffffffff-0000-0000-0000-000000000001"],
"fares": [
{
"fare_frame_id": "ffffffff-0000-0000-0000-000000000001",
"fare_name": "Flex Economy",
"baggage": [
{
"type": "CHECKIN_BAGGAGE",
"quantity": 1,
"weight": 23,
"weight_concept": "PIECE_SLOT"
}
],
"change_refund_rules": [
{
"type": "REFUND_BEFORE_DEPARTURE",
"amount_value": 50.00,
"amount_type": "PERCENT",
"time_before_departure_hours": 120
}
]
}
]
}
]
}
Per-offer status is one of VALID, NOT_FOUND, or EXPIRED. A NOT_FOUND entry carries a null current_price/currency and empty fares. fares is empty when the offer’s fare details cannot be resolved.
Failure case: 503 SERVICE_UNAVAILABLE when the pricing/fare-detail service is temporarily unavailable — safe to retry.
Price Offer
Returns an indicative per-passenger-type (ADT/CHD/INF) price breakdown and total for a single pool offer, using the same per-pax fares and taxes as the order flow (not a ratio estimate). Requires scope fare:read. The breakdown is denominated in the session currency.
|
Note
|
The breakdown is indicative, not a binding total. The authoritative total is computed at order creation and may differ by a currency-rounding residual (per-pax amounts are converted and summed here; the order converts the aggregate once) and by order-level fees, which are applied at booking. |
offer_id and fare_frame_id come from a /search offer. For an offer taken from a round-trip search pass "round_trip": true — the breakdown then includes the airline’s global round-trip discount (if configured) and matches the per-leg /search total_price; without it the offer is priced one-way. The call returns 404 OFFER_NOT_AVAILABLE if the offer/fare frame is not priceable, 409 OFFER_SOLD_OUT if it is not available for the requested passengers, and 503 SERVICE_UNAVAILABLE on a downstream failure.
HTTP Request
POST /distribution/v1/offers/pricing Authorization: Bearer <access_token> Content-Type: application/json
Request Body
{
"offer_id": "22222222-0000-0000-0000-000000000001",
"fare_frame_id": "ffffffff-0000-0000-0000-000000000001",
"pax": { "adt": 2, "chd": 1, "inf": 1 },
"round_trip": false
}
Response
{
"offer_id": "22222222-0000-0000-0000-000000000001",
"currency": "USD",
"total_price": 285.00,
"per_pax": [
{ "pax_type": "ADT", "count": 2, "unit_price": 100.00, "subtotal": 200.00 },
{ "pax_type": "CHD", "count": 1, "unit_price": 75.00, "subtotal": 75.00 },
{ "pax_type": "INF", "count": 1, "unit_price": 10.00, "subtotal": 10.00 }
]
}
unit_price is the per-passenger fare including per-pax taxes and charges; subtotal = unit_price × count; total_price is the sum of the subtotals. Order-level fees, if any, are applied at booking.
Flight Calendar
Returns the dates that have available flights for an origin/destination within a date range, each with the minimum sellable price, so a partner can render a price calendar. Requires scope search:read.
|
Note
|
The calendar reflects direct (single-leg) flights only, consistent with /search — every listed date is searchable as a direct flight for the same O/D.
|
dates[].min_price is the engine total_price of the date’s cheapest sellable offer candidate for the requested passenger composition — base + fare + per-pax taxes with pax-type discounts applied, priced by the same engine as /search, in the session currency (currency echoes it). Guaranteed never lower than any /search total; in rare configurations (flights on one date carrying different pax-type discount groups) it may name a slightly pricier offer than /search’s minimum. The composition is set by the optional `adt/chd/inf query parameters (defaults 1/0/0); adt is 1..9, chd/inf are 0..9, inf must not exceed adt, and the total must not exceed 9 — the same rules the airline’s own IBE enforces. min_price is null when the date is available by quota but none of its offers can currently be priced for the party.
The range is bounded: outbound_date_from must not be after outbound_date_to, and the span must not exceed 62 days — otherwise the call returns 400 INVALID_REQUEST. A downstream availability-service failure returns 503 SERVICE_UNAVAILABLE.
|
Tip
|
For a round-trip price calendar call the endpoint twice with the O/D reversed and sum the two min_price`s — the sum is the flight-price total for the trip booked as two one-way orders (order-level fees, if configured, apply at booking — as everywhere in this API). For a single round-trip order treat the sum as indicative only: the airline’s global round-trip discount (if configured) makes the round-trip order cheaper than two one-ways, while the shared-`fare_frame_id pairing rule of round-trip /search can push the cheapest bookable pair above the two independent minima.
|
HTTP Request
GET /distribution/v1/calendar?origin=ALA&destination=OSS&outbound_date_from=2026-07-01&outbound_date_to=2026-07-31&adt=2&chd=1 Authorization: Bearer <access_token>
Response
The call returns 200 OK; dates may be empty when no flights are available in the range.
{
"dates": [
{"date": "2026-07-03", "min_price": 11000.00},
{"date": "2026-07-10", "min_price": 12500.00},
{"date": "2026-07-17", "min_price": null}
],
"currency": "USD"
}
Available Routes
Returns the origin/destination pairs available on the channel as a nested origin→destinations tree, enriched with airport and city names. Requires scope search:read. A downstream failure returns 503 SERVICE_UNAVAILABLE.
|
Note
|
This list reflects direct (single-leg) O/D pairs only, consistent with /search — every pair is searchable as a direct flight.
|
HTTP Request
GET /distribution/v1/routes Authorization: Bearer <access_token>
Response
The call returns 200 OK; routes may be empty.
{
"routes": [
{
"airport_code": "ALA",
"airport_name": "Almaty International Airport",
"city_name": "Almaty",
"destinations": [
{
"airport_code": "OSS",
"airport_name": "Osh Airport",
"city_name": "Osh"
}
]
}
]
}
Flight Ancillary Catalog
Returns the catalog of purchasable extra-service ancillaries (baggage, services) available for a flight, before any order exists — the pre-booking equivalent of the order-scoped List Ancillaries. Requires scope search:read. A downstream failure returns 503 SERVICE_UNAVAILABLE.
Prices are denominated in the partner session currency. Each entry carries the common fields (offer_id, offer_frame_id, category, name, price, max_per_pax) plus the fields specific to its category (omitted when not applicable).
|
Note
|
Two ancillary kinds are served elsewhere and are not in this catalog: seat selection has its own Flight Seat Map endpoint, and change/refund conditions are returned with the fare in Re-price Offers. |
HTTP Request
GET /distribution/v1/flights/{flightId}/ancillaries
Authorization: Bearer <access_token>
Response
The call returns 200 OK; ancillaries may be empty.
{
"flight_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"currency": "USD",
"ancillaries": [
{
"offer_id": "11111111-0000-0000-0000-000000000001",
"offer_frame_id": "ffffffff-0000-0000-0000-000000000001",
"category": "BAGGAGE",
"name": "Extra 23kg",
"price": 10.00,
"max_per_pax": 2,
"baggage_type": "CHECKIN_BAGGAGE",
"weight": 23,
"weight_concept": "PIECE_SLOT"
}
]
}
Failure cases: 400 INVALID_REQUEST (non-UUID {flightId}), 503 SERVICE_UNAVAILABLE (offer/ancillary service unavailable — safe to retry).
Flight Seat Map
Returns the full cabin map for a flight, before any order exists: the seat-selection price tiers (tiers — tier type, cabin, the currently-sellable seat numbers in the tier, price, and a render colour) plus a per-seat enumeration of the whole cabin (seats, DEL-2297). Requires scope search:read. Prices are denominated in the partner session currency.
|
Note
|
In tiers, already-taken seats — assigned in DCS or held by a pending (unpaid) order — are excluded, so only currently-sellable seats are listed, and a seat sold by more than one tier appears once, in its cheapest tier. seats is the physical complement: every seat of the cabin with its live status; selling stays expressed by tiers — join the two by seat number.
|
seats[] semantics:
-
statusis the seat’s physical state:AVAILABLE,OCCUPIED(assigned in DCS or held by a pending unpaid order — occupancy is time-varying, a held seat frees up when the order expires), orBLOCKED(blocked by the airline in the aircraft configuration). -
To buy a seat listed in a paid tier, send that tier’s
offer_frame_idinancillary_offersplus the matchingseat_assignmentonPOST /orders; a seat in a zero-price tier or in no tier at all is requested with a bareseat_assignment. A seat whose paid tiers are all temporarily sold out appearsAVAILABLEbut outside every tier and is rejected at order creation — re-fetch the seat map and pick again. -
restrictions(omitted when empty) lists passenger types the airline does not seat there: a seat with["CHD","INF"]cannot be assigned to a child or an infant (enforced at order/check-in time). -
seatsmay be absent when aircraft-configuration data is temporarily unavailable —tiersremains authoritative for selling.
|
Tip
|
Airlines: rows not intended for sale (e.g. crew rest) should be blocked in the aircraft configuration (BLOCKED_TO_ALL) — an unmapped AVAILABLE seat is requestable free of charge.
|
HTTP Request
GET /distribution/v1/flights/{flightId}/seatmap
Authorization: Bearer <access_token>
Response
The call returns 200 OK; tiers may be empty.
{
"flight_id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
"currency": "USD",
"tiers": [
{
"offer_id": "11111111-0000-0000-0000-000000000002",
"offer_frame_id": "ffffffff-0000-0000-0000-000000000002",
"seat_selection_type": "SEAT_SELECTED",
"cabin_class": "ECONOMY",
"name": "Front seat",
"price": 20.00,
"seat_numbers": ["1A"],
"color": "#00FF00"
}
],
"seats": [
{ "number": "1A", "status": "AVAILABLE" },
{ "number": "1B", "status": "OCCUPIED" },
{ "number": "2B", "status": "BLOCKED" },
{ "number": "2C", "status": "AVAILABLE", "restrictions": ["CHD"] }
]
}
Failure cases: 400 INVALID_REQUEST (non-UUID {flightId}), 503 SERVICE_UNAVAILABLE (offer/seat service unavailable — safe to retry).
Rules
Returns the machine-readable booking rules the partner should enforce client-side, so a booking form validates against the same source of truth the API does instead of hardcoding constants. The rules object is an extensible envelope: it will grow new named sections (and existing sections new fields) over time — clients MUST ignore unknown keys, and an absent section means "not published", never "no constraint". Breaking changes ship only under a new API version. Requires scope search:read.
The endpoint is flight-scoped: supply one flight_id (one-way) or two (round trip) — flight_id is required. It returns the passenger-composition rules (max_pax, adult_required, infant_per_adult); pax_types — the ADT/CHD/INF age boundaries resolved for the journey’s combined direction (any international leg makes the whole journey international, which can widen or narrow the child/infant bands; use them to validate passenger dates of birth, with age_reference naming the date the age is taken at — the outbound departure); and each flight’s special-quota ceilings in context.flights[].quotas.
|
Note
|
Per-adult ratios. infant_per_adult is 1 (inf ⇐ adt). There is no child-per-adult ratio — children are bounded only by max_pax and seat availability (so one adult may travel with up to eight children). Infants count toward max_pax but occupy no seat (occupies_seat: false).
|
|
Note
|
Unaccompanied minors. An unaccompanied minor is not a bookable passenger type — there is no UM pax type or flag in the request, and pax_types never lists UNN. Because every booking must contain at least one adult (adult_required), the minimum age to travel without an accompanying adult equals the airline’s ADT age_min in pax_types. Caveat: a lone passenger whose age falls in the airline’s UM band (which may overlap the adult band — e.g. 12–15) can be booked as the required adult; the airline then applies its own unaccompanied-minor handling (the per-flight UNN quota in context.flights[].quotas and a departure-time window) after the order is created, and that handling is not surfaced in this API.
|
|
Note
|
Per-flight special quotas. Each flight carries configured special-quota ceilings by passenger type, reported as context.flights[].quotas (e.g. { "ADT": …, "CHD": …, "INF": …, "UNN": … }; a type appears only when the flight configures it). These are the configured limits, independent of seat availability, not live remaining availability. On the partner path the infant (INF) quota is the enforced one: a flight that cannot fit your infants is omitted from /search, and POST /orders returns 409 OFFER_SOLD_OUT when infant capacity is exhausted, even after a successful hold (holds do not reserve infant capacity). The other quotas are the airline’s operational ceilings and are not separately enforced on the partner booking path.
|
HTTP Request
GET /distribution/v1/rules?flight_id={outbound}
GET /distribution/v1/rules?flight_id={outbound}&flight_id={inbound}
Authorization: Bearer <access_token>
Response
The call returns 200 OK (age boundaries and quota values below are illustrative — they come from the airline’s configuration for the resolved flights):
{
"rules": {
"pax_composition": {
"max_pax": 9,
"adult_required": true,
"infant_per_adult": 1,
"age_reference": "OUTBOUND_DEPARTURE_DATE",
"pax_types": [
{ "code": "ADT", "age_min": 12, "age_max": 99, "occupies_seat": true },
{ "code": "CHD", "age_min": 2, "age_max": 11, "occupies_seat": true },
{ "code": "INF", "age_min": 0, "age_max": 1, "occupies_seat": false }
]
}
},
"context": {
"direction": "INTERNATIONAL",
"flights": [
{ "flight_id": "aaaaaaaa-1111-2222-3333-444444444444", "flight_number": "FZ100", "quotas": { "ADT": 180, "CHD": 20, "INF": 20, "UNN": 5 } },
{ "flight_id": "bbbbbbbb-1111-2222-3333-444444444444", "flight_number": "FZ101", "quotas": { "ADT": 180, "CHD": 20, "INF": 12, "UNN": 5 } }
]
}
}
Failure cases: 400 INVALID_REQUEST (missing flight_id, more than two values, duplicate ids, or a non-UUID flight_id), 404 FLIGHT_NOT_FOUND (a supplied flight_id does not exist).
Hold Seats
Reserves seats on a pool offer for a configurable time-to-live, giving the partner time to collect passenger details before creating an order. Requires scope order:write.
For a round-trip (DEL-1710), also supply return_pool_offer_id (one of the chosen outbound offer’s valid_return_offer_ids from /search). Both legs are held under one hold_id and share the outbound fare_frame_id (the round-trip search prices them under one fare frame). The return offer is validated as a genuine reverse leg — it must fly the outbound’s destination back to its origin and leave at least the airline’s minimum connection time after the outbound arrives (the same min-time-between-routes rule the order step enforces, so a hold never succeeds for a pairing the order would reject); otherwise the hold is rejected with 400 INVALID_RETURN_PAIRING and nothing is reserved. If the return leg can’t be held the whole hold fails (nothing is reserved) and the return-leg outcome is returned. The resulting /orders call then books both legs as one round-trip order.
HTTP Request
POST /distribution/v1/orders/holds Authorization: Bearer <access_token> Content-Type: application/json
Request Body
{
"pool_offer_id": "22222222-0000-0000-0000-000000000001",
"fare_frame_id": "ffffffff-0000-0000-0000-000000000001",
"pax": { "adt": 1, "chd": 0, "inf": 0 },
"return_pool_offer_id": "22222222-0000-0000-0000-000000000002"
}
return_pool_offer_id is optional — omit it for a one-way hold. The return leg reuses the outbound fare_frame_id.
Response
201 Created:
{
"hold_id": "66666666-6666-6666-6666-666666666666",
"expires_at": "2026-07-15T12:15:00Z"
}
Failure cases: 409 OFFER_SOLD_OUT, 409 SUBQUOTA_EXCEEDED, 410 OFFER_NOT_AVAILABLE, 400 INVALID_PAX_COMPOSITION, 400 INVALID_RETURN_PAIRING.
Create Order
Creates an order from a previously obtained hold. For a round-trip hold the order covers both legs — total_amount is the whole trip: the sum of the per-leg /search prices, plus order-level fees if the airline configures them, and possibly a currency-rounding residual on non-domestic settlement currencies — as everywhere in this API. Requires scope order:write.
This endpoint is idempotent — callers MUST supply an Idempotency-Key header (UUIDv4 recommended). Repeating the call with the same key returns the original order instead of creating a duplicate.
HTTP Request
POST /distribution/v1/orders Authorization: Bearer <access_token> Content-Type: application/json Idempotency-Key: <uuid>
Request Body
{
"hold_id": "66666666-6666-6666-6666-666666666666",
"passengers": [
{
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1990-01-01",
"gender": "MALE",
"citizenship": "US",
"document_type": "PASSPORT",
"document_number": "123456789",
"document_expiry_date": "2030-01-01"
}
],
"contact": {
"name": "John Doe",
"phone": "+1234567890",
"email": "john@example.com"
}
}
Seat selection
Each passengers[] entry may include seat_assignments and ancillary_offers (both optional, default empty). flight_id is the leg id from Search Flights (offers[].flight_legs[].flight_id); offer_frame_id and seat_number come from Flight Seat Map. The seat is booked on order creation, before payment.
A free seat needs only a seat_assignment and does not change total_amount:
{
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1990-01-01",
"seat_assignments": [
{ "flight_id": "3c4d5e6f-7a8b-9012-cdef-0123456789ab", "seat_number": "6D" }
]
}
A paid seat needs a seat_assignment plus a matching ancillary_offer: its offer_frame_id (a seat-map tier) must cover the assigned seat, and quantity must equal the number of matched seats. The tier price is added to total_amount:
{
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1990-01-01",
"seat_assignments": [
{ "flight_id": "3c4d5e6f-7a8b-9012-cdef-0123456789ab", "seat_number": "1A" }
],
"ancillary_offers": [
{ "offer_frame_id": "4d5e6f7a-8b9c-0123-def0-123456789abc", "flight_id": "3c4d5e6f-7a8b-9012-cdef-0123456789ab", "quantity": 1 }
]
}
An infant (age < 2) does not need its own seat: give the infant the same seat_number as an accompanying adult and it is attached to the adult’s seat at no charge.
Response
201 Created:
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "CONFIRMED",
"currency": "USD",
"total_amount": 50.00
}
Failure cases: 404 HOLD_NOT_FOUND, 410 HOLD_EXPIRED, 409 OFFER_SOLD_OUT (the held offer sold out before the order could be created — the hold is a soft reservation, not an inventory lock; search again and re-hold), 410 OFFER_NOT_AVAILABLE (the flight closed for sale between hold and create), 503 SERVICE_UNAVAILABLE (safe to retry with the same Idempotency-Key). Seat and ancillary problems return 400 INVALID_REQUEST: a paid seat assigned without a matching ancillary_offer; an ancillary_offer whose offer_frame_id matches no assigned seat; quantity not equal to the number of matched seats; a seat_number that does not exist on the flight; a seat already taken; a flight_id not part of the passenger’s itinerary; or more than one seat for the same passenger on one flight.
Get Order
Returns order details for a partner-owned order. Requires scope order:read. Partners can only read their own orders; an unknown or foreign order returns 404 ORDER_NOT_FOUND.
HTTP Request
GET /distribution/v1/orders/{orderId}
Authorization: Bearer <access_token>
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "CONFIRMED",
"currency": "USD",
"total_amount": 6000.00,
"ticketed": false,
"contact": { "name": "John Doe", "phone": "+1234567890", "email": "john@example.com" },
"items": [
{
"item_id": "0a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9",
"type": "FLIGHT",
"status": "ACTIVE",
"description": "Flight f1600cfb… for ALMANBET ZHUMABAI UULU",
"amount": 0.00,
"hold_expires_at": null,
"leg_net_amount": 6000.00,
"flight_id": "f1600cfb-6daf-4a04-ba7d-c8f0f0621f11",
"flight_status": "SCHEDULED"
},
{
"item_id": "1b2c3d4e-5f60-7182-93a4-b5c6d7e8f901",
"type": "FLIGHT",
"status": "ACTIVE",
"description": "FARE component",
"amount": 500.00,
"hold_expires_at": null,
"linked_item_id": "0a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9"
},
{
"item_id": "2c3d4e5f-6071-8293-a4b5-c6d7e8f90123",
"type": "FLIGHT",
"status": "ACTIVE",
"description": "POOL_OFFER component",
"amount": 5500.00,
"hold_expires_at": null,
"linked_item_id": "0a1b2c3d-4e5f-6071-8293-a4b5c6d7e8f9"
}
],
"invoice": {
"invoice_id": "1a2b3c4d-5e6f-7081-9203-a4b5c6d7e8f9",
"status": "ISSUED",
"amount": 6000.00,
"currency": "USD",
"payment_due_date": "2026-07-15T13:00:00Z",
"payment_intent_id": "99999999-3333-0000-0000-000000000001",
"issued_at": "2026-07-15T12:00:00Z",
"paid_at": null
}
}
|
Note
|
A flight is represented as a flight-leg anchor row plus its price-component rows — all type:
FLIGHT. The anchor carries leg_net_amount (fare + pool offer − discounts, the leg price to show the
passenger) and no linked_item_id; its own amount is 0. Each price-component row instead carries
linked_item_id pointing back to its anchor and no leg_net_amount. So among type: FLIGHT rows the
anchor is the one with leg_net_amount (equivalently, the one without linked_item_id) — that is the
exchangeable leg. Pass only anchors into an exchange’s items_to_replace; passing a price-component row is
rejected with 409 (order.exchange.item-not-anchor) — distinct from a malformed request
(INVALID_REQUEST) or an unavailable offer.
|
|
Note
|
The flight-leg anchor also carries flight_id (the inventory flight the leg is booked on) and
flight_status — the operational status of that flight: SCHEDULED normally, or CANCELLED / RESCHEDULED
when the airline disrupts the flight (IROP). Poll it to detect a disruption to a booked flight. Departed and
arrived states are not reported yet. Price-component rows omit both fields.
|
|
Note
|
ticketed tells you whether e-tickets have been issued for the order’s current flight segments.
Payment does not guarantee it: Confirm Wallet Payment can return 202 with ticketing deferred to the
PAYMENT_CAPTURED webhook, so status: ACTIVATED and invoice.status: PAID can appear while ticketed
is still false. Poll this field instead of probing Get Order Ticket (which returns
409 TICKET_NOT_AVAILABLE until issuance); once ticketed is true, fetch the e-ticket numbers there.
ticketed reflects the order’s current flight legs — it is true only while their booking is paid and
e-tickets are assigned, so it stays false before issuance, for an airline that does not issue e-tickets,
and after the booking is cancelled or refunded.
|
Get Order Ticket
Returns the air ticket for a partner-owned order — the record locator (PNR) and per-passenger
e-ticket numbers — so the passenger can check in and board. The ticket is issued by Farel as carrier.
Requires scope order:read.
E-tickets exist only after the order has been paid and ticketed (see Confirm Wallet Payment). Before
that the endpoint returns 409 TICKET_NOT_AVAILABLE. An unknown or foreign order returns
404 ORDER_NOT_FOUND. A passenger without a separate document (e.g. an infant) is still listed, with a
null eticket_number.
|
Note
|
For the printable document use Get Order Ticket PDF. |
HTTP Request
GET /distribution/v1/orders/{orderId}/ticket
Authorization: Bearer <access_token>
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"pnr": "ABC123",
"passengers": [
{
"passenger_id": "33333333-3333-3333-3333-333333333333",
"first_name": "John",
"last_name": "Doe",
"eticket_number": "0571234567890"
}
]
}
Get Order Ticket PDF
Renders the passenger e-ticket (itinerary receipt) PDF for a paid and ticketed order — the same
document served on the airline’s own channels, with per-airline branding. Requires scope order:read.
lang selects the document language per request (default en_US; supported: en_US, ru_RU,
fr_FR, es_ES, pt_PT, ky_KG — anything else renders en_US, while the filename’s language
tag echoes the requested locale; an unparseable value returns 400 INVALID_REQUEST). Gates are
identical to Get Order Ticket: an unpaid/unticketed order returns 409 TICKET_NOT_AVAILABLE,
an unknown or foreign order returns 404 ORDER_NOT_FOUND.
The response body is the PDF itself: Content-Type: application/pdf and
Content-Disposition: attachment; filename*=UTF-8''… with a localized filename, e.g.
Eticket AB12CD (en).pdf. Error responses remain JSON (DistributionErrorResponse).
HTTP Request
GET /distribution/v1/orders/{orderId}/ticket/pdf?lang=ru_RU
Authorization: Bearer <access_token>
Quote Exchange
Prices a single-leg, single-direction exchange of the FLIGHT items in items_to_replace onto a
pool offer (pool_offer_id / fare_frame_id) and returns the extra amount (delta) and change penalty
the customer would owe — WITHOUT committing the exchange and WITHOUT persisting anything (pricing runs in a
rolled-back transaction). Requires scope order:read. Use it to preview an exchange before committing.
Pass the returned delta back as expected_delta when committing the exchange, so the commit is rejected
if the price moved in between. A downgrade prices to a delta of 0 — the fare drop is forfeited, not
refunded, and that lost amount is reported as forfeited_amount so you can show it to the passenger before
they confirm. An involuntary exchange — the airline cancelled or rescheduled the flight — is free of penalty
and delta: involuntary is true and free_reason names why (ALTERNATIVE_FLIGHT or INVOLUNTARY_FULL).
valid_until is advisory; the commit re-checks the price regardless.
A malformed request — items_to_replace empty, listing the same item twice, or naming an item that is not
on the order — returns 400 INVALID_REQUEST. An unknown or foreign order returns 404 ORDER_NOT_FOUND. An
exchange the engine cannot make — multi-leg or multi-direction, exchanging only some passengers of a booking,
ancillaries on the changing leg, past the change cut-off, and similar — returns 409 EXCHANGE_NOT_ELIGIBLE;
a target offer that is sold out, no longer available, or over its subquota returns 409 OFFER_SOLD_OUT /
OFFER_NOT_AVAILABLE / SUBQUOTA_EXCEEDED. All amounts are in the order’s currency, echoed as currency.
HTTP Request
POST /distribution/v1/orders/{orderId}/exchanges/quote
Authorization: Bearer <access_token>
Content-Type: application/json
Request Body
{
"items_to_replace": ["a1b2c3d4-e5f6-7890-1234-56789abcdef0"],
"pool_offer_id": "b2c3d4e5-f6a7-8901-2345-6789abcdef01",
"fare_frame_id": "c3d4e5f6-a7b8-9012-3456-789abcdef012"
}
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"delta": 33.00,
"penalty": 5.00,
"forfeited_amount": 0.00,
"involuntary": false,
"free_reason": null,
"currency": "USD",
"valid_until": "2026-08-05T12:00:00Z"
}
Commit Exchange
Commits the exchange previewed by Quote Exchange. Pass the quoted delta and penalty back as
expected_delta and expected_penalty: if the live price no longer matches — because inventory or fares
moved since the quote — the commit is rejected with 409 EXCHANGE_PRICE_CHANGED, and the partner should
re-quote. Requires scope order:write. The Idempotency-Key header is required; repeating a commit with the
same key replays the original result rather than exchanging twice — but while the original commit is still in
flight, a repeat with the same key returns 409 IDEMPOTENCY_CONFLICT.
On success the exchange is committed and the new booking lands awaiting the delta payment. The response
carries status (PENDING_PAYMENT while a delta invoice is outstanding, or COMMITTED when nothing is
payable) and, when pending, the invoice_id, amount_to_pay (which may be 0), and payment_intent_id.
Settle it with Settle Exchange Payment against that invoice_id — the exchange delta invoice is settled
by that dedicated endpoint, not by the initial-purchase Confirm Wallet Payment. The same eligibility and
availability rejections as Quote Exchange apply (EXCHANGE_NOT_ELIGIBLE, OFFER_SOLD_OUT,
OFFER_NOT_AVAILABLE, SUBQUOTA_EXCEEDED).
HTTP Request
POST /distribution/v1/orders/{orderId}/exchanges
Authorization: Bearer <access_token>
Content-Type: application/json
Idempotency-Key: 6f9619ff-8b86-d011-b42d-00cf4fc964ff
Request Body
{
"items_to_replace": ["a1b2c3d4-e5f6-7890-1234-56789abcdef0"],
"pool_offer_id": "b2c3d4e5-f6a7-8901-2345-6789abcdef01",
"fare_frame_id": "c3d4e5f6-a7b8-9012-3456-789abcdef012",
"expected_delta": 33.00,
"expected_penalty": 5.00
}
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "PENDING_PAYMENT",
"invoice_id": "e5f6a7b8-c9d0-1234-5678-9abcdef01234",
"amount_to_pay": 33.00,
"payment_intent_id": "f6a7b8c9-d0e1-2345-6789-abcdef012345",
"involuntary": false,
"free_reason": null
}
Settle Exchange Payment
Debits the partner wallet for the exchange delta invoice returned by Commit Exchange and finalizes the
exchanged booking. invoice_id is the one from the commit response; payment_reference doubles as the
idempotency key and is stored against the wallet transaction for reconciliation. A 0-amount delta is settled
the same way. Requires scope order:write.
If the wallet is debited but ticketing cannot complete synchronously the response is 202 with status: TICKETING_DEFERRED and the
PAYMENT_CAPTURED webhook finalizes the booking. In the rarer case where the wallet is debited but the
exchange cannot be finalized and cannot be safely deferred, the response is 500 WALLET_SETTLEMENT_INCONSISTENT
and the debit is flagged for reconciliation (the exchange is not activated). An insufficient wallet limit
returns 402 INSUFFICIENT_WALLET_LIMIT; an already-settled or non-payable delta
returns 409.
HTTP Request
POST /distribution/v1/orders/{orderId}/exchanges/{invoiceId}/payments/confirm
Authorization: Bearer <access_token>
Content-Type: application/json
Request Body
{
"payment_reference": "psp-pay-9f12ab34"
}
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "ACTIVATED",
"transaction_ids": ["cccccccc-cccc-cccc-cccc-cccccccccccc"]
}
Cancel Exchange
Cancels an exchange whose delta invoice has not been paid, restoring the original booking. invoice_id is the
exchange delta invoice from the commit response. Requires scope order:write and a required Idempotency-Key
header. A paid or already-cancelled exchange returns 409 EXCHANGE_NOT_CANCELLABLE; an unknown order or
invoice returns 404.
HTTP Request
POST /distribution/v1/orders/{orderId}/exchanges/{invoiceId}/cancel
Authorization: Bearer <access_token>
Idempotency-Key: 6f9619ff-8b86-d011-b42d-00cf4fc964ff
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "ACTIVATED"
}
Get Refund Quote
Returns a read-only refund quote for a partner-owned order — the net refundable amount, the penalty, and an
informational gross fare / tax-and-charge / ancillary breakdown — without running the refund and without
locking the order. Requires scope order:read. Use this to preview what a voluntary refund would return
before committing to it.
refundable_amount is the authoritative total — the amount that would be credited to the partner — and
penalty_amount is the withheld penalty. The fare_refund_amount, tax_and_charge_refund_amount, and
offer_refund_amount fields are an informational gross breakdown of the refunded fare, tax-and-charge, and
ancillary portions ONLY; they do not break out order-level fees or discounts and therefore do not
necessarily sum to refundable_amount plus penalty_amount when the order carries fees or discounts.
v1 quotes the FULL order only; partial or offer-only scopes are planned as future work. An unknown or
foreign order returns 404 ORDER_NOT_FOUND. An order with no PAID invoice to refund from is not
refundable and returns 409 ORDER_NOT_REFUNDABLE; an order with multiple active bookings after an
exchange returns 409 BOOKING_AMBIGUOUS. All amounts are expressed in the order’s currency.
The non_refundable_reason field carries a machine-readable cause when a refund is blocked by the departure
time cutoff — currently the only value, TIME_LIMIT_ELAPSED — and is null otherwise. Beyond the invoice and
booking checks above, the quote applies the SAME departure time cutoff as POST …/refund: once the
voluntary-refund window before departure has elapsed, the quote returns 200 with
non_refundable_reason: "TIME_LIMIT_ELAPSED" and the amount fields still describing what WOULD have been
refundable, instead of promising an amount that the refund would then reject with 409 ORDER_NOT_REFUNDABLE.
It captures the time cutoff specifically, not every non-refundable state: an order with no PAID invoice is
still rejected by the checks above with 409 ORDER_NOT_REFUNDABLE, while an already-refunded order returns a
quote with refundable_amount of 0 and non_refundable_reason of null. Treat a positive refundable_amount
together with non_refundable_reason == null as the go-ahead. Involuntary refunds (airline-driven cancel or
reschedule) are not blocked by this cutoff.
HTTP Request
GET /distribution/v1/orders/{orderId}/refund-quote
Authorization: Bearer <access_token>
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"currency": "USD",
"refundable_amount": 180.00,
"penalty_amount": 20.00,
"fare_refund_amount": 150.00,
"tax_and_charge_refund_amount": 30.00,
"offer_refund_amount": 20.00,
"non_refundable_reason": null,
"involuntary": false
}
When the voluntary-refund window before departure has closed, the same call returns the computed amounts but marks the order non-refundable:
{
"order_id": "77777777-7777-7777-7777-777777777777",
"currency": "USD",
"refundable_amount": 180.00,
"penalty_amount": 20.00,
"fare_refund_amount": 150.00,
"tax_and_charge_refund_amount": 30.00,
"offer_refund_amount": 20.00,
"non_refundable_reason": "TIME_LIMIT_ELAPSED",
"involuntary": false
}
Refund Order
Refunds a partner-owned order via the booking-refund engine. Requires scope order:write. By default the
FULL order is refunded; supply pax_segment_ids to refund only those pax-segments (partial). The refund is
ASYNCHRONOUS: the endpoint returns 200 immediately with a booking-derived refund status, and the partner’s
wallet is credited automatically once farel-os-payments settles it — the partner is NOT credited
synchronously and the response carries no credit-note or PSP refund reference (those surface on the wallet
statement).
The Idempotency-Key header is required (for consistency with the other write endpoints) but is NOT
currently used to replay a prior refund. A retry does not replay the original refund; instead, re-refunding
already-refunded pax-segments is rejected by a segment-state guard with 409 ORDER_NOT_REFUNDABLE instead
of being refunded again. A missing (or blank) Idempotency-Key header returns 400 INVALID_REQUEST. An
unknown or foreign order returns 404 ORDER_NOT_FOUND; an order not in a refundable state returns
409 ORDER_NOT_REFUNDABLE; an order with multiple active bookings after an exchange returns
409 BOOKING_AMBIGUOUS. A broken internal invariant while refunding returns 500 INTERNAL_ERROR.
The returned status is a booking-derived refund status — exactly one of PROCESSING, REFUNDED, or
PARTIALLY_REFUNDED (it is NOT the order-level OrderStatus and is never ACTIVATED/PAID). PROCESSING
means the refund was accepted and settlement is still completing asynchronously; the booking moves to
REFUNDED / PARTIALLY_REFUNDED once settled.
|
Note
|
The commercial order is intentionally left ACTIVATED with no credit-note issued (DEL-1881).
GET /distribution/v1/orders/{orderId} does NOT reflect the refund — do not poll the order to confirm a
refund. The wallet statement (GET /distribution/v1/wallet/transactions) is the source of truth for
settlement.
|
HTTP Request
POST /distribution/v1/orders/{orderId}/refund
Authorization: Bearer <access_token>
Idempotency-Key: a3b2c1d0-e4f5-6789-abcd-ef0123456789
Request Body
{
"pax_segment_ids": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"]
}
Omit pax_segment_ids (or send an empty array) to refund the whole order.
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "PROCESSING"
}
Confirm Wallet Payment
Confirms an externally-collected payment for a partner-owned order and settles it from the partner’s
wallet. Requires scope order:write. The amount is taken server-side from the order’s invoice; the body
carries only the PSP payment_reference (the unique payment id from the partner’s payment provider). The
wallet is debited within its credit limit and the order is ticketed.
The payment_reference is the idempotency / dedup key: because a PSP payment id is unique per payment,
replaying the same payment_reference does not double-debit or double-ticket (a replay after success returns
409 ORDER_ALREADY_PAID), and the value is stored against the wallet transaction so it can be matched back
to the partner’s own PSP statement via GET /distribution/v1/wallet/transactions.
A 200 means the wallet was debited and the order is ticketed. A 202 means the wallet was debited but
ticketing is still completing asynchronously — poll GET /distribution/v1/orders/{orderId} (which requires
the order:read scope) for the final status. A missing, blank, or over-long payment_reference returns
400 INVALID_REQUEST in the standard distribution error envelope.
Errors: 400 INVALID_REQUEST (missing, blank, or over-long payment_reference),
402 INSUFFICIENT_WALLET_LIMIT (available limit below the invoice total; no debit, checked atomically by
the wallet settlement service), 409 ORDER_ALREADY_PAID, 409 ORDER_NOT_PAYABLE (invoice not in a payable
state, or the order is already activated — only the initial-purchase invoice is settled here),
404 ORDER_NOT_FOUND (unknown or foreign order), 502 WALLET_PAYMENT_FAILED (settlement service error),
500 WALLET_SETTLEMENT_INCONSISTENT (wallet debited but the order went terminal and cannot be ticketed —
under reconciliation), 503 SERVICE_UNAVAILABLE (the partner-order ownership store was momentarily
unreachable — a retriable infrastructure failure, distinct from a 404).
HTTP Request
POST /distribution/v1/orders/{orderId}/payments/confirm
Authorization: Bearer <access_token>
Content-Type: application/json
{
"payment_reference": "psp-pay-9f12ab34"
}
Response
{
"order_id": "77777777-7777-7777-7777-777777777777",
"status": "ACTIVATED",
"transaction_ids": ["cccccccc-cccc-cccc-cccc-cccccccccccc"]
}
List Ancillaries
Lists the ancillaries (extra baggage, change-and-refund, other services) available for an order, together with those already selected, grouped by passenger and pax-segment. Requires scope ancillary:read. Seat selection is not included (separate endpoint, later milestone).
The orderId is resolved to its booking internally. An order with multiple active bookings (post-exchange) returns 409 BOOKING_AMBIGUOUS.
|
Note
|
available is empty until the booking is activated (i.e. until the order is paid) — ancillaries are offered for addition only post-payment. Services wanted before payment go into POST /orders (ancillary_offers) and are paid together with the flight.
|
HTTP Request
GET /distribution/v1/orders/{orderId}/ancillaries
Authorization: Bearer <access_token>
Response
{
"currency": "USD",
"passengers": [
{
"passenger_id": "aaaaaaaa-0000-0000-0000-000000000001",
"first_name": "John",
"last_name": "Doe",
"segments": [
{
"pax_segment_id": "bbbbbbbb-0000-0000-0000-000000000001",
"available": [
{
"offer_frame_id": "cccccccc-0000-0000-0000-000000000001",
"ancillary_id": "dddddddd-0000-0000-0000-000000000001",
"category": "BAGGAGE",
"name": "Extra 10kg",
"description": "Additional checked baggage allowance",
"image_url": null,
"price": 15.00,
"currency": "USD"
}
],
"selected": [
{
"offer_frame_id": "cccccccc-0000-0000-0000-000000000002",
"ancillary_id": "dddddddd-0000-0000-0000-000000000002",
"category": "OTHER",
"name": "Priority boarding",
"quantity": 1
}
]
}
]
}
]
}
Add Ancillaries
Adds the partner-selected ancillaries to an order. Requires scope ancillary:write.
|
Important
|
Ancillaries can only be added once the booking is activated (i.e. after the order is paid) — earlier calls return 409 BOOKING_NOT_ACTIVATED. Services wanted before payment go into POST /orders (ancillary_offers) and are paid together with the flight. Post-payment additions are temporarily unavailable while the addition flow is being reworked and return 503 SERVICE_UNAVAILABLE.
|
Send an Idempotency-Key header (optional but strongly recommended; UUIDv4) — once additions are available again, repeating the call with the same key will not add the ancillaries twice. Each body pax_segment_id must belong to the URL orderId’s booking, otherwise `400 INVALID_REQUEST.
HTTP Request
POST /distribution/v1/orders/{orderId}/ancillaries
Authorization: Bearer <access_token>
Content-Type: application/json
Idempotency-Key: <uuid>
Request Body
{
"passengers": [
{
"passenger_id": "aaaaaaaa-0000-0000-0000-000000000001",
"segments": [
{
"pax_segment_id": "bbbbbbbb-0000-0000-0000-000000000001",
"offers": [
{ "offer_frame_id": "cccccccc-0000-0000-0000-000000000001", "quantity": 1 }
]
}
]
}
]
}
Response
Future behavior — the 200 payload below is returned once post-payment additions are re-enabled; until then the endpoint always responds with one of the failure cases.
{
"order_id": "77777777-7777-7777-7777-777777777777",
"currency": "USD",
"total_amount": 15.00,
"paid_amount": 0.00,
"paid_currency": "USD"
}
Failure cases: 400 INVALID_REQUEST (unknown/foreign pax_segment_id, empty selection, or non-UUID {orderId}), 404 ORDER_NOT_FOUND, 409 BOOKING_NOT_ACTIVATED (order not paid yet — see the IMPORTANT note above), 409 BOOKING_AMBIGUOUS, 503 SERVICE_UNAVAILABLE (post-payment additions temporarily unavailable).
List Assistance
Lists the special-assistance options (SSR — wheelchair, blind/deaf passenger, infant bassinet, service animal, etc.) available for an order, together with those already selected, per pax-segment. Requires scope assistance:read. Special assistance is free of charge — there is no price, currency or quantity.
The response lists each pax-segment with its passenger_id (so options can be rendered/selected per traveler) and an ssr_not_available flag distinguishing a blocked segment from an empty catalog. applicable_pax_types lists which passenger types the SSR can be selected for; code is the IATA SSR code, type the internal enum value.
HTTP Request
GET /distribution/v1/orders/{orderId}/assistance
Authorization: Bearer <access_token>
Response
{
"segments": [
{
"passenger_id": "aaaaaaaa-0000-0000-0000-000000000001",
"pax_segment_id": "bbbbbbbb-0000-0000-0000-000000000001",
"ssr_not_available": false,
"available": [
{
"ssr_id": "eeeeeeee-0000-0000-0000-000000000001",
"type": "WHEELCHAIR_SERVICE",
"code": "WCHC",
"name": "Wheelchair",
"applicable_pax_types": ["ADT", "CHD"]
}
],
"selected": [
{
"ssr_id": "eeeeeeee-0000-0000-0000-000000000002",
"type": "BLIND",
"code": "BLND",
"name": "Blind passenger assistance"
}
]
}
]
}
Add Assistance
Adds the partner-selected special assistance (SSR) to the pax-segments of an order, then returns the refreshed snapshot (same shape as List Assistance). Requires scope assistance:write.
This endpoint is idempotent when an Idempotency-Key header is supplied (optional but strongly recommended; UUIDv4 recommended). Repeating the call with the same key does not add the SSRs twice; it returns the booking’s current assistance snapshot. Without the header the add runs once with no replay protection.
|
Important
|
Special assistance can only be added once the booking is activated, i.e. after the order has been paid. Calling it on a not-yet-activated booking returns 409 BOOKING_NOT_ACTIVATED. Each body pax_segment_id must belong to the URL orderId’s booking, otherwise `400 INVALID_REQUEST.
|
HTTP Request
POST /distribution/v1/orders/{orderId}/assistance
Authorization: Bearer <access_token>
Content-Type: application/json
Idempotency-Key: <uuid>
Request Body
{
"segments": [
{
"pax_segment_id": "bbbbbbbb-0000-0000-0000-000000000001",
"ssr_ids": ["eeeeeeee-0000-0000-0000-000000000001"]
}
]
}
Response
200 OK — the refreshed assistance snapshot, identical in shape to List Assistance.
Failure cases: 400 INVALID_REQUEST (unknown/foreign pax_segment_id, SSR not applicable to the passenger type, empty selection, or non-UUID {orderId}), 404 ORDER_NOT_FOUND, 409 BOOKING_NOT_ACTIVATED (booking not yet activated), 409 BOOKING_AMBIGUOUS.
Operator Endpoints
|
Note
|
The endpoints in this section are called by airline operators (via the Farel admin console), not by partners. Under the wallet/agency settlement model the airline — not the partner — provisions the partner’s wallet and sets its credit limit; they are documented here so partners understand how their wallet is set up. These endpoints live on the /v1/admin/… path, use airline-operator authentication carrying the DISTRIBUTION_MANAGEMENT role (not the partner session token or scopes), and are tenant-scoped via the required X-Airline-ID header. Application-level errors return the standard admin ErrorResponse envelope ({message, code, params}), not the partner {code, message} envelope described in Error Format: 404 when the partner is unknown or belongs to another airline, and 400 when credit_limit is negative or the X-Airline-ID header is missing. A 403 for a missing DISTRIBUTION_MANAGEMENT role is enforced at the security layer and returns the framework’s standard 403 response (no envelope body).
|
Both operations are idempotent: the wallet is keyed by the partner id, so re-running neither duplicates the wallet nor stacks the credit limit.
| Method | Endpoint | Description |
|---|---|---|
POST |
|
Create or link the partner’s wallet (in the airline currency) |
POST |
|
Set the partner’s wallet credit limit |
Provision Partner Wallet
Creates the partner’s wallet in the airline’s default currency, or returns the existing one. Idempotent — re-running returns the same wallet without creating a duplicate.
HTTP Request
POST /v1/admin/distribution/partners/{partnerId}/wallet
X-Airline-ID: <airline_uuid>
Response
{
"wallet_id": "8a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"holder_id": "f8cc4f24-8f68-4ade-9033-ec1402fe1836",
"credit_limit": 0,
"current_balance": 0,
"currency": "KGS"
}
holder_id equals the partner id. currency is the wallet’s own currency — an existing wallet keeps the currency it was created with.
Set Partner Credit Limit
Sets the credit limit on the partner’s wallet, resolving (and, if necessary, creating) the wallet first. Idempotent — credit_limit is an absolute value, not a delta.
HTTP Request
POST /v1/admin/distribution/partners/{partnerId}/credit-limit
Content-Type: application/json
X-Airline-ID: <airline_uuid>
Request Body
{
"credit_limit": 500000,
"remark": "Initial provisioning"
}
credit_limit must be zero or positive; remark is optional (max 2000 characters).
Response
{
"wallet_id": "8a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"holder_id": "f8cc4f24-8f68-4ade-9033-ec1402fe1836",
"credit_limit": 500000,
"current_balance": 0,
"currency": "KGS"
}
Wallet Balance
Returns the calling partner’s wallet balance. Requires scope wallet:read. The wallet is resolved from
the authenticated session, so a partner only ever sees its own balance. available is the spendable
remainder — current_balance + credit_limit (a debit lowers current_balance, which may be negative).
HTTP Request
GET /distribution/v1/wallet/balance Authorization: Bearer <access_token>
Response
{
"credit_limit": 500000,
"current_balance": -150000,
"available": 350000,
"currency": "KGS"
}
A 503 SERVICE_UNAVAILABLE is returned if the wallet settlement service is temporarily unreachable.
Wallet Transactions
Returns a paginated statement of the calling partner’s wallet operations, most recent first. Requires
scope wallet:read. Pagination is via page (0-based, default 0) and size (default 50, max 100).
Invalid parameters — a negative page, or a size outside 1..100 — return 400 INVALID_REQUEST. A
page past the end of the history is valid and returns 200 with an empty items list. total is the
full (filtered) operation count.
For self-service reconciliation the statement can be narrowed with optional query parameters, combinable with each other and with pagination:
| Parameter | Meaning |
|---|---|
|
ISO-8601 instants (e.g. |
|
Returns the wallet operations of that order: the current-invoice payment (the initial-purchase
capture) and every refund of it. The order must belong to the calling partner, otherwise
|
Each item carries order_id and payment_reference. order_id is populated only when you filter by
order_id (every returned row then belongs to that order); it is null on the unfiltered statement —
reconcile the unfiltered statement via the order_id filter and the intent_id. payment_reference
carries the PSP reference supplied at payment (DEL-2054); it is null for operations without one
(e.g. top-ups and refunds — take the reference from the order’s PAYMENT row in the same filtered view).
HTTP Request
GET /distribution/v1/wallet/transactions?page=0&size=50&from=2026-07-01T00:00:00Z&to=2026-07-31T23:59:59Z Authorization: Bearer <access_token>
Response
{
"page": 0,
"size": 50,
"total": 2,
"items": [
{
"transaction_id": "wtx-000123",
"type": "PAYMENT",
"amount": 50000,
"timestamp": "2026-07-15T12:00:00Z",
"method": "WALLET",
"intent_id": "99999999-3333-0000-0000-000000000001",
"remark": null,
"order_id": null,
"payment_reference": null
}
]
}
A 503 SERVICE_UNAVAILABLE is returned if the wallet settlement service is temporarily unreachable.
Machine-readable Contract
The authoritative, always-current request/response schema is published as an OpenAPI document and served by each deployment at /api/swagger-ui/index.html. This page is a narrative companion to that contract.