Skip to main content

Delete Baggage

Remove one or more baggage options from an existing booking.


Endpoint

  • URL: /api/v1/flight/deletebaggage
  • Method: POST
  • Auth Required: Yes (Bearer Token/X-api-key)
  • Content-Type: application/json

Authentication

This endpoint requires a valid JWT Bearer token in the Authorization header:

Authorization: Bearer <access_token>

Obtain tokens via /api/v1/sign-in (POST) with your credentials.


Request Structure

FieldTypeRequiredDescription
systemstringYesBooking system code (e.g., VN, VJ, 1A)
bookingCodestringYesBooking code (PNR)
baggagesarrayYesList of baggage objects to remove (see DeleteBaggageInfo below)

DeleteBaggageInfo Object

FieldTypeRequiredDescription
baggageValuestringYesEncoded baggage value from Get Baggages

Example Request:

{
"system": "VN",
"bookingCode": "ABC123",
"baggages": [
{
"baggageValue": "eyJ2YWx1ZSI6ICJCRzI1IiwgInByaWNlIjogNDAwMDAwfQ=="
}
]
}

Request Constraints & Business Rules

  • bookingCode must be a valid, active booking.
  • baggageValue must be obtained from a previous Get Baggages response.
  • Only available for bookings that allow baggage modification.

Response Structure

FieldTypeNullableDescription
systemstringYesName of the airline system
statusbooleanNotrue if successful, false if failed
errorErrorCode (object)YesError details (if any)
descriptionstringYesError description (if any)
trackingIdstringYesTracking ID for request logs
trackingTimestring (date-time)YesTime for request tracking
baggagesarray of BaggageYesList of removed baggage options

Example Response

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "ghi789",
"trackingTime": "2025-07-01T07:20:00.000Z",
"baggages": [
{
"code": "BG25",
"name": "25kg Baggage",
"route": "HANSGN",
"prices": [
{
"passengerType": "Adult",
"price": 400000,
"currency": "VND",
"value": "eyJ2YWx1ZSI6ICJCRzI1IiwgInByaWNlIjogNDAwMDAwfQ=="
}
]
}
]
}

Error Codes

See Error Codes for details on possible error responses.


Security & Validation

  • All input is validated for type and required fields.
  • Only authenticated users can access this endpoint.
  • The endpoint is protected against tampering with bookingCode and baggageValue.

Validation Questions

  • Are there limits on the number of baggage items that can be removed per booking?
  • Can baggage be removed after check-in or only before?
  • Are there airline-specific restrictions on baggage removal?

For integration support, see Contact Support.