Get an order in the back office
Returns everything Commerce knows about one order: its row (as the order list has it), the people on it (name, email, nationality and role; never documents or birth dates), its flight legs as the provider holds them now, its issued documents, the service as the provider recorded it, the latest successful read of the reservation, its timeline (newest first, at most 500 entries) and the reference exchange rates. The agency is named by the x-nicer-company header and nothing else: Nicer staff who name none reach any order; with an agency named, staff and its admins reach that agency's orders only. An agency admin may name only an agency they administer, and may leave the header out when they administer one. For an agency admin the server leaves out providerKey and the timeline entries of kind PAYMENT_EVENT and PROVIDER. Errors: 404 ERROR_ITEM_NOT_FOUND for an order that does not exist or belongs to another agency; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.
Authorization
Path parameters
Header parameters
Returns
200
OK
- exchangeRatesrequired
The latest stored reference exchange rates, to show amounts in another currency; null when they cannot be read. Never the rate a payment used.
}Any of the following:
- ExchangeRateSnapshot
- sourcestringrequired
- updatedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- ratesmap ofnumberrequired
- null
- legsarray ofobjectrequired
The flight legs as the provider holds them now, in order; empty for other products.
- arrivalAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- departureAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- orderobjectrequired
An order as the back office lists it: what it sells, to whom, for how much, and where its reservation, payment and documents stand.
- createdAtstringrequired
When the order was created.
format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ - updatedAtstringrequired
When the order last changed.
format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- providerObservationrequired
The latest successful read of the reservation at the provider, projected to this order's service; null when the order has none.
}Any of the following:
- object
- observedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- recordedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
- evidenceobjectrequired
- faresarray ofobjectrequireddefault: []
- segmentsarray ofobjectrequireddefault: []
- guaranteesarray ofobjectrequireddefault: []
- historyarray ofobjectrequireddefault: []
- null
- recordedProductrequired
The service as the provider reported it, for an order recorded from a provider or enriched by a reservation read; null when none was recorded.
}Any of the following:
- RecordedProduct
- kindCAR_RENTALorFLIGHTorHOTELorINSURANCErequired
- namestringrequiredmaxLength: 500 · minLength: 1
- startrequired}
Any of the following:
- Option 1}
Any of the following:
- string
- string
- null
- endrequired}
Any of the following:
- Option 1}
Any of the following:
- string
- string
- null
- supplierConfirmationrequired}
Any of the following:
- string
- null
- supplierNamerequired}
Any of the following:
- string
- null
- detailoptionalobject
- caroptionalobject
- distanceAllowanceoptionalstringmaxLength: 255 · minLength: 1
- dropOffoptionalobject
- addressoptionalobject
- cityoptionalstringmaxLength: 255 · minLength: 1
- cityCodeoptionalstringmaxLength: 255 · minLength: 1
- countryCodeoptionalstringmaxLength: 255 · minLength: 1
- nameoptionalstringmaxLength: 255 · minLength: 1
- postalCodeoptionalstringmaxLength: 255 · minLength: 1
- stateProvinceoptionalstringmaxLength: 255 · minLength: 1
- streetoptionalstringmaxLength: 255 · minLength: 1
- linesoptionalarray ofstringmaxLength: 255 · minLength: 1
- atoptionalstringmaxLength: 255 · minLength: 1
- locationCodeoptionalstringmaxLength: 255 · minLength: 1
- phonesoptionalarray ofstringmaxLength: 255 · minLength: 1
- faxesoptionalarray ofstringmaxLength: 255 · minLength: 1
- emergencyPhonesoptionalarray ofstringmaxLength: 255 · minLength: 1
- guaranteeTypeoptionalstringmaxLength: 255 · minLength: 1
- pickUpoptionalobject
- addressoptionalobject
- cityoptionalstringmaxLength: 255 · minLength: 1
- cityCodeoptionalstringmaxLength: 255 · minLength: 1
- countryCodeoptionalstringmaxLength: 255 · minLength: 1
- nameoptionalstringmaxLength: 255 · minLength: 1
- postalCodeoptionalstringmaxLength: 255 · minLength: 1
- stateProvinceoptionalstringmaxLength: 255 · minLength: 1
- streetoptionalstringmaxLength: 255 · minLength: 1
- linesoptionalarray ofstringmaxLength: 255 · minLength: 1
- atoptionalstringmaxLength: 255 · minLength: 1
- locationCodeoptionalstringmaxLength: 255 · minLength: 1
- phonesoptionalarray ofstringmaxLength: 255 · minLength: 1
- faxesoptionalarray ofstringmaxLength: 255 · minLength: 1
- emergencyPhonesoptionalarray ofstringmaxLength: 255 · minLength: 1
- rateCodeoptionalstringmaxLength: 255 · minLength: 1
- supplierCodeoptionalstringmaxLength: 255 · minLength: 1
- rentalDaysoptionalnumberminimum: 0
- refundableoptionalboolean
- vehicleCategoryoptionalstringmaxLength: 255 · minLength: 1
- vehicleModeloptionalstringmaxLength: 255 · minLength: 1
- vehicleTypeoptionalstringmaxLength: 255 · minLength: 1
- vehicleTypeCodeoptionalstringmaxLength: 255 · minLength: 1
- vehiclesoptionalintegermaximum: 9007199254740991
- commissionoptionalobject
- amountoptionalobject
- currencystringrequiredpattern: ^[A-Z]{3}$
- totalMinorintegerrequiredmaximum: 9007199254740991 · minimum: 0
- unconvertedAmountoptionalstring
The supplier stated an amount without a usable currency.
pattern: ^\d+(?:\.\d+)?$ - percentageoptionalstringpattern: ^\d+(?:\.\d+)?$
- textoptionalstringmaxLength: 255 · minLength: 1
- fareoptionalobject
- calculationLineoptionalstringmaxLength: 2000 · minLength: 1
- changeableoptionalboolean
- fareBasisoptionalstringmaxLength: 255 · minLength: 1
- negotiatedoptionalboolean
- refundableoptionalboolean
- taxesoptionalarray ofobject
- amountobjectrequired
- currencystringrequiredpattern: ^[A-Z]{3}$
- totalMinorintegerrequiredmaximum: 9007199254740991 · minimum: 0
- codestringrequiredmaxLength: 255 · minLength: 1
- ticketsoptionalarray ofobject
- numberstringrequiredmaxLength: 255 · minLength: 1
- issuedOnoptionalstringmaxLength: 255 · minLength: 1
- statusoptionalstringmaxLength: 255 · minLength: 1
- issuingOfficeIdoptionalstringmaxLength: 255 · minLength: 1
- tourCodeoptionalstringmaxLength: 255 · minLength: 1
- hoteloptionalobject
- addressoptionalobject
- cityoptionalstringmaxLength: 255 · minLength: 1
- cityCodeoptionalstringmaxLength: 255 · minLength: 1
- countryCodeoptionalstringmaxLength: 255 · minLength: 1
- nameoptionalstringmaxLength: 255 · minLength: 1
- postalCodeoptionalstringmaxLength: 255 · minLength: 1
- stateProvinceoptionalstringmaxLength: 255 · minLength: 1
- streetoptionalstringmaxLength: 255 · minLength: 1
- linesoptionalarray ofstringmaxLength: 255 · minLength: 1
- cancellationPolicyoptionalstringmaxLength: 2000 · minLength: 1
- chainCodeoptionalstringmaxLength: 255 · minLength: 1
- chainNameoptionalstringmaxLength: 255 · minLength: 1
- checkInTimeoptionalstringmaxLength: 255 · minLength: 1
- checkOutTimeoptionalstringmaxLength: 255 · minLength: 1
- faxesoptionalarray ofstringmaxLength: 255 · minLength: 1
- guaranteeTypeoptionalstringmaxLength: 255 · minLength: 1
- guaranteeTypeCodeoptionalstringmaxLength: 255 · minLength: 1
- guestsoptionalintegermaximum: 9007199254740991
- nightlyRateoptionalobject
- currencystringrequiredpattern: ^[A-Z]{3}$
- totalMinorintegerrequiredmaximum: 9007199254740991 · minimum: 0
- nightsoptionalarray ofobject
- amountoptionalobject
- currencystringrequiredpattern: ^[A-Z]{3}$
- totalMinorintegerrequiredmaximum: 9007199254740991 · minimum: 0
- nightsoptionalintegermaximum: 9007199254740991 · minimum: 0
- percentageoptionalstringpattern: ^\d+(?:\.\d+)?$
- fromoptionalstringmaxLength: 40 · minLength: 1
- tooptionalstringmaxLength: 40 · minLength: 1
- paymentPolicyoptionalstringmaxLength: 255 · minLength: 1
- phonesoptionalarray ofstringmaxLength: 255 · minLength: 1
- emergencyPhonesoptionalarray ofstringmaxLength: 255 · minLength: 1
- productCodeoptionalstringmaxLength: 255 · minLength: 1
- corporateRateCodeoptionalstringmaxLength: 255 · minLength: 1
- propertyIdoptionalstringmaxLength: 255 · minLength: 1
- rateCodeoptionalstringmaxLength: 255 · minLength: 1
- rateDescriptionoptionalarray ofstringmaxLength: 2000 · minLength: 1
- refundPenaltiesoptionalarray ofobject
- amountoptionalobject
- currencystringrequiredpattern: ^[A-Z]{3}$
- totalMinorintegerrequiredmaximum: 9007199254740991 · minimum: 0
- nightsoptionalintegermaximum: 9007199254740991 · minimum: 0
- percentageoptionalstringpattern: ^\d+(?:\.\d+)?$
- fromoptionalstringmaxLength: 40 · minLength: 1
- tooptionalstringmaxLength: 40 · minLength: 1
- refundableoptionalboolean
- roomDescriptionoptionalstringmaxLength: 2000 · minLength: 1
- roomTypeoptionalstringmaxLength: 255 · minLength: 1
- roomTypeCodeoptionalstringmaxLength: 255 · minLength: 1
- clientRateCodeoptionalstringmaxLength: 255 · minLength: 1
- roomsoptionalintegermaximum: 9007199254740991
- providerPropertyIdoptionalstringmaxLength: 255 · minLength: 1
- specialInstructionsoptionalstringmaxLength: 2000 · minLength: 1
- sourceTypeCodeoptionalstringmaxLength: 255 · minLength: 1
- sourceTypeNameoptionalstringmaxLength: 255 · minLength: 1
- moneyoptionalobject
- currencystringrequiredpattern: ^[A-Z]{3}$
- feesMinoroptionalintegermaximum: 9007199254740991 · minimum: 0
- subtotalMinoroptionalintegermaximum: 9007199254740991 · minimum: 0
- taxesMinoroptionalintegermaximum: 9007199254740991 · minimum: 0
- totalMinoroptionalintegermaximum: 9007199254740991 · minimum: 0
- referencesoptionalobject
- agencyIataNumberoptionalstringmaxLength: 255 · minLength: 1
- agencyProfileIdoptionalstringmaxLength: 255 · minLength: 1
- corporateProfileIdoptionalstringmaxLength: 255 · minLength: 1
- providerSegmentIdsoptionalarray ofstringmaxLength: 255 · minLength: 1
- null
- timelinearray ofobjectrequired
The order's story, newest first, at most 500 entries. Entries of kind PAYMENT_EVENT and PROVIDER are Nicer staff only: the server leaves them out for an agency admin.
- occurredAtstringrequired
When it happened: at the processor for a PAYMENT_EVENT, at issue for a FULFILLMENT, when Nicer recorded it for the others.
format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$ - kindstring·one of 9 valuesrequired
What happened: ACTION (an order action was accepted; the title is its type), PAYMENT (a payment attempt; the title is its purpose and status, the detail the decline reason), PAYMENT_EVENT (an event from the payment processor; Nicer staff only), PROVIDER (a call to the provider; Nicer staff only), FULFILLMENT (a document was issued; the detail is its number), PROVIDER_RECORD (the provider's data was recorded), OBSERVATION (the reservation monitor read the booking; the detail is its error code), EARNING (an earning was booked; the title is its entry type, kind and beneficiary kind, the detail its status) or EXTERNAL_PAYMENT (a payment recorded outside Nicer; the title is its entry type and method, the detail its note).
Allowed values: ACTION, PAYMENT, PAYMENT_EVENT, PROVIDER, FULFILLMENT, PROVIDER_RECORD, OBSERVATION, EARNING, EXTERNAL_PAYMENT