Skip to main content
POST
Create PNR
Now that the price is locked, generate a PNR. This operation is financial and will atomically deduct the net_fare from your agency wallet.

Request Setup

string
required
Generate a random string (e.g. idem-123).
string
required
Paste the token from Step 2.
string
default:"YOUR_AGENT_ID"
required
Your specific UAT Agent ID.
string
default:"idem-123"
array
required
object
required

Instructions

  1. Paste the fare_token you received in Step 2.
  2. Ensure you have provided an Idempotency-Key in the headers.
  3. Hit the Send button.
Requirement: Your booking status should be BOOKED. Copy the booking_id from the response.

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string

A unique string to identify this request. Retrying a request with the same key will return the cached response.

X-Request-ID
string

Unique correlation ID for tracing.

Body

application/json
fare_token
string
required

Token obtained from Fare Validation.

passengers
object[]
required
contact_info
object
required
agent_id
string
idempotency_key
string

Response

Booking created.

booking_id
string
pnr
string
status
enum<string>
Available options:
PENDING,
BOOKED,
TICKETED,
FAILED
total_price_paise
integer
currency
string