v1

latestOpenAPI 3.1.02026-08-0610344237.7 KB
Hotel

Create a new hotel booking

Creates a new hotel booking for the given request parameters.

post/v2/hotel/create-pnr

Request body

bookingKeystring required

The booking key for the hotel booking.

cancelSourcePnrIdstring

The source PNR ID within the booking source that needs to be canceled in favor of the new booking that is being created.

ancillaryKeysstring[]

User selected ancillaries associated with this hotel booking.

Response

OK

pnrIdstring required

A unique PNR ID created by Spotnana for the new hotel booking.

pnrStatus'SUCCESS' | 'APPROVAL_PENDING' | 'CONFIRMATION_PENDING' required

The status of the PNR.

externalPnrIdstring

The external PNR ID for the hotel booking, created by the third party suppliers.

Example response

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