The Account booking object
A booking of your agency in the account endpoints, whatever its product: flight, hotel, eSIM or transfer.
The top level is a camelCase summary shared with the booking history; record is the stored booking in snake_case; flights and hotels add the price breakdown and the balance operations.
The amount debited from your agency balance is netPrice: totalPrice minus agencyCommission. Use id (a UUID) as your key for a booking: public references are not unique across suppliers.
Attributes
productstringThe product of the booking.
One of flights, hotels, esims, transfers.
idstring (uuid)Internal id of the booking (UUID). Stable and unique: store it as your key.
bookingIdstringdeprecatedLegacy name, still accepted. Use booking_id instead.
The public reference of the booking: the airline record locator of a flight (not unique across suppliers), the hotel booking id, FX- followed by a number for an eSIM, or the transfer reference. The older name of booking_id: same value, use booking_id.
booking_idstringThe public reference of the booking: the airline record locator of a flight (not unique across suppliers), the hotel booking id, FX- followed by a number for an eSIM, or the transfer reference. The snake_case twin of bookingId, with the same value: use this name.
statusstringState of the booking. The values depend on the product: for example confirmed, awaiting_payment (a held flight that is not paid), cancelled, failed, refunded, partial_refund.
environmentstringThe environment of the key that made the call: sandbox for fxp_test_ keys, live for fxp_live_ keys. Present in every JSON body.
One of sandbox, live.
agencyIdstring (uuid)deprecatedLegacy name, still accepted. Use agency_id instead.
The id of your agency. The older name of agency_id: same value, use agency_id.
agency_idstring (uuid)The id of your agency. The snake_case twin of agencyId, with the same value: use this name.
agentIdstringnullabledeprecatedLegacy name, still accepted. Use agent_id instead.
The user of your agency who created the booking, or null when it was created through an API key without a user. The older name of agent_id: same value, use agent_id.
agent_idstringnullableThe user of your agency who created the booking, or null when it was created through an API key without a user. The snake_case twin of agentId, with the same value: use this name.
currencystringCurrency of the amounts: the settlement currency of your agency.
totalPricenumberdeprecatedLegacy name, still accepted. Use total_price instead.
What the traveler pays, in your agency currency. It includes your commission. The older name of total_price: same value, use total_price.
total_pricenumberWhat the traveler pays, in your agency currency. It includes your commission. The snake_case twin of totalPrice, with the same value: use this name.
netPricenumberdeprecatedLegacy name, still accepted. Use b2b_price instead.
The amount debited from your agency balance: totalPrice minus agencyCommission. The older name of b2b_price: same value, use b2b_price.
b2b_pricenumberThe amount debited from your agency balance: totalPrice minus agencyCommission. The snake_case twin of netPrice, with the same value: use this name.
agencyCommissionnumberdeprecatedLegacy name, still accepted. Use agency_commission instead.
Your commission as an amount, in your agency currency. 0 when there is none. The older name of agency_commission: same value, use agency_commission.
agency_commissionnumberYour commission as an amount, in your agency currency. 0 when there is none. The snake_case twin of agencyCommission, with the same value: use this name.
providerNamestringnullabledeprecatedLegacy name, still accepted. Use provider_name instead.
Name of the supplier that fulfilled the booking. The older name of provider_name: same value, use provider_name.
provider_namestringnullableName of the supplier that fulfilled the booking. The snake_case twin of providerName, with the same value: use this name.
supplierIdstringnullabledeprecatedLegacy name, still accepted. Use supplier_id instead.
Id of the supplier that fulfilled the booking, as stored on the booking. It can differ from the id the supplier list uses: ratehawk and airalo here are worldota_1 and airalo_1 there. The older name of supplier_id: same value, use supplier_id.
supplier_idstringnullableId of the supplier that fulfilled the booking, as stored on the booking. It can differ from the id the supplier list uses: ratehawk and airalo here are worldota_1 and airalo_1 there. The snake_case twin of supplierId, with the same value: use this name.
createdAtstringdeprecatedLegacy name, still accepted. Use created_at instead.
When the booking was created: ISO 8601, UTC. The older name of created_at: same value, use created_at.
created_atstringWhen the booking was created: ISO 8601, UTC. The snake_case twin of createdAt, with the same value: use this name.
updatedAtstringdeprecatedLegacy name, still accepted. Use updated_at instead.
When the booking last changed: ISO 8601, UTC. The older name of updated_at: same value, use updated_at.
updated_atstringWhen the booking last changed: ISO 8601, UTC. The snake_case twin of updatedAt, with the same value: use this name.
departureAirportstringFlights only. IATA code of the first departure airport.
arrivalAirportstringFlights only. IATA code of the final arrival airport.
departureDatestringFlights only. Local departure date and time of the first segment, without a zone.
arrivalDatestringFlights and transfers. Local arrival date and time, without a zone for flights.
ticketNumberstringnullableFlights only. The ticket number once issued, or null.
requireAcdbooleannullabledeprecatedLegacy name, still accepted. Use require_acd instead.
Flights only. Whether the booking needs ACD documents. The older name of require_acd: same value, use require_acd.
require_acdbooleannullableFlights only. Whether the booking needs ACD documents. The snake_case twin of requireAcd, with the same value: use this name.
voucherUrlstringnullableFlights and hotels: the confirmation PDF with prices (same as voucherUrlWithPrice), null while it is generated. Transfers: the supplier voucher, null until a driver is assigned.
voucherUrlWithPricestringnullableFlights and hotels. The confirmation PDF with prices.
voucherUrlNoPricestringnullableFlights and hotels. The confirmation PDF without prices, to give to the traveler.
hotelIdstringHotels only. The id of the hotel.
hotelNamestringnullableHotels only. The name of the hotel, or null when the supplier did not give one (a failed booking, for example).
checkinDatestringHotels only. Check-in date: YYYY-MM-DD.
checkoutDatestringHotels only. Check-out date: YYYY-MM-DD.
bookingModestringnullableHotels only. How the booking was made, for example standard.
orderIdstringdeprecatedLegacy name, still accepted. Use order_id instead.
eSIMs only. The supplier's order code. The older name of order_id: same value, use order_id.
order_idstringeSIMs only. The supplier's order code. The snake_case twin of orderId, with the same value: use this name.
typestringeSIMs only. esim for an order, topup for a topup.
One of esim, topup.
packageNamestringdeprecatedLegacy name, still accepted. Use package_name instead.
eSIMs only. Name of the package. The older name of package_name: same value, use package_name.
package_namestringeSIMs only. Name of the package. The snake_case twin of packageName, with the same value: use this name.
iccidstringeSIMs only. The ICCID of the eSIM.
customerEmailstringdeprecatedLegacy name, still accepted. Use customer_email instead.
eSIMs only. The traveler's email. The older name of customer_email: same value, use customer_email.
customer_emailstringeSIMs only. The traveler's email. The snake_case twin of customerEmail, with the same value: use this name.
customer_first_namestringeSIMs only. The traveler's first name.
customer_last_namestringeSIMs only. The traveler's last name.
customer_phonestringeSIMs only. The traveler's phone number.
flightNumberstringnullableTransfers only. The flight number the transfer was booked for.
receiptUrlstringnullableTransfers only. FX-Port's receipt PDF, once the booking is confirmed.
recordobjectThe stored record of the booking, in snake_case. The keys that exist depend on the product; a key that does not apply is absent.
ShowHide 45 attributes
idstring (uuid)Internal id of the booking (UUID).
booking_idstringThe public reference of the booking.
order_idstringeSIMs only. The supplier's order code.
statusstringState of the booking.
currencystringCurrency of the amounts.
total_pricenumberWhat the traveler pays, in your agency currency.
agency_commissionnumberYour commission as an amount.
departure_airportstringFlights only. IATA code of the first departure airport.
arrival_airportstringFlights only. IATA code of the final arrival airport.
departure_datestringFlights only. Local departure date and time of the first segment.
arrival_datestringFlights and transfers. Local arrival date and time.
return_departure_datestringnullableFlights only. Departure of the return trip, or null.
return_arrival_datestringnullableFlights only. Arrival of the return trip, or null.
included_checked_bagsstringnullableFlights only. Checked bags included in the fare.
ticket_numberstringnullableFlights only. The ticket number once issued, or null.
require_acdbooleannullableFlights only. Whether the booking needs ACD documents.
hotel_idstringHotels only. The id of the hotel.
hotel_namestringHotels only. The name of the hotel.
checkin_datestringHotels only. Check-in date: YYYY-MM-DD.
checkout_datestringHotels only. Check-out date: YYYY-MM-DD.
booking_modestringnullableHotels only. How the booking was made.
free_cancellation_deadline_atstringnullableHotels only. Until when the booking can be cancelled free of charge, or null.
typestringeSIMs only. esim or topup.
One of esim, topup.
package_namestringeSIMs only. Name of the package.
iccidstringeSIMs only. The ICCID of the eSIM.
customer_emailstringeSIMs only. The traveler's email.
customer_first_namestringeSIMs only. The traveler's first name.
customer_last_namestringeSIMs only. The traveler's last name.
customer_phonestringeSIMs only. The traveler's phone number.
provider_namestringeSIMs and transfers. Name of the supplier.
supplier_idstringHotels and eSIMs. Id of the supplier, as stored on the booking.
flight_numberstringnullableTransfers only. The flight number.
bucket_linkstringnullableFlights, hotels and transfers. The confirmation PDF with prices; for a transfer, FX-Port's receipt.
bucket_link_no_pricestringnullableFlights and hotels. The confirmation PDF without prices.
voucher_linkstringnullableTransfers only. The supplier voucher, once a driver is assigned.
refund_amountnumbernullableFlights and hotels. The amount refunded, or null.
refund_currencystringnullableFlights and hotels. The currency of the refund, or null.
refund_methodstringnullableFlights only. How the refund was made, or null.
refunded_amountnumbernullableTransfers only. The amount refunded, or null.
refunded_currencystringnullableTransfers only. The currency of the refund, or null.
paid_atstringnullableFlights and hotels. When the booking was paid, or null.
voided_atstringnullableFlights only. When the ticket was voided, or null.
created_atstringWhen the booking was created: ISO 8601, UTC.
updated_atstringWhen the booking last changed: ISO 8601, UTC.
environmentstringThe environment of the key that made the call: sandbox for fxp_test_ keys, live for fxp_live_ keys. Present in every JSON body.
One of sandbox, live.
pricingarray of objectFlights and hotels only. The price breakdown.
ShowHide 11 attributes
idstring (uuid)Hotels only. Id of the pricing row.
supplier_currencystringFlights only. The currency the supplier prices in.
agency_currencystringThe currency of your agency.
base_pricenumberFlights only. The fare before taxes.
taxes_and_feesnumberFlights only. Taxes and fees, without your commission.
total_pricenumberHotels only. What the traveler pays.
agency_commissionnumberYour commission as an amount.
final_pricenumberFlights only. What the traveler pays: base_price plus taxes_and_fees plus agency_commission.
b2b_pricenumberThe amount debited from your agency balance: the total minus agency_commission.
created_atstringWhen the row was written: ISO 8601, UTC.
environmentstringThe environment of the key that made the call: sandbox for fxp_test_ keys, live for fxp_live_ keys. Present in every JSON body.
One of sandbox, live.
travelerPricingarray of objectdeprecatedLegacy name, still accepted. Use traveler_pricing instead.
Flights only. The price per traveler. The older name of traveler_pricing: same value, use traveler_pricing.
ShowHide 10 attributes
traveler_idstringThe traveler the row is for: the id of the traveler in the booking.
traveler_typestringADULT, CHILD, INFANT and so on.
fare_optionstringThe fare option, for example STANDARD.
supplier_currencystringThe currency the supplier prices in.
agency_currencystringThe currency of your agency.
basenumberThe fare of this traveler before taxes.
totalnumberWhat this traveler's ticket costs the traveler.
b2b_pricenumberThe amount debited from your agency balance for this traveler.
created_atstringWhen the row was written: ISO 8601, UTC.
environmentstringThe environment of the key that made the call: sandbox for fxp_test_ keys, live for fxp_live_ keys. Present in every JSON body.
One of sandbox, live.
traveler_pricingarray of objectFlights only. The price per traveler. The snake_case twin of travelerPricing, with the same value: use this name.
ShowHide 10 attributes
traveler_idstringThe traveler the row is for: the id of the traveler in the booking.
traveler_typestringADULT, CHILD, INFANT and so on.
fare_optionstringThe fare option, for example STANDARD.
supplier_currencystringThe currency the supplier prices in.
agency_currencystringThe currency of your agency.
basenumberThe fare of this traveler before taxes.
totalnumberWhat this traveler's ticket costs the traveler.
b2b_pricenumberThe amount debited from your agency balance for this traveler.
created_atstringWhen the row was written: ISO 8601, UTC.
environmentstringThe environment of the key that made the call: sandbox for fxp_test_ keys, live for fxp_live_ keys. Present in every JSON body.
One of sandbox, live.
balanceOperationsarray of objectdeprecatedLegacy name, still accepted. Use balance_operations instead.
Flights and hotels only. The balance operations of the booking: empty in the sandbox. The older name of balance_operations: same value, use balance_operations.
ShowHide 7 attributes
idstring (uuid)Id of the operation.
typestringdebit, credit or refund, in lower case.
amountnumberThe amount, always positive.
currencystringThe currency of the operation.
descriptionstringnullableA label of the operation.
createdAtstringdeprecatedLegacy name, still accepted. Use created_at instead.
When the operation was recorded: ISO 8601, UTC. The older name of created_at: same value, use created_at.
created_atstringWhen the operation was recorded: ISO 8601, UTC. The snake_case twin of createdAt, with the same value: use this name.
balance_operationsarray of objectFlights and hotels only. The balance operations of the booking: empty in the sandbox. The snake_case twin of balanceOperations, with the same value: use this name.
ShowHide 7 attributes
idstring (uuid)Id of the operation.
typestringdebit, credit or refund, in lower case.
amountnumberThe amount, always positive.
currencystringThe currency of the operation.
descriptionstringnullableA label of the operation.
createdAtstringdeprecatedLegacy name, still accepted. Use created_at instead.
When the operation was recorded: ISO 8601, UTC. The older name of created_at: same value, use created_at.
created_atstringWhen the operation was recorded: ISO 8601, UTC. The snake_case twin of createdAt, with the same value: use this name.