v1

latestOpenAPI 3.1.02026-08-0610344237.7 KB
Hotel

Modify hotel booking

Modify an existing hotel booking based on the request parameters. This API is used to confirm the requested changes for the booking.

post/v2/hotel/pnrs/{pnrId}/modify-book

Request body

bookingKeystring required

The booking key for the hotel booking

ancillaryKeysstring[]

User selected ancillaries associated with this hotel booking.

Response

OK

pnrIdstring required

The unique PNR ID for the modified hotel booking

pnrStatus'INITIATED' | 'CANCELLED' | 'CONFIRMED' | 'PENDING' | 'CONTACT_SUPPORT' | 'REQUEST_PENDING' | 'REQUESTED' required

The status of the PNR

externalPnrIdstring

The external PNR ID for the modified hotel booking, provided by the third party suppliers

Example response

{
  "pnrId": "7373737373",
  "pnrStatus": "CONFIRMED",
  "externalPnrId": "ABC123",
  "paymentVerificationInfo": {
    "stripeVerificationInfo": {
      "stripeCardTokens": {
        "paymentProcessor": "STRIPE",
        "paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3",
        "setupIntentClientSecret": "seti_1IBwEiKXFM6BpWYhfdCGZ7sg_secret_InXJDifWGBcVqekJvhAxidON6vHAvfS",
        "connectedAccountId": "acct_1NT8oyCZnFgI0lFY",
        "publishableKey": "pk_test_51Hx7XyI3bT9GUjvoUkRQooN3"
      }
    }
  }
}