Ticket Status Update Webhook API
POST
Endpoint:[YourBaseURL]/webhooks/ticket-status-update
Note: Please provide the webhook endpoint URL where our system can send ticket status updates after ticket confirmation and issuance.
Overview
This API is used to update ticket status in your system based on the Booking Transaction ID.
- Once a ticket has been successfully confirmed and issued, our system automatically triggers a webhook and pushes the ticket status update to your endpoint in real time.
- All webhook requests are authenticated using our API key, which has already been shared with you for testing and live is a different key.
- To verify the authenticity of each request, your system must validate the
API keyprovided in theAuthorizationheader as a Bearer token before processing the request.
Request Headers
| Header | Value |
|---|---|
| Content-Type | application/json |
| Accept-Encoding | application/json |
| Authorization | Bearer {api_key} |
Request Body
{
"BookingTransactionRef": "NZ48980452471047237",
"PNR": "ABC123",
"AirlinesPNR": "LMN456, XYZ789",
"BookingRefNumber": "NZ-2026-0001",
"TicketInfoes": [
{
"PassengerInfo": {
"NameElement": {
"FirstName": "SHARIFUL",
"LastName": "ISLAM,
"DocumentNumber": "A1234567"
}
},
"TicketNumbers": [
"ETKT1234567890",
"ETKT1234567891"
]
},
{
"PassengerInfo": {
"NameElement": {
"FirstName": "Jane",
"LastName": "Smith",,
"DocumentNumber": "A7654321"
}
},
"TicketNumbers": [
"ETKT9876543210"
]
}
]
}
Request Parameters
| Type | HTTP Code | Response Field | Message Type | Message Example |
|---|---|---|---|---|
| Success | 200 | message | string | "Ticket Status Updated Successfully" |
| Validation Error | 422 | message | array | ["The unique trans id field is required."] |
| Booking Not Found | 422 | message | array | ["Air Booking Info not found"] |
| Ticket Not Found | 422 | message | array | ["Ticket info not found"] |
| Exception Error | 422 | message | array | ["Something went wrong..."] |
Response
Success Response
{
"code": 200,
"msg": "Ticket Status Updated Successfully"
}
Error Response
{
"code": 422,
"message": [
"Error message here"
]
}