{
  "opencollection": "1.0.0",
  "info": {
    "name": "Flexport REST Bookings API",
    "version": "2023-07-01"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.flexport.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Bookings",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List bookings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.flexport.com/v2/bookings"
          },
          "docs": "List bookings"
        },
        {
          "info": {
            "name": "Create a booking",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.flexport.com/v2/bookings",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a booking"
        },
        {
          "info": {
            "name": "Retrieve a booking",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.flexport.com/v2/bookings/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a booking"
        },
        {
          "info": {
            "name": "Create a booking amendment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.flexport.com/v2/booking-amendments",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a booking amendment"
        },
        {
          "info": {
            "name": "List booking line items",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.flexport.com/v2/booking-line-items"
          },
          "docs": "List booking line items"
        },
        {
          "info": {
            "name": "Create a booking line item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.flexport.com/v2/booking-line-items",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a booking line item"
        }
      ]
    }
  ],
  "bundled": true
}