Skip to main content

Retrieve order data

GET 

/orders/:order_id

Retrieves details of a purchase order

Request

Path Parameters

    order_id stringrequired

Responses

Success

Schema
    id stringrequired

    Purchase order ID.

    createDate stringnullable

    Creation date.

    updateDate stringnullable

    Last modification date.

    buyerName stringnullable

    Buyer's name.

    buyerEmail stringnullable

    Buyer's email.

    buyerCpf stringnullable

    Buyer's document. Ex: CPF (Brazilian individual taxpayer registry).

    buyerPhone stringnullable

    Buyer's phone number.

    buyerUsername stringnullable

    Buyer's username.

    buyerPassport stringnullable

    Buyer's passport.

    buyerPersonId stringnullable

    Buyer's person ID.

    buyerPersonLoyaltyData object[]nullable

    List of the buyer's loyalty programs.

  • Array [
  • id stringnullable

    Loyalty program ID.

    alias stringnullable

    Loyalty programs alias.

    balance numbernullable

    Balance.

    nextExpirationAt stringnullable

    Next expiration.

    nextExpirationValue numbernullable

    Next expiration amount.

    tier stringnullable

    Loyalty value.

  • ]
  • clientId stringnullable

    Client ID.

    clientName stringnullable

    Client name.

    clientVat stringnullable

    Client's VAT number (CNPJ for Brazil).

    clientExternalCode stringnullable

    External or integration code defined for the client.

    items object[]required

    Items that make up the order. Ex: hotel reservations, airline tickets.

  • Array [
  • id stringrequired

    Item ID.

    type required

    Possible values: [HOTEL]

    Reservation type.

    createDate stringnullable

    Creation date.

    updateDate stringnullable

    Last modification date.

    status stringrequired

    Possible values: [CONFIRMED, CANCELLED, LOST]

    Current status.

    startDate stringrequired

    Service start date. Ex: Check-in.

    endDate stringrequired

    Service end date. Ex: Check-out.

    locator stringnullable

    Reservation locator with the supplier, according to the credential type.

    credentialId stringnullable

    Supplier integration credential ID.

    credentialAlias stringnullable

    Supplier integration credential name.

    credentialType stringnullable

    Supplier integration credential type.

    productId stringnullable

    Product/supplier ID of the contracted service, according to the item type. Ex: Hotel ID

    productName stringnullable

    Name of the contracted product, according to the item type. Ex: Hotel Name

    cityName stringnullable

    City name.

    countryCode stringnullable

    ISO 3166-1 alpha-2 country code. Ex: BR

    primaryGuestName stringnullable

    Primary traveler's name.

    primaryGuestEmail stringnullable

    Primary traveler's email.

    primaryGuestCpf stringnullable

    Primary traveler's CPF (Brazilian individual taxpayer registry).

    primaryGuestPhone stringnullable

    Primary traveler's phone number.

    primaryGuestPassport stringnullable

    Primary traveler's passport.

    primaryGuestPersonId stringnullable

    Primary traveler's person ID.

    paymentType stringnullable

    Type of payment method to the supplier.

    paymentAlias stringnullable

    Description of the payment method to the supplier.

    paymentCreditCard objectnullable
    number stringnullable

    Masked card number.

    holder stringnullable

    Cardholder's name.

    brand stringnullable

    Card brand.

    expirationDate stringnullable

    Card expiration date.

    createdById stringnullable

    ID of the issuing user.

    createdByName stringnullable

    Name of the issuing user.

    totalReservationPayable numbernullable

    Amount due to the supplier for the reservation purchase, including taxes.

    totalReservationPayCurrency stringnullable

    Purchase currency (supplier).

    totalReservationOriginalPriceCurrency stringnullable

    Original purchase currency.

    totalReservationOriginalPrice numbernullable

    Reservation purchase value in the original currency, including taxes.

    totalReservationPrice numbernullable

    Reservation purchase price, including taxes, in the same purchase currency (client).

    totalReservationTaxes numbernullable

    Taxes included in the purchase price, in the same purchase currency (client).

    totalReservationCurrency stringnullable

    Purchase currency (client).

    totalReservationReceivable numbernullable

    Reservation sale value.

    totalReservationReceiveCurrency stringnullable

    Sale currency.

    totalCommissionPayable numbernullable

    Commission amount to be paid to the seller.

    totalCommissionPayCurrency stringnullable

    Currency of the commission to be paid.

    totalCommissionReceivable numbernullable

    Commission amount to be received for the sale.

    totalCommissionReceiveCurrency stringnullable

    Currency of the commission to be received.

    supplierId stringnullable

    Item's payment supplier ID.

    hotelRooms object[]nullable

    HOTEL item type only. List of reserved rooms.

  • Array [
  • id stringnullable

    Room ID.

    name stringnullable

    Room description.

    guests object[]required

    Guest identification.

  • Array [
  • firstName stringnullable

    Guest's first name.

    lastName stringnullable

    Guest's last name.

    ageQualifying stringrequired

    Possible values: [ADULT, CHILD]

    Age qualifier.

    age integernullable

    Guest's age.

    cpf stringnullable

    Guest's CPF (Brazilian individual taxpayer registry).

    phone stringnullable

    Guest's phone number.

    email stringnullable

    Guest's email.

    addressCity stringnullable

    Guest's city.

    addressComplement stringnullable

    Guest's address complement.

    addressDistrict stringnullable

    Guest's district/neighborhood.

    addressNumber stringnullable

    Guest's street number.

    addressState stringnullable

    Guest's state.

    addressStreet stringnullable

    Guest's street.

    addressZipCode stringnullable

    Guest's zip code.

    birthCertificate stringnullable

    Guest's birth certificate.

    country stringnullable

    Guest's country.

    dob stringnullable

    Guest's date of birth.

    nationality stringnullable

    Guest's nationality.

    passport stringnullable

    Guest's passport.

    primary booleannullable

    Indicates the primary guest.

    rg stringnullable

    Guest's RG (Brazilian ID card).

  • ]
  • startDate stringrequired

    Service start date. Ex: Check-in.

    endDate stringrequired

    Service end date. Ex: Check-out.

    status stringrequired

    Possible values: [CONFIRMED, CANCELLED, LOST]

    Current room status.

    cancelDate stringnullable

    Cancellation date. Only applicable when status = 'CANCELLED'.

    ratePlanName stringnullable

    Rate plan description.

    meal stringnullable

    Meal plan type

    nights object[]required

    Nightly stays for the period.

  • Array [
  • date stringrequired

    Date of the nightly stay.

    percent numberrequired

    Percentage share of the nightly rate in the total room purchase price.

  • ]
  • cancelPolicy objectnullable
    nonRefundable booleannullable

    Indicates a non-refundable rate.

    penaltyDate stringnullable

    Deadline for cancellation without penalty.

    penaltyValue numbernullable

    Penalty amount, in case of cancellation with penalty.

    penaltyCurrency stringnullable

    Penalty currency.

    cancelledInPenalty booleannullable

    Indicates cancellation with penalty. Only applicable when status = 'CANCELLED'.

    supplierCancelPolicy objectnullable
    nonRefundable booleannullable

    Indicates a non-refundable rate.

    penaltyDate stringnullable

    Deadline for cancellation without penalty.

    penaltyValue numbernullable

    Penalty amount, in case of cancellation with penalty.

    penaltyCurrency stringnullable

    Penalty currency.

    cancelledInPenalty booleannullable

    Indicates cancellation with penalty. Only applicable when status = 'CANCELLED'.

    totalRoomPrice numbernullable

    Room purchase price, including taxes.

    totalRoomPriceCurrency stringnullable

    Room purchase currency.

    totalRoomTaxes numbernullable

    Taxes included in the purchase price, in the same purchase currency.

  • ]
  • promoCode stringnullable

    Promotional code used for the item purchase.

    couponCode stringnullable

    Promotional coupon used for the item purchase.

    extraFields object[]nullable

    Extra fields.

  • Array [
  • label stringnullable
    name stringnullable
    valueInt integernullable
    valueStr stringnullable
  • ]
  • includeExtras object[]nullable

    Included extra fields.

  • Array [
  • id stringrequired
    label stringrequired
  • ]
  • billingComments stringnullable

    Billing comments.

    pmsNumber stringnullable

    PMS Number

  • ]
  • payments object[]required

    Payments made to settle the order.

  • Array [
  • id stringrequired

    Payment transaction ID.

    type stringrequired

    Possible values: [CREDITCARD, PIX, POINTS]

    Payment type.

    currency stringrequired

    Currency used. ISO 4217 standard code. Ex: BRL

    amount numberrequired

    Amount originally paid.

    amountCancelled numbernullable

    Refunded amount.

    createDate stringnullable

    Creation date.

    updateDate stringnullable

    Last modification date.

    cancellationDate stringnullable

    Cancellation date.

    status stringrequired

    Possible values: [CONFIRMED, CANCELLED, REFUNDED, PENDING, REJECTED, FAILED, PRE_CONFIRMED]

    Current status of the transaction.

    message stringnullable

    Transaction return message or error description.

    paidItemsIds string[]required

    IDs of the order items paid in full or in part with this payment transaction.

    credentialId stringnullable

    Supplier integration credential ID.

    credentialAlias stringnullable

    Supplier integration credential name.

    credentialType stringnullable

    Supplier integration credential type.

    locator stringnullable

    Transaction locator in the supplier integration, according to the credential type.

    payerPassport stringnullable

    Payer's passport.

    creditCardNumber stringnullable

    CREDITCARD payment type only. Masked card number.

    creditCardHolder stringnullable

    CREDITCARD payment type only. Cardholder's name.

    creditCardBrand stringnullable

    CREDITCARD payment type only. Card brand.

    creditCardExpirationDate stringnullable

    CREDITCARD payment type only. Card expiration date.

    installments numbernullable

    CREDITCARD payment type only. Number of installments.

    captureDate stringnullable

    CREDITCARD payment type only. Capture date.

    authorizationCode stringnullable

    CREDITCARD payment type only. Authorization code.

    proofOfSale stringnullable

    CREDITCARD payment type only. Transaction NSU (Sequential Unique Number).

    provider stringnullable

    CREDITCARD payment type only. Acquirer, when available.

    providerTransactionId stringnullable

    CREDITCARD payment type only. Transaction ID with the acquirer, when available.

    is3DS booleannullable

    CREDITCARD payment type only. 3DS authorization used.

    paidItems object[]

    PaymentOption of the order items paid in full or in part with this payment transaction.

  • Array [
  • id stringrequired
    amountCancelled stringrequired
    amount numberrequired
    exchangeAmountCancelled numberrequired
    exchangeAmount numberrequired
    exchangeCurrency stringrequired
    exchangeRate numberrequired
    currency stringrequired
  • ]
  • ]
  • loyaltyRewards object[]required

    Loyalty program benefits generated from the order.

  • Array [
  • id stringrequired

    Loyalty transaction ID.

    type stringrequired

    Possible values: [POINTS, CASHBACK]

    Type of loyalty benefit.

    value numberrequired

    Value of the benefit, according to the type. Ex. Number of points, monetary value via Cashback.

    currency stringnullable

    For Cashback only. Currency used. ISO 4217 standard code. Ex: BRL

    createDate stringrequired

    Creation date.

    updateDate stringrequired

    Last modification date.

    status stringrequired

    Possible values: [PENDING, CONFIRMED, CANCELLED, REFUNDED, REJECTED]

    Current status of the transaction.

    unit stringnullable

    For Points only. Description of the points type.

    credentialId stringnullable

    Supplier integration credential ID.

    credentialAlias stringnullable

    Supplier integration credential name.

    credentialType stringnullable

    Supplier integration credential type.

    locator stringnullable

    Locator for the accumulation transaction with the supplier, according to the credential type.

    scheduleDate stringnullable

    Scheduled date for the benefit accumulation.

  • ]
  • suppliers object[]required

    Data of the suppliers for the items that make up the order.

  • Array [
  • id stringrequired

    Supplier ID.

    niaraId stringrequired

    Unique NIARA ID for this supplier.

    corporateName stringnullable

    Corporate Name.

    brandName stringnullable

    Brand Name.

    vat stringnullable

    VAT number (CNPJ for Brazil).

    email stringnullable

    Email.

    phone stringnullable

    Phone.

    address stringnullable

    Address (street and number).

    cityName stringnullable

    City.

    stateName stringnullable

    State.

    zipCode stringnullable

    Zip code.

    countryCode stringnullable

    ISO 3166-1 alpha-2 country code. Ex: BR

    cityRegistration stringnullable

    Municipal Registration.

    stateRegistration stringnullable

    State Registration.

  • ]
  • quotation objectnullable
    id stringrequired

    Quotation ID.

    externalId stringnullable

    Request ID in the integration.

    requestId stringnullable

    ID of the request that generated the quotation.

    lostReservationId stringnullable

    ID of the lost reservation that originated the quotation.

    channelSource stringnullable

    Channel from which the quotation was generated.

    createdAt stringnullable

    Quotation creation date.

    responsible stringnullable

    Name of the person responsible for the quotation.

    isForGroups booleannullable

    Whether the trip is for groups or not.

    checkoutUrl stringnullable

    Checkout URL.

Loading...