---
updatedAt: 2026-11-02T12:00:26.000Z
agentTools:
  projectIndex: https://volt-docs.travclan.com/llms.txt
---

# Passenger Collections

This API creates a collection of passengers for a specified itinerary and saves the details in the database. It also validates the provided guest information.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Flight API",
    "contact": {},
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://flight-aggregator-api-sandbox.travclan.com",
      "description": "SandBox"
    }
  ],
  "paths": {
    "/api/v2/flights/itinerary/{itineraryCode}/passenger-collections": {
      "post": {
        "tags": [
          "Save Passenger Details"
        ],
        "summary": "Passenger Collections",
        "description": "This API creates a collection of passengers for a specified itinerary and saves the details in the database. It also validates the provided guest information.",
        "operationId": "passenger-collections",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "",
            "required": true,
            "style": "simple",
            "schema": {
              "enum": [
                "application/json"
              ],
              "type": "string",
              "example": "application/json"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "Authorization token to authenticate the API request.",
            "schema": {
              "type": "string"
            },
            "example": "Bearer {{authorization}}"
          },
          {
            "name": "Authorization-Type",
            "in": "header",
            "required": true,
            "description": "Specifies the type of authorization, here it is set to external-service.",
            "schema": {
              "type": "string",
              "default": "external-service"
            },
            "example": "external-service"
          },
          {
            "name": "source",
            "in": "header",
            "required": true,
            "description": "Specifies the source of the request (End User Source). Available choices: website, android, mweb, ios.",
            "schema": {
              "type": "string",
              "enum": [
                "website",
                "android",
                "mweb",
                "ios"
              ],
              "default": "website"
            },
            "example": "website"
          },
          {
            "name": "itineraryCode",
            "in": "path",
            "description": "",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Powered-By": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "Express"
                  }
                }
              },
              "Access-Control-Allow-Headers": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "Content-Type, Authorization, source, client-version, platform, Authorization-Mode"
                  }
                }
              },
              "Content-Length": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "199"
                  }
                }
              },
              "ETag": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "W/\"c7-9SKYGXciuU1rjPD+DpwlysVI+hA\""
                  }
                }
              },
              "Date": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "Tue, 30 Jul 2024 10:00:51 GMT"
                  }
                }
              },
              "Connection": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "keep-alive"
                  }
                }
              },
              "Keep-Alive": {
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string"
                    },
                    "example": "timeout=5"
                  }
                }
              }
            },
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "allOf": [
                    {
                      "title": "Passenger Collections",
                      "required": [
                        "traceId",
                        "itineraryCode",
                        "traceIdDetails"
                      ],
                      "type": "object",
                      "properties": {
                        "traceId": {
                          "type": "string",
                          "description": "Unique identifier for the search."
                        },
                        "itineraryCode": {
                          "type": "string",
                          "description": "The unique code representing the itinerary."
                        },
                        "traceIdDetails": {
                          "allOf": [
                            {
                              "title": "TraceIdDetails",
                              "required": [
                                "traceId",
                                "remainingTime",
                                "createdAt"
                              ],
                              "type": "object",
                              "properties": {
                                "traceId": {
                                  "type": "string",
                                  "description": "Unique identifier for the search."
                                },
                                "remainingTime": {
                                  "type": "integer",
                                  "format": "int32",
                                  "description": "Remaining time in seconds."
                                },
                                "createdAt": {
                                  "type": "string",
                                  "description": "Creation time of the trace ID (ISO 8601 format)."
                                }
                              },
                              "example": {
                                "traceId": "70d878df-2715-48eb-b014-63c40d3a3bd1",
                                "remainingTime": 8448,
                                "createdAt": "2024-07-30T15:13:04"
                              }
                            },
                            {}
                          ],
                          "description": "Details of the trace ID."
                        }
                      },
                      "example": {
                        "traceId": "8e3a162d-6801-4001-b539-9a8096c7ee41",
                        "itineraryCode": "itrjie4",
                        "traceIdDetails": {
                          "traceId": "8e3a162d-6801-4001-b539-9a8096c7ee41",
                          "remainingTime": 8891,
                          "createdAt": "2024-07-30T15:29:01"
                        }
                      }
                    },
                    {
                      "example": {
                        "traceId": "8e3a162d-6801-4001-b539-9a8096c7ee41",
                        "itineraryCode": "itrjie4",
                        "traceIdDetails": {
                          "traceId": "8e3a162d-6801-4001-b539-9a8096c7ee41",
                          "remainingTime": 8891,
                          "createdAt": "2024-07-30T15:29:01"
                        }
                      }
                    }
                  ]
                },
                "example": {
                  "traceId": "8e3a162d-6801-4001-b539-9a8096c7ee41",
                  "itineraryCode": "itrjie4",
                  "traceIdDetails": {
                    "traceId": "8e3a162d-6801-4001-b539-9a8096c7ee41",
                    "remainingTime": 8891,
                    "createdAt": "2024-07-30T15:29:01"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request. The passenger save request parameter is invalid or missing."
          },
          "401": {
            "description": "Unauthorized. The access token is missing or invalid."
          },
          "422": {
            "description": "Bad Request. Client Side Error in Request Body."
          },
          "500": {
            "description": "Internal Server Error."
          }
        },
        "deprecated": false,
        "security": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "traceId": {
                    "type": "string",
                    "description": "Unique identifier for the search."
                  },
                  "passengers": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "title": {
                          "type": "string",
                          "description": "Title of the passenger (e.g., Mr, Ms, Mrs)."
                        },
                        "firstName": {
                          "type": "string",
                          "description": "First name of the passenger."
                        },
                        "lastName": {
                          "type": "string",
                          "description": "Last name of the passenger. (no of chars >=2)"
                        },
                        "passportNumber": {
                          "type": "string",
                          "description": "Passport number of the passenger."
                        },
                        "passportExpiry": {
                          "type": "string",
                          "description": "Passport expiry date in YYYY-MM-DD format."
                        },
                        "gender": {
                          "type": "string",
                          "description": "Gender of the passenger (e.g., male, female)."
                        },
                        "isLeadPax": {
                          "type": "boolean",
                          "description": "Indicates if the passenger is the lead passenger in the booking."
                        },
                        "paxType": {
                          "type": "integer",
                          "description": "Passenger type (e.g., 1 for adult, 2 for child, 3 for infant)."
                        },
                        "addressLineOne": {
                          "type": "string",
                          "description": "Primary address line of the passenger."
                        },
                        "addressLineTwo": {
                          "type": "string",
                          "description": "Secondary address line of the passenger."
                        },
                        "city": {
                          "type": "string",
                          "description": "City of the passenger."
                        },
                        "cellCountryCode": {
                          "type": "string",
                          "description": "Country calling code for the contact number."
                        },
                        "contactNumber": {
                          "type": "string",
                          "description": "Passenger's contact phone number."
                        },
                        "countryCode": {
                          "type": "string",
                          "description": "ISO country code of the passenger's nationality.",
                          "default": ""
                        },
                        "countryName": {
                          "type": "string",
                          "description": "Full name of the country of the passenger."
                        },
                        "dateOfBirth": {
                          "type": "string",
                          "description": "Date of birth of the passenger in YYYY-MM-DD format."
                        },
                        "email": {
                          "type": "string",
                          "description": "Email address of the passenger."
                        },
                        "frequentFlyerAirlineCode": {
                          "type": "string",
                          "description": "Frequent flyer membership number."
                        },
                        "gstCompanyAddress": {
                          "type": "string",
                          "description": "GST registered company address (if applicable)."
                        },
                        "gstCompanyContactNumber": {
                          "type": "string",
                          "description": "GST registered company contact number (if applicable)."
                        },
                        "gstCompanyEmail": {
                          "type": "string",
                          "description": "GST registered company email address (if applicable)."
                        },
                        "gstCompanyName": {
                          "type": "string",
                          "description": "GST registered company name (if applicable)."
                        },
                        "gstNumber": {
                          "type": "string",
                          "description": "GST identification number (if applicable)."
                        },
                        "nationality": {
                          "type": "string",
                          "description": "Nationality of the passenger (ISO country code format)."
                        },
                        "ssr": {
                          "type": "object",
                          "description": "Special service requests (SSR) for meals, baggage, and seat selection.",
                          "properties": {
                            "meal": {
                              "type": "array",
                              "items": {
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "description": "Meal code"
                                  },
                                  "origin": {
                                    "type": "string",
                                    "description": "Origin airport code for the meal request."
                                  },
                                  "destination": {
                                    "type": "string",
                                    "description": "Destination airport code for the meal request."
                                  },
                                  "amt": {
                                    "type": "integer",
                                    "description": "Price of the meal."
                                  }
                                },
                                "type": "object"
                              },
                              "description": "Meal preferences requested by the passenger."
                            },
                            "baggage": {
                              "type": "array",
                              "items": {
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "description": "Baggage code"
                                  },
                                  "origin": {
                                    "type": "string",
                                    "description": "Origin airport code for the baggage request."
                                  },
                                  "destination": {
                                    "type": "string",
                                    "description": "Destination airport code for the baggage request."
                                  },
                                  "amt": {
                                    "type": "integer",
                                    "description": "Price of the baggage option."
                                  }
                                },
                                "type": "object"
                              }
                            },
                            "seat": {
                              "type": "array",
                              "items": {
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "description": "Seat code (e.g., 6C for row 6, seat C)."
                                  },
                                  "origin": {
                                    "type": "string",
                                    "description": "Origin airport code for the seat selection."
                                  },
                                  "destination": {
                                    "type": "string",
                                    "description": "Destination airport code for the seat selection."
                                  },
                                  "amt": {
                                    "type": "integer",
                                    "description": "Price of the selected seat."
                                  },
                                  "seat": {
                                    "type": "string",
                                    "description": "Seat number assigned."
                                  }
                                },
                                "type": "object"
                              }
                            }
                          }
                        }
                      },
                      "type": "object",
                      "required": [
                        "title",
                        "firstName",
                        "lastName",
                        "isLeadPax",
                        "paxType",
                        "cellCountryCode",
                        "contactNumber",
                        "email",
                        "nationality"
                      ]
                    },
                    "description": "Passenger details including SSR information."
                  }
                },
                "required": [
                  "traceId",
                  "passengers"
                ]
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Save Passenger Details"
    }
  ]
}
```