Skip to main content

Lost Reservation webhook

POST 

/

Responses

Order()

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. E.g., CPF.

    buyerPhone stringnullable

    Buyer's phone.

    buyerUsername stringnullable

    Buyer's username.

    clientId stringnullable

    Client ID.

    clientName stringnullable

    Client name.

    clientVat stringnullable

    Client's CNPJ (company tax ID).

    clientExternalCode stringnullable

    External or integration code defined for the client.

    checkoutUrl stringnullable

    Checkout URL for the order.

    items object[]required

    Items included in the order. E.g., 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, PENDING, LOST]

    Current status.

    startDate stringrequired

    Start date of the service. E.g., Check-in.

    endDate stringrequired

    End date of the service. E.g., Check-out.

    locator stringnullable

    Supplier reservation locator, based on the credential type.

    credentialId stringnullable

    Supplier integration credential ID.

    credentialAlias stringnullable

    Supplier integration credential name.

    credentialType stringnullable

    Supplier integration credential type.

    productId stringnullable

    Contracted product ID, based on the item type (e.g., Hotel ID).

    productName stringnullable

    Contracted product name, based on the item type (e.g., hotel name).

    cityName stringnullable

    City name.

    countryCode stringnullable

    ISO 3166-1 alpha-2 country code. E.g., BR.

    primaryGuestName stringnullable

    Primary guest name.

    primaryGuestEmail stringnullable

    Primary guest email.

    primaryGuestCpf stringnullable

    Primary traveler's CPF (Brazilian taxpayer ID).

    primaryGuestPhone stringnullable

    Primary guest phone number.

    paymentType stringnullable

    Type of payment method used with the supplier.

    paymentAlias stringnullable

    Description of the payment method used with the supplier.

    paymentCreditCard objectnullable
    number stringnullable

    Masked number of the credit card.

    holder stringnullable

    Cardholder's name.

    brand stringnullable

    Credit card brand.

    expirationDate stringnullable

    Expire date of the credit card.

    createdById stringnullable

    ID of the issuing user.

    createdByName stringnullable

    Name of the issuing user.

    totalReservationPayable numbernullable

    Amount payable to the supplier for the reservation, including taxes.

    totalReservationPayCurrency stringnullable

    Purchase currency.

    totalReservationOriginalPriceCurrency stringnullable

    Original purchase currency.

    totalReservationOriginalPrice numbernullable

    Purchase amount of the reservation, including taxes.

    totalReservationPrice numbernullable

    Purchase amount of the reservation, including taxes.

    totalReservationTaxes numbernullable

    Taxes included in the purchase amount, in the same currency as the purchase.

    totalReservationReceivable numbernullable

    Sale amount of the reservation.

    totalReservationReceiveCurrency stringnullable

    Sale currency.

    totalCommissionPayable numbernullable

    Commission amount payable to the seller.

    totalCommissionPayCurrency stringnullable

    Currency of the commission payable.

    totalCommissionReceivable numbernullable

    Commission amount receivable for the sale.

    totalCommissionReceiveCurrency stringnullable

    Currency of the commission receivable.

    supplierId stringnullable

    Payment supplier ID for the item.

    hotelRooms object[]nullable

    Only for HOTEL type items. List of reserved rooms.

  • Array [
  • id stringnullable

    Room ID.

    name stringnullable

    Room description.

    guests object[]required

    Guests indetification.

  • Array [
  • firstName stringnullable

    Guest first name.

    lastName stringnullable

    Guest last name.

    ageQualifying stringrequired

    Possible values: [ADULT, CHILD]

    Age qualifier.

    age integernullable

    Guest age.

    cpf stringnullable

    Guest CPF.

    phone stringnullable

    Guest phone number.

    email stringnullable

    Guest email.

  • ]
  • startDate stringrequired

    Service start date. E.g., Check-in.

    endDate stringrequired

    Service end date. E.g., Check-out.

    status stringrequired

    Possible values: [CONFIRMED, CANCELLED, LOST]

    Current room status.

    cancelDate stringnullable

    Cancellation date. Applicable only when status = 'CANCELLED'.

    ratePlanName stringnullable

    Rate description.

    meal stringnullable

    Type of meal plan.

    nights object[]required

    Nights within the period.

  • Array [
  • date stringrequired

    Night date.

    percent numberrequired

    Percentage share of the night's value in the total room purchase value.

  • ]
  • cancelPolicy objectnullable
    nonRefundable booleannullable

    Indicates if the rate is Non-Refundable.

    penaltyDate stringnullable

    Deadline date for cancellation without penalty.

    penaltyValue numbernullable

    Penalty amount in case of cancellation with penalty.

    penaltyCurrency stringnullable

    Penalty currency.

    cancelledInPenalty booleannullable

    Indicates cancellation with penalty. Applicable only when status = 'CANCELLED'.

    supplierCancelPolicy objectnullable
    nonRefundable booleannullable

    Indicates if the rate is Non-Refundable.

    penaltyDate stringnullable

    Deadline date for cancellation without penalty.

    penaltyValue numbernullable

    Penalty amount in case of cancellation with penalty.

    penaltyCurrency stringnullable

    Penalty currency.

    cancelledInPenalty booleannullable

    Indicates cancellation with penalty. Applicable only when status = 'CANCELLED'.

    totalRoomPrice numbernullable

    Total purchase price of the room, including taxes.

    totalRoomPriceCurrency stringnullable

    Currency of room purchase.

    totalRoomTaxes numbernullable

    Taxes included in the purchase price, in the same 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
  • ]
  • ]
  • 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. E.g., 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 order items paid partially or fully by this payment transaction.

    credentialId stringnullable

    Supplier integration credential ID.

    credentialAlias stringnullable

    Supplier integration credential name.

    credentialType stringnullable

    Type of integration credential with the supplier.

    locator stringnullable

    Transaction locator in the supplier integration, based on the credential type.

    creditCardNumber stringnullable

    Only for CREDITCARD payment. Masked card number.

    creditCardHolder stringnullable

    Only for CREDITCARD payment. Cardholder's name.

    creditCardBrand stringnullable

    Only for CREDITCARD payment. Card brand.

    creditCardExpirationDate stringnullable

    Only for CREDITCARD payment. Card expiration date.

    installments numbernullable

    Only for CREDITCARD payment. Number of installments.

    captureDate stringnullable

    Only for CREDITCARD payment. Capture date.

    authorizationCode stringnullable

    Only for CREDITCARD payment. Authorization code.

    proofOfSale stringnullable

    Only for CREDITCARD payment. NSU (Unique Transaction Number).

    provider stringnullable

    Only for CREDITCARD payment. Acquirer, when available.

    providerTransactionId stringnullable

    Only for CREDITCARD payment. Transaction ID with the acquirer, when available.

    is3DS booleannullable

    Only for CREDITCARD payment. 3DS authorization used.

    paidItems object[]

    PaymentOption details of the order items paid partially or fully 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 rewards 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 its type. E.g., number of points or monetary value via cashback.

    currency stringnullable

    Cashback only. Currency used. ISO 4217 standard code. E.g., 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

    Points only. Description of the point type.

    credentialId stringnullable

    Credential ID of the integration with the supplier.

    credentialAlias stringnullable

    Supplier integration credential name.

    credentialType stringnullable

    Type of integration credential with the supplier.

    locator stringnullable

    Accumulation transaction locator in the supplier integration, based on the credential type.

  • ]
  • suppliers object[]required

    Supplier data for the items that make up the order.

  • Array [
  • id stringrequired

    Supplier ID.

    niaraId stringrequired

    Unique NIARA ID of this supplier.

    corporateName stringnullable

    Corporate name.

    brandName stringnullable

    Trade name.

    vat stringnullable

    CNPJ (Brazilian company tax ID).

    email stringnullable

    E-mail.

    phone stringnullable

    Phone number.

    address stringnullable

    Address (street and number).

    cityName stringnullable

    City.

    stateName stringnullable

    State.

    zipCode stringnullable

    Postal code.

    countryCode stringnullable

    ISO 3166-1 alpha-2 country code. E.g., 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 source of the quotation.

    createdAt stringnullable

    Creation date of the quotation.

    responsible stringnullable

    Name of the person responsible for the quotation.

    ignoreApiMetadata boolean

    Default value: true

Loading...