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
systemstringNoBooking system code (e.g., VN, VJ, 1A)
bookingCodestringNoBooking 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 Passport)

Example 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.
  • 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

Example Response:

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

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