{
  "info": {
    "name": "Voraal API · Car rental",
    "description": "Car rental search and bookings.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Booking flow",
      "item": [
        {
          "name": "Search Available Rental Cars",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "apikey",
                "value": "{{apikey}}",
                "type": "text"
              },
              {
                "key": "secretecode",
                "value": "{{secretecode}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/car/search",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "car",
                "search"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pickup\": {\n    \"type\": \"AIRPORT\",\n    \"location\": \"DXB\",\n    \"datetime\": \"2027-11-29T06:31:59\"\n  },\n  \"return\": {\n    \"type\": \"LOC\",\n    \"location\": \"DXB\",\n    \"datetime\": \"2027-11-30T06:32:59\"\n  },\n  \"country\": \"AE\",\n  \"driver_age\": \"25\",\n  \"partner_id\": \"1\",\n  \"short_ref\": \"xxxx111\",\n  \"language\": \"en\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Search for available rental cars based on pickup/return locations, dates, country, driver age, and supplier preferences."
          },
          "response": []
        },
        {
          "name": "Get Details for a Single Rental Car",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "apikey",
                "value": "{{apikey}}",
                "type": "text"
              },
              {
                "key": "secretecode",
                "value": "{{secretecode}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/car/single-car",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "car",
                "single-car"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"tracking_id\": \"311792323445GQI1\",\n  \"car_id\": \"C1IR00443#12-13-16\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Retrieve detailed information, features, and pricing breakdown for a specific selected car."
          },
          "response": []
        },
        {
          "name": "Get car checkout validation status",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "apikey",
                "value": "{{apikey}}",
                "type": "text"
              },
              {
                "key": "secretecode",
                "value": "{{secretecode}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/car/validation-get-status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "car",
                "validation-get-status"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"booking_tracking_id\": \"11178902162088132JZAAP\",\n  \"member_id\": \"1\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Called on the checkout page after `/car/single-car` has already run. Returns the validated\ncar/booking state for a booking tracking id. Do not call `/car/single-car` again at checkout\n(it creates a second booking). b2b only checks `status === \"success\"` and uses the whole body.\n"
          },
          "response": []
        },
        {
          "name": "Update Traveller Details for Car Booking",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "apikey",
                "value": "{{apikey}}",
                "type": "text"
              },
              {
                "key": "secretecode",
                "value": "{{secretecode}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/car/update-travellers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "car",
                "update-travellers"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"booking_tracking_id\": \"311179232352680180WVZHZ\",\n  \"member_id\": \"1\",\n  \"save_pax\": \"yes\",\n  \"passenger\": [\n    {\n      \"pax_id\": \"1\",\n      \"pax_type\": \"ADT\",\n      \"gender\": \"M\",\n      \"title\": \"MR\",\n      \"first_name\": \"Elias\",\n      \"last_name\": \"Shikdar\",\n      \"dob\": \"2004-01-24\",\n      \"age\": \"22\",\n      \"doc_country\": \"BD\",\n      \"doc_no\": \"A1235121\",\n      \"doc_dateofexpiry\": \"2030-04-25\",\n      \"doc_dateofissue\": \"\",\n      \"frequent_flyer\": \"21321313132\",\n      \"isd_code\": \"880\",\n      \"contact_no\": \"1901402814\",\n      \"email_address\": \"elias@testdemo.com\",\n      \"wheelchair_required\": \"no\",\n      \"doc_url\": \"https://it-documents-copy.s3.amazonaws.com/passport-copy/22111729936863836941169529839468110.jpeg\",\n      \"passport_copy\": \"https://it-documents-copy.s3.amazonaws.com/passport-copy/22111729936863836941169529839468110.jpeg\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Update passenger/driver information and identity documents associated with a car booking session."
          },
          "response": []
        },
        {
          "name": "Create Car Booking",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "apikey",
                "value": "{{apikey}}",
                "type": "text"
              },
              {
                "key": "secretecode",
                "value": "{{secretecode}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/car/create-booking",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "car",
                "create-booking"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"booking_tracking_id\": \"311179232352680180WVZHZ\",\n  \"car_tracking_id\": \"311179232352680180WVZHZ||12-13-16\",\n  \"member_id\": \"1\",\n  \"isPartialPay\": \"no\",\n  \"contact_no\": 1901402814,\n  \"isd_code\": \"88\",\n  \"email_address\": \"testdemo.com\",\n  \"agency_email\": \"Imam@testdemo.com\",\n  \"note\": \"this is test\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Confirm and create a car booking reservation using account balance or online payment gateway."
          },
          "response": []
        },
        {
          "name": "Cancel Car Booking",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "apikey",
                "value": "{{apikey}}",
                "type": "text"
              },
              {
                "key": "secretecode",
                "value": "{{secretecode}}",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/car/cancel-booking",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "car",
                "cancel-booking"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"member_id\": \"1\",\n  \"tracking_id\": \"11178902162088132JZAAP\",\n  \"reason\": \"not required\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Request cancellation for an existing car rental booking."
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://serviceapi.rezencia.com"
    }
  ]
}