{
  "opencollection": "1.0.0",
  "info": {
    "name": "OneRail Delivery Cloud - Delivery Documents API",
    "version": "0.0.3"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "X-ONERAIL-API-KEY",
      "value": "{{X-ONERAIL-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Documents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve all documents associated with a specific delivery. This includes a variety of documents required for the shipment process, such as shipping labels, hazard labels, Bills of Lading (BOL), invoices, and additional delivery receipts.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/delivery/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier for the delivery, used to locate and retrieve its associated documents or order id ."
              },
              {
                "name": "withBase64",
                "value": "",
                "type": "query",
                "description": "Indicates whether the documents should be returned as base64-encoded strings."
              },
              {
                "name": "containerId",
                "value": "",
                "type": "query",
                "description": "Optional shipper container ID to filter documents for a specific container within the delivery."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "X-ONERAIL-API-KEY-AND-APP-ID",
              "value": "{{X-ONERAIL-API-KEY-AND-APP-ID}}",
              "placement": "header"
            }
          },
          "docs": "Fetches all documents linked to a given delivery or order ID. These documents may include mandatory shipment documentation, regulatory compliance forms, hazardous materials labels (if applicable), and other related paperwork essential for tracking and verification purposes. This endpoint supports authentication and requires a valid `deliveryId` or `orderId` parameter to identify the delivery in question."
        }
      ]
    }
  ],
  "bundled": true
}