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
| Field | Type | Required | Description |
|---|---|---|---|
| system | string | No | Booking system code (e.g., VN, VJ, 1A) |
| bookingCode | string | No | Booking code (PNR) |
| infants | array of PassengerInfant | No | List of infants to update in the booking |
PassengerInfant Object
| Field | Type | Required | Description |
|---|---|---|---|
| index | integer | No | Passenger order |
| parentId | string | No | Adult passenger ID that the infant accompanies |
| givenName | string | No | Given name |
| surname | string | No | Surname |
| gender | boolean | No | Gender |
| dateOfBirth | string | No | Date of birth (date format) |
| title | string | No | Title (MR/MRS/MS/MSTR) |
| phone | string | No | Phone number |
| string | No | Email address | |
| document | object | No | Document 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
bookingCodemust 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
| Field | Type | Nullable | Description |
|---|---|---|---|
| system | string | Yes | Name of the airline system |
| status | boolean | No | true if successful, false if failed |
| error | ErrorCode (object) | Yes | Error details (if any) |
| description | string | Yes | Error description (if any) |
| trackingId | string | Yes | Tracking ID for request logs |
| trackingTime | string (date-time) | Yes | Time 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
bookingCodeand 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.