---
title: "Download the invoice PDF"
method: GET
path: "/gateway/invoices/{invoiceId}/pdf"
tags: ["Invoices"]
---

# Download the invoice PDF

`GET /gateway/invoices/{invoiceId}/pdf`

## Request

- Base URL: `https://api.agentaos.ai/api/v1`
- URL: `https://api.agentaos.ai/api/v1/gateway/invoices/{invoiceId}/pdf`
- Auth: API key in header `x-api-key`

Response is `application/pdf` (binary), not JSON. Includes seller and buyer details, the amount (plus fiat equivalent and exchange rate for stablecoin payments), and a tax breakdown.

## Path parameters

- `invoiceId` string, uuid, required

## Response `200`

The invoice PDF.

## Other responses

- `401`: Missing or invalid `x-api-key`.
- `403`: The key is valid but the resource belongs to a different organization.
- `404`: Resource not found (or not visible to your key; the two are not distinguished).

---

[API](https://skmtc.dev/agentaos/apis/agentaos-gateway-api.md) · [All operations](https://skmtc.dev/agentaos/apis/agentaos-gateway-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentaos/apis/agentaos-gateway-api/revisions/3a8ad3c6b965?raw)
