---
updatedAt: 2026-10-10T07:21:43.000Z
agentTools:
  projectIndex: https://docs.cargoboard.com/llms.txt
---

# Get invoice PDF

Returns an invoice as a PDF.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cargoboard API",
    "description": "Get binding freight prices, book shipments, print labels, track orders and retrieve invoices.\n\n**Authentication:** send your API key in the `X-API-KEY` header. Sandbox and production use different keys. Request a key from Patrick at [api@cargoboard.com](mailto:api@cargoboard.com) — he replies quickly.\n\nGuides and examples: [docs.cargoboard.com](https://docs.cargoboard.com)",
    "version": "1.0.5",
    "contact": {
      "name": "Cargoboard API team",
      "url": "https://cargoboard.com/",
      "email": "api@cargoboard.com"
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.cargoboard.com",
      "description": "Sandbox (test) — no real transports"
    },
    {
      "url": "https://api.cargoboard.com",
      "description": "Production — real, billable orders"
    }
  ],
  "paths": {
    "/v1/invoices/{id}/pdf": {
      "get": {
        "operationId": "prints-invoice-pdf-document",
        "summary": "Get invoice PDF",
        "description": "Returns an invoice as a PDF.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Invoice ID (`id` from [List invoices](https://docs.cargoboard.com/reference/get-invoices))."
          }
        ],
        "responses": {
          "200": {
            "description": "Invoice as PDF.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Missing or invalid `X-API-KEY`, or no access to this resource."
          },
          "404": {
            "description": "Invoice not found."
          },
          "409": {
            "description": "The invoice PDF is not available yet or could not be delivered."
          }
        },
        "security": [
          {
            "X-API-KEY": []
          }
        ],
        "tags": [
          "Invoices"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "X-API-KEY": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY",
        "description": "Your Cargoboard API key. Sandbox and production use different keys."
      }
    }
  },
  "tags": [
    {
      "name": "Invoices",
      "description": "List your invoices and download them as PDF."
    }
  ],
  "externalDocs": {
    "description": "Documentation for customers.",
    "url": "https://docs.cargoboard.com"
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```