Release PNR

Release PNR API

The Release PNR API allows you to release a PNR (Passenger Name Record) for flight bookings.

API Endpoint

POST /flight/release_pnr

Headers

HeaderTypeRequiredDescription
client-idstringYesYour unique Client ID
client-secretstringYesYour secure Client Secret key
Content-TypestringYesMust be application/json

Request Structure

Request Body Parameters

ParameterTypeRequiredDescription
client_referenceIdstringYesUnique Client Reference ID for tracking the transaction
booking_idintegerYesUnique ID for the booking that needs to be released
sourcestringYesThe source system identifier (e.g., "Amadeus", "Travelport", etc.)

Example Request

{
    "client_referenceId": "673678623163",
    "booking_id": 1965951,
    "source": "Amadeus"
}

Response Structure

Successful Response

When the PNR is successfully released, the API returns a JSON response with the following structure:

FieldTypeDescription
statusstringStatus of the operation (SUCCESS for successful releases)
statusCodestringHTTP status code as string ("200" for successful operations)
messagestringDescriptive message about the operation result

Example Response

{
    "status": "SUCCESS",
    "statusCode": "200",
    "message": "PNR released successfully."
}

Response Status Codes

Status CodeStatusDescription
200SUCCESSPNR released successfully
400FAILEDBad request or invalid parameters
404FAILEDBooking not found
500ERRORInternal server error

Integration Example

const releaseBooking = async (clientReferenceId, bookingId, source) => {
    const response = await fetch('/flight/release_pnr', {
        method: 'POST',
        headers: {
            'client-id': 'your-client-id',
            'client-secret': 'your-client-secret',
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({
            client_referenceId: clientReferenceId,
            booking_id: bookingId,
            source: source
        })
    });
    
    return await response.json();
};
Language
Click Try It! to start a request and see the response here!