{
  "opencollection": "1.0.0",
  "info": {
    "name": "Patch Carbon Order Line Items Orders API",
    "version": "2"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Orders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.patch.io/v1/orders",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "1-indexed page number for paginated responses."
              },
              {
                "name": "metadata",
                "value": "",
                "type": "query",
                "description": "Filter orders by metadata key/value pairs set when the order was created."
              },
              {
                "name": "state",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a paginated list of carbon credit and removal orders for the authenticated organization."
        },
        {
          "info": {
            "name": "Create An Order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.patch.io/v1/orders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new carbon credit or removal order. Orders may be created in draft and placed later, or placed inline."
        },
        {
          "info": {
            "name": "Retrieve An Order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.patch.io/v1/orders/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a single carbon credit or removal order by ID."
        },
        {
          "info": {
            "name": "Delete An Order",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.patch.io/v1/orders/:uid",
            "params": [
              {
                "name": "uid",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a draft order. Placed and completed orders cannot be deleted; use the cancel endpoint instead."
        },
        {
          "info": {
            "name": "Place An Order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.patch.io/v1/orders/:id/place",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Transitions a draft order to placed, committing the credits to the buyer."
        },
        {
          "info": {
            "name": "Cancel An Order",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.patch.io/v1/orders/:id/cancel",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Cancels a previously placed order where the project allows cancellation."
        }
      ]
    }
  ],
  "bundled": true
}