Aether API‎ > ‎2. Methods‎ > ‎

1. Bookings

Get individual booking data

URL: /auth/booking/get-booking-data
Parameters:
reservationId - the reservation id you wish to get the data for.

Curl example:
curl -X POST -H "Content-Type: application/json" -H "aether-application-key: xxx" -H "aether-account: exampleAccount" -H "aether-agent: exampleAgent" -H "aether-password: 32d81aa261ca91ea9721ded23c274f91" -H "aether-customization: my.white.label" -H "Cache-Control: no-cache" -d '{"reservationId":"1234"}' "http://[aether2.domain]/auth/booking/get-booking-data"

Response
Field NameTypeComments
AccountAliasStringCompany name
AccountIDInt
AccountNameStringAccount Login Name
AccountPrefixString3 letter prefix to the billing documents
AddressString
AgencyReferenceStringThe agency reference entered by the agent at the time of the booking
AgentIDIntThe agent id for the agent who made the booking
AgentNameStringThe name of the agent who made the booking
B2CBooleanIs the booking a B2C booking
BillableBooleanWas the booking a made via a direct contract by the client to the provider
BillingDateDateThe date which the booking needs to be billed at
BillingStateIDIDThe billing status of the booking
BillingStatusesArrayPayable/Receivable statuses
CancellationDateDateThe cancellation date (if booking was cnacelled)
 CancellationPoliciesObject see below
CheckInDateDateThe start date of the booking
CheckOutDateDateThe end date of the booking
CityNameStringThe destination city 
ClearingStateIDIDIn case the booking was done via a credit card, what is the clearing status
CountryIDIDDestination country id
CurrencyCurrency ISO code3 letter ISO code of the currency, related to the price
CustomerCountryCode2Country ISO code2 letter ISO code for the customer country
CustomerCountryNameStringThe name of the customer country name
DateDateThe date in which the booking was made
DocketIDIntThe docket (itinerary) id the booking belongs to
EmailEmailThe customer Email
FirstNameStringCustomer first name
GuestsObjectsee below
 HotelIDIntif applicable 
 HotelStarsInt0-5 
 LastNameStringCustomer last name 
 PackageReservationIdIntThe package reservation id, if reservation is part of a package
 ParentAccountIDIntThe parent account id of the account who made the booking 
 PayAtTheHotelBooleanIs the booking pre-pay/post pay 
 PaymentMethodIDHow was the booking payed/payable 
 PhoneStringPhone number of the user 
 PriceFloatThe gross price of the booking 
 ProviderReferencesStringThe provider reference as received from the provider and as it appears on the voucher
 ProvidersStringWho are the providers who supplied the products for the booking 
 RelatedIdsObjectbasic details of bookings from the same docket 
ReservationDetailsObjectsee below
ReservationIDIntThe ID of the current booking
SerialIDIntConsecutive number for each account
ServiceAddressStringThe address of the service
ServiceCityIDIDThe destination city ID of the service
ServiceCityNameStringThe destination city name
ServiceCitySeoNameStringSEO slug
ServiceCountryNameStringdestination country name
ServiceCountrySeoNameString
SEO slug
ServiceFaxString
ServiceNameStringFull name of the booked service
ServicePhoneString
ServiceSeoNameStringSEO slug
ServiceTypeStringhotel/flight/package/etc
ServiceTypeIDID
ServicesObject
SpecialRequestsArray
TechnicalStateIDID
VoucherSentBoolean
VoucherTypeInt
ZipCodeString

CancellationPolicies object

 Field Name TypeComments 
AmountFloatThe amount that will be charged OR the amount of nights, depending on the AmountType
AmountCurCurrency3 letter ISO code
AmountTypestringnights/currency
DateDateThe start date of the policy
DescriptionStringThe description of the cancellation policy
ReservationIDInt
SubIDIntThe service id for which the policy applies

Guest Object
 Field Name Type Comments
AgeIntThe age of the guest
FirstnameString
GuestIDInt
LastnameString
SubIDIntthe service id the guest belongs to
TitleStringTitle of the guest, "M" for male, "C" for child, etc.

ReservationDetails Object

Depends on the service type, for hotels you'll get rooms, for flights, legs, etc.

Services Object
Field NameTypeComments
RowTypeInt
accountCurrencyCurrency3 letter ISO code of the buying account currency
accountPriceFloat
boardString2 letter board code
customerCurrencyCurrency
3 letter ISO code of the customer price currency
customerPriceFloat
descriptionStringService description
end_dateDateThe end date of the service (i.e. checkout date)
idIntService ID
lead_nameStringThe lead pax name for the service
providerStringThe provider name who supplied the service
providerCurrencyCurrency
3 letter ISO code of the provider price currency
providerPriceFloat
providerRefStringThe service booking reference on the providers system
remarksString
reservationidInt
start_dateDateThe start date of the service (i.e. checkin date)
statusStringThe status of the service (i.e. "Cancelled", "Confirmed", etc.)
subidIntThe service subid, connecting it to the ReservationDetails Object

Get multiple bookings data

URL: /auth/booking/get-bookings-since
Parameters:
reservationId - the reservation id get all bookings made on your agent since 
timestamp - a timestamp to get all bookings made on your agent since 
limit - how many bookings (maximum is 20)

At least one of reservationId OR timestamp is required, and you can send both

Response
a collection of booking data as described in the "Get individual booking data" section above


Comments