{
  "info": {
    "name": "GrabJet Operator Integration Sandbox",
    "description": "Starter Postman collection for GrabJet operator integration onboarding. Replace variables with credentials issued after sandbox approval.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "base_url", "value": "http://localhost:8888" },
    { "key": "operator_id", "value": "op_123" },
    { "key": "api_key", "value": "gj_sandbox_replace_me" }
  ],
  "item": [
    {
      "name": "Aircraft Updated",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-API-Key", "value": "{{api_key}}" },
          { "key": "Idempotency-Key", "value": "evt_aircraft_1001" },
          { "key": "X-GrabJet-Event", "value": "aircraft.updated" }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/integrations/operators/{{operator_id}}/aircraft",
          "host": ["{{base_url}}"],
          "path": ["api", "v1", "integrations", "operators", "{{operator_id}}", "aircraft"]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"event_id\": \"evt_aircraft_1001\",\n  \"event_type\": \"aircraft.updated\",\n  \"operator_reference\": \"OP-ACME-001\",\n  \"occurred_at\": \"2026-06-29T10:30:00Z\",\n  \"data\": {\n    \"tail_number\": \"N900GJ\",\n    \"aircraft_type\": \"Gulfstream G650\",\n    \"seats\": 14,\n    \"max_range_nm\": 7000,\n    \"current_airport\": \"OMDB\",\n    \"status\": \"available\"\n  }\n}"
        }
      }
    },
    {
      "name": "Booking Accepted",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-API-Key", "value": "{{api_key}}" },
          { "key": "Idempotency-Key", "value": "evt_booking_response_2001" },
          { "key": "X-GrabJet-Event", "value": "booking.accepted" }
        ],
        "url": {
          "raw": "{{base_url}}/api/v1/integrations/operators/{{operator_id}}/bookings",
          "host": ["{{base_url}}"],
          "path": ["api", "v1", "integrations", "operators", "{{operator_id}}", "bookings"]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"event_id\": \"evt_booking_response_2001\",\n  \"event_type\": \"booking.accepted\",\n  \"booking_reference\": \"GJ-BKG-2026-001\",\n  \"operator_reference\": \"OP-ACME-001\",\n  \"accepted\": true,\n  \"operator_confirmation\": \"ACME-CONF-8842\"\n}"
        }
      }
    }
  ]
}
