{
  "opencollection": "1.0.0",
  "info": {
    "name": "Deliverect Channel Accounts Checkout API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.deliverect.com/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Checkout",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Deliverect Checkout Basket",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.deliverect.com/commerce/:accountId/v2/checkouts",
            "params": [
              {
                "name": "accountId",
                "value": "668e4aa170efd23c474b2ad1",
                "type": "path",
                "description": "The accountId value."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a checkout session from a basket, leading to a payment intent based on the provided gateway."
        },
        {
          "info": {
            "name": "Deliverect Get Checkout",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.deliverect.com/commerce/:accountId/v2/checkouts/:checkoutId",
            "params": [
              {
                "name": "accountId",
                "value": "5b71c6489f00290d4",
                "type": "path",
                "description": "The accountId value."
              },
              {
                "name": "checkoutId",
                "value": "609a1b2c3d4e5f6a7b8c9d0e",
                "type": "path",
                "description": "The checkoutId value."
              }
            ]
          },
          "docs": "Returns a checkout session by ID. This can be used to poll the status of a checkout session providing order placement details."
        }
      ]
    }
  ],
  "bundled": true
}