RELEASE PNR REQUEST

This method is used to release/cancel Hold Bookings which you do not want to ticket.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Customer-Ip

string

( header )

Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

Definition and request parameters for cancel hold booking

action

string

( query )

Must be "ReleasePNRRequest" as parameter

Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.

order_id

string

( query )

The Order ID generated at the time of booking.

BookingId

string

( query )

The Booking Id generated at the time of booking.

Source

string

( query )

Airline Sources

REQUEST

API Endpoint:https://www.abengines.com/api/v1/travel-api/flights/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);

POST:
{
    "action": "ReleasePNRRequest",
    "mode": "Test",
    "BookingId": "65413343",
    "order_id": "653bacd907855",
    "Source": 4
}
					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
    "status": "200",
    "status_message": "OK",
    "responseData": {
        "Response": {
            "B2B2BStatus": null,
            "ResponseStatus": 1,
            "TraceId": "0b52bfff-627c-4693-a090-e572324245dc",
            "Error": {
                "ErrorCode": 0,
                "ErrorMessage": ""
            }
        }
    }
}