Retrieve order data
GET/orders/:order_id
Retrieves details of a purchase order
Request
Path Parameters
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- Array [
- Array [
- ]
- ]
- ]
- Array [
- ]
- Array [
- ]
Purchase order ID.
Creation date.
Last modification date.
Buyer's name.
Buyer's document. E.g., CPF.
Buyer's phone.
Buyer's username.
Buyer's passport.
Buyer's person ID.
buyerPersonloyaltyData object[]nullable
List of buyer's loyalty.
Loyalty program ID.
Loyalty programs alias.
Balance.
Next expiration.
Next expiration amount.
Loyalty value.
Client ID.
Client name.
Client's CNPJ (company tax ID).
External or integration code defined for the client.
items object[]required
Items included in the order. E.g., hotel reservations, airline tickets.
Item ID.
Possible values: [HOTEL
]
Reservation type.
Creation date.
Last modification date.
Possible values: [CONFIRMED
, CANCELLED
, PENDING
]
Current status.
Billing comments.
Start date of the service. E.g., Check-in.
End date of the service. E.g., Check-out.
Supplier reservation locator, based on the credential type.
Supplier integration credential ID.
Supplier integration credential name.
Supplier integration credential type.
Contracted product ID, based on the item type (e.g., Hotel ID).
Contracted product name, based on the item type (e.g., hotel name).
City name.
Primary guest's name.
Primary guest's email.
Primary guest's phone.
Primary guest's passport.
Primary guest's person ID.
Type of payment method used with the supplier.
Description of the payment method used with the supplier.
ID of the issuing user.
Name of the issuing user.
Amount payable to the supplier for the reservation, including taxes.
Purchase currency.
Taxes included in the purchase amount, in the same currency as the purchase.
Sale amount of the reservation.
Sale currency.
Commission amount payable to the seller.
Currency of the commission payable.
Commission amount receivable for the sale.
Currency of the commission receivable.
hotelRooms object[]nullable
Only for HOTEL type items. List of reserved rooms.
Room ID.
Room description.
guests object[]required
Guests indetification.
Nome do hóspede.
Sobrenome do hóspede.
Possible values: [ADULT
, CHILD
]
Qualificador da idade.
Idade do hóspede.
Start date of the service. E.g., Check-in.
End date of the service. E.g., Check-out.
Possible values: [CONFIRMED
, CANCELLED
]
Current room status.
Rate description.
payments object[]required
Payments made to settle the order.
Payment transaction ID.
Possible values: [CREDITCARD
, PIX
, POINTS
]
Payment type.
Currency used. ISO 4217 standard code. E.g., BRL.
Amount originally paid.
Refunded amount.
Creation date.
Last modification date.
Cancellation date.
Possible values: [CONFIRMED
, CANCELLED
, REFUNDED
, PENDING
, REJECTED
, FAILED
, PROCESSING
]
Current status of the transaction.
Transaction return message or error description.
IDs of order items paid partially or fully by this payment transaction.
Supplier integration credential ID.
Supplier integration credential name.
Supplier integration credential type.
Transaction locator in the supplier integration, based on the credential type.
Payer's passport.
Only for CREDITCARD payment. Masked card number.
Only for CREDITCARD payment. Cardholder's name.
Only for CREDITCARD payment. Card brand.
Only for CREDITCARD payment. Card expiration date.
Only for CREDITCARD payment. Number of installments.
Only for CREDITCARD payment. Capture date.
Only for CREDITCARD payment. Authorization code.
Only for CREDITCARD payment. NSU (Unique Transaction Number).
Only for CREDITCARD payment. Acquirer, when available.
Only for CREDITCARD payment. Transaction ID with the acquirer, when available.
Only for CREDITCARD payment. 3DS authorization used.
loyaltyRewards object[]required
Loyalty program rewards generated from the order.
Loyalty transaction ID.
Possible values: [POINTS
, CASHBACK
]
Type of loyalty benefit.
Value of the benefit, according to its type. E.g., number of points or monetary value via cashback.
Cashback only. Currency used. ISO 4217 standard code. E.g., BRL.
Creation date.
Last modification date.
Possible values: [PENDING
, CONFIRMED
, CANCELLED
]
Current status of the transaction.
Points only. Description of the point type.
Supplier integration credential ID.
Supplier integration credential name.
Supplier integration credential type.
Accumulation transaction locator in the supplier integration, based on the credential type.
Scheduled date for the benefit accumulation.
{
"id": "string",
"createDate": "string",
"updateDate": "string",
"buyerName": "string",
"buyerCpf": "string",
"buyerPhone": "string",
"buyerUsername": "string",
"buyerPassport": "string",
"buyerPersonId": "string",
"buyerPersonloyaltyData": [
{
"id": "string",
"alias": "string",
"balance": 0,
"nextExpirationAt": "string",
"nextExpirationValue": 0,
"tier": "string"
}
],
"clientId": "string",
"clientName": "string",
"clientVat": "string",
"clientExternalCode": "string",
"items": [
{
"id": "string",
"createDate": "string",
"updateDate": "string",
"status": "CONFIRMED",
"billingComments": "string",
"startDate": "string",
"endDate": "string",
"locator": "string",
"credentialId": "string",
"credentialAlias": "string",
"credentialType": "string",
"productId": "string",
"productName": "string",
"cityName": "string",
"primaryGuestName": "string",
"primaryGuestEmail": "string",
"primaryGuestPhone": "string",
"primaryGuestPassport": "string",
"primaryGuestPersonId": "string",
"paymentType": "string",
"paymentAlias": "string",
"createdById": "string",
"createdByName": "string",
"totalReservationPayable": 0,
"totalReservationPayCurrency": "string",
"totalReservationTaxes": 0,
"totalReservationReceivable": 0,
"totalReservationReceiveCurrency": "string",
"totalCommissionPayable": 0,
"totalCommissionPayCurrency": "string",
"totalCommissionReceivable": 0,
"totalCommissionReceiveCurrency": "string",
"hotelRooms": [
{
"id": "string",
"name": "string",
"guests": [
{
"firstName": "string",
"lastName": "string",
"ageQualifying": "ADULT",
"age": 0
}
],
"startDate": "string",
"endDate": "string",
"status": "CONFIRMED",
"ratePlanName": "string"
}
]
}
],
"payments": [
{
"id": "string",
"type": "CREDITCARD",
"currency": "string",
"amount": 0,
"amountCancelled": 0,
"createDate": "string",
"updateDate": "string",
"cancellationDate": "string",
"status": "CONFIRMED",
"message": "string",
"paidItemsIds": [
"string"
],
"credentialId": "string",
"credentialAlias": "string",
"credentialType": "string",
"locator": "string",
"payerPassport": "string",
"creditCardNumber": "string",
"creditCardHolder": "string",
"creditCardBrand": "string",
"creditCardExpirationDate": "string",
"installments": 0,
"captureDate": "string",
"authorizationCode": "string",
"proofOfSale": "string",
"provider": "string",
"providerTransactionId": "string",
"is3DS": true
}
],
"loyaltyRewards": [
{
"id": "string",
"type": "POINTS",
"value": 0,
"currency": "string",
"createDate": "string",
"updateDate": "string",
"status": "PENDING",
"unit": "string",
"credentialId": "string",
"credentialAlias": "string",
"credentialType": "string",
"locator": "string",
"scheduleDate": "string"
}
]
}