Sending lodging data with your own form

Background
Before starting this tutorial, make sure you understand the following topics from the Quick start section:

Merchants in the lodging industry can pass certain parameters.

Only card-based requests are allowed, but you can use both the ecommerce or retail flows for terminal or remote.

The entire lodging object is optional. However, the following are all the supported parameters:

  • Advanced Deposit (lodging.advanceDeposit)
  • Check-in Date (lodging.checkInDate)
  • Check-out Date (lodging.checkOutDate)
  • No Show (lodging.noShow)
  • Room Number (lodging.roomNumber)
  • Room Rate (lodging.roomRate)
  • Folio Number (customer.orderNumber)
  1. Prepare the Iframe

    Follow steps 1-4 of the Creating a card checkout page with your own form tutorial.

  2. Post Card Information to Nexio

    Follow step 5 of the Creating a card checkout page with your own form tutorial.
    Include the lodging object and the folio number in the body of your request.

    📘

    Note

    Folio number must be sent in the customer object, labeled orderNumber.

    curl -X POST https://api.nexiopaysandbox.com/pay/v3/process \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'Authorization: Basic [Base64_encoded_login]'
      -d '{
      "data": {
        "lodging": {
          "advanceDeposit": true,
          "checkInDate": "2018-12-31",
          "checkOutDate": "2019-01-05", 
          "roomNumber": 14, 
          "roomRate": 143.99
        },
        "customer": {
          "orderNumber": 4566
        }
      },
      "tokenex": {
        "token": "6ee140a0-05d1-4958-8325-b38a690dbb9d"
      }
    }'
    

  3. Create a Receipt for the Customer

    Follow step 6 of the Creating a card checkout page with your own form tutorial.