Booking

Book a flight

POST /flight/book

Use this API to book a flight.

Headers

Name
Value

Content-Type

application/json

VOLZ-API-KEY

<api_key>

VOLZ-API-SECRET

<api_secret>

Body

Name
Type
Description

flight_key*

string

The flight key

contact*

object

Client contact information

contact.email*

string

Client email

contact.phone_number*

string

Client phone number

contact.city_id*

int

Client city id

contact.municipality*

string

Client municipality

travelers*

array

Travelers list Must be the same size as selected travelers

travelers.*.date_of_birth*

date

Traveler date of birth

travelers.*.first_name*

string

Traveler first name

travelers.*.last_name*

string

Traveler last name

travelers.*.middle_name

string

Traveler middle name

travelers.*.type*

string

Possible values: ADULT,CHILD,HELD_INFANT

travelers.*.gender*

string

Possible values: MALE,FEMALE

travelers.*.document*

object

Traveler documents

travelers.*.document.document_type*

string

Possible values: PASSPORT, IDENTITY_CARD

travelers.*.document.number*

string

Document number

travelers.*.document.expiry_date*

date

Document expiry date

travelers.*.document.nationality*

string

Nationality in ISO 3166-1 alpha-2 format

Response

{
  "id": 285,
  "booking_type": "SYSTEM",
  "payment_type": "CASH",
  "trip_type": "OW",
  "contact_email": "[email protected]",
  "contact_phone_number": "+21302218122",
  "can_contact_whatsapp": false,
  "booking_code": "2ffc45d6e0a4b9e7d393221a36922572",
  "city_id": 1,
  "municipality": "Jijel",
  "flight_zone": "INTERNATIONAL",
  "cabin": "ECONOMY",
  "created_at": "2024-08-07T18:08:47.000000Z",
  "city_name": "Badakhshan",
  "flight_offer": {
    "id": 292,
    "trip_type": "OW",
    "itineraries": [
      {
        "id": 270,
        "booking_id": 285,
        "segments": [
          {
            "id": 432,
            "itinerary_id": 270,
            "departure_iata_code": "ALG",
            "departure_terminal": "W",
            "departure_at": "2024-08-10 15:45:00",
            "arrival_iata_code": "DXB",
            "arrival_terminal": "3",
            "arrival_at": "2024-08-11 01:05:00",
            "carrier_code": "EK",
            "flight_number": "758",
            "aircraft_code": "77W",
            "aircraft_name": "BOEING 777-300ER",
            "duration": "PT6H20M",
            "number_of_stops": 0,
            "cabin": "ECONOMY",
            "class": "Q",
            "weight": null,
            "quantity": 2,
            "weight_unit": null
          }
        ]
      }
    ]
  },
  "travelers": [
    {
      "id": 472,
      "ticket_number": null,
      "booking_id": 285,
      "date_of_birth": "1982-02-12",
      "gender": "MALE",
      "first_name": "JORGEB",
      "middle_name": "GEORGE",
      "last_name": "GONZALES",
      "type": "ADULT",
      "document_type": "PASSPORT",
      "document_number": "00000000",
      "document_expiry_date": "2025-04-14",
      "nationality": "ES",
      "total_price": 26499.5,
      "currency": "DZD"
    },
    {
      "id": 473,
      "ticket_number": null,
      "booking_id": 285,
      "date_of_birth": "1982-01-16",
      "gender": "MALE",
      "first_name": "JORGE",
      "middle_name": "GEORGE",
      "last_name": "GONZALES",
      "type": "ADULT",
      "document_type": "PASSPORT",
      "document_number": "00000000",
      "document_expiry_date": "2025-04-14",
      "nationality": "ES",
      "total_price": 26499.5,
      "currency": "DZD"
    }
  ],
  "price": {
    "id": 282,
    "booking_id": 285,
    "currency": "DZD",
    "total": 52999
  },
  "city": {
    "id": 1,
    "country_code": "AF",
    "name": "Badakhshan",
    "code": "BDS",
    "latitude": 36.7347725,
    "longitude": 70.8119953,
    "type": null,
    "name_ar": "Badakhshan",
    "name_fr": "Badakhshan"
  }
}

Last updated