Skip to main content

Update Infant

Update information for one or more infants in an existing flight booking.


Endpoint

  • URL: /api/v1/flight/infant
  • Method: PUT
  • 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)
infantsarray of PassengerInfantNoList of infants to update in the booking

PassengerInfant Object

FieldTypeRequiredDescription
indexintegerNoPassenger order
parentIdstringNoAdult passenger ID that the infant accompanies
givenNamestringNoGiven name
surnamestringNoSurname
genderbooleanNoGender
dateOfBirthstringNoDate of birth (date format)
titlestringNoTitle (MR/MRS/MS/MSTR)
phonestringNoPhone number
emailstringNoEmail address
documentobjectNoDocument information (see Passenger Info Object)

Sample Request:

{
"system": "VN",
"bookingCode": "ABC123",
"infants": [
{
"index": 1,
"parentId": "ADT001",
"title": "MR",
"gender": true,
"givenName": "MINH",
"surname": "NGUYEN",
"dateOfBirth": "2024-01-01"
}
]
}

Request Constraints & Business Rules

  • bookingCode must refer to an existing, valid booking.
  • Each infant must be associated with an adult passenger (parentId).
  • Only existing infants in the booking can be updated.
  • The number of infants cannot exceed the number of adults in the booking.
  • If infant document is provided, type (DocumentType), number, surName, givenName, and expiryDate are required.
  • If infant document.type is I, expiryDate is optional.
  • All required fields for each infant must be provided.

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

Sample Response:

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "track-002",
"trackingTime": "2024-07-01T12:30:00Z"
}

Error Codes

This endpoint may return the following error codes:

For a complete list of error codes, see Error Codes.


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 infant data.

Validation Questions

  • Can an infant be reassigned to a different adult after booking?
  • Are there restrictions on updating document or membership info?
  • What happens if the updated info conflicts with airline rules?
  • Is it possible to update multiple infants in a single request?

For integration support, see Contact Support.