{
  "info": {
    "name": "Amanah Global API · Bookings",
    "description": "List, inspect and sync bookings across products.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Endpoints",
      "item": [
        {
          "name": "List bookings",
          "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}}/booking-list",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "booking-list"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"member_id\": \"all\",\n  \"tracking_id\": \"\",\n  \"booking_id\": \"\",\n  \"supplier_confirmation_id\": \"\",\n  \"airlines_pnr\": \"\",\n  \"service_type\": \"FLIGHT\",\n  \"generated_date_start\": \"2026-12-01\",\n  \"generated_date_end\": \"2026-12-15\",\n  \"book_date_start\": \"\",\n  \"book_date_end\": \"\",\n  \"primary_guest_name\": \"\",\n  \"primary_guest_contact_no\": \"\",\n  \"limit_data\": \"100\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Lists bookings for a member, filtered by service, dates, guest or booking references. Sample captured in docs/samples/bookings/booking-list.json."
          },
          "response": []
        },
        {
          "name": "Get booking details (shared by all services)",
          "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}}/booking-details",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "booking-details"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"member_id\": \"1\",\n  \"tracking_id\": \"TRACKING-ID-EXAMPLE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Complete details for one booking. This single endpoint serves every service (flight, hotel, transfer, tour, visa, esim, car, insurance, package, train, activity, fast-track, meet-and-greet); the service is returned in `general.service_type`. Lounge bookings use `/businesslounge/booking-details`. Definition taken from openapi/hotel.yaml, where the same operation is repeated in each service spec.\n"
          },
          "response": []
        },
        {
          "name": "Verify a booking that is still processing",
          "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}}/booking-processing-verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "booking-processing-verify"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"member_id\": \"1\",\n  \"tracking_id\": \"TRACKING-ID-EXAMPLE\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "b2b calls this when `booking_status` is \"processing\", then refreshes the page on success. May change booking state (not called during documentation). b2b sends member_id \"1\" literally."
          },
          "response": []
        },
        {
          "name": "Check whether a service is blocked",
          "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}}/reports/service-status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "reports",
                "service-status"
              ]
            },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"login_key\": \"LOGIN-KEY-EXAMPLE\",\n  \"member_id\": \"1\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "description": "Called by b2b flight and hotel checkout buttons before booking. b2b reads `service_status.block_status`, `flight_block` / `hotel_block` and `reason`. Observed in itt_b2b; semantics unconfirmed."
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://serviceapi.sandbox.amanahglobal.it"
    }
  ]
}