latestOpenAPI 3.1.02026-08-10390815.4 KB

e5f3dccae7ca

Orders

Create an order

Use this endpoint to confirm the booking and proceed the payment.

post/orders/create

Headers

X-Affiliate-Idinteger required

Include here your Affiliate identifier number

Request body

order_tokenstring required

A token containing the necessary data to be used for creating this order.

Example request

{
  "booker": {
    "address": {
      "country": "nl"
    },
    "language": "en-us"
  },
  "payment": {
    "business_information": {
      "billing": {
        "address": {
          "country": "nl"
        }
      }
    }
  }
}

Response

Successful response.

request_idstring

Uniquely identifies the request. Please provide this identifier when contacting support.

Example response

{
  "data": {
    "accommodation": {
      "third_party_inventory": {
        "checkin_number": "473026811",
        "confirmation_number": "12365478936925814787"
      }
    },
    "payment": {
      "authorisation_form_url": "https://secure-admin.booking.com/airplus_auth_form_pdf.html?token=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&lang=en",
      "receipt_url": "https://secure.booking.com/payment_receipt.html?bn=0000000000&pincode=0000&lang=en"
    }
  }
}