{
  "opencollection": "1.0.0",
  "info": {
    "name": "Headout Partner Booking API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Headout-Auth",
      "value": "{{Headout-Auth}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Booking",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List bookings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.headout.com/api/public/v1/booking",
            "params": [
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Pagination offset."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Pagination limit."
              }
            ]
          },
          "docs": "List bookings"
        },
        {
          "info": {
            "name": "Create a booking (step 1)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.headout.com/api/public/v1/booking",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a booking in UNCAPTURED state. Capture it within 60 minutes via updateBooking or it transitions to CAPTURE_TIMEOUT."
        },
        {
          "info": {
            "name": "Retrieve a booking",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.headout.com/api/public/v1/booking/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The booking identifier."
              }
            ]
          },
          "docs": "Retrieve a booking"
        },
        {
          "info": {
            "name": "Capture / update a booking (step 2)",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.headout.com/api/public/v1/booking/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Capture a booking by setting status to PENDING, optionally attaching a partnerReferenceId. Idempotent — step 2 may be retried until it succeeds."
        }
      ]
    }
  ],
  "bundled": true
}