> For the complete documentation index, see [llms.txt](https://docs.nebulablock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nebulablock.com/api-reference/platform-api/get-credit-balance/download-invoice.md).

# Download Invoice

Download a Nebula Block invoice by its ID.

Download a specific invoice by including the invoice\_id in the URL path. The `invoice_id` can be obtained from the response of the List\_Invoices endpoint, where it is returned as the `id` field.

## HTTP Request

`GET` `{API_URL}/users/invoice-download/{invoice_id}`

## Path Parameters

| Parameters  | Requirements | Type  | Description                                                                                                                             |
| ----------- | ------------ | ----- | --------------------------------------------------------------------------------------------------------------------------------------- |
| invoice\_id | Required     | `int` | The unique identifier of the invoice to download, from [List Invoices](/api-reference/platform-api/get-credit-balance/list-invoices.md) |

## Response

The invoice document itself, returned as a file download rather than the usual JSON envelope.

## Example

#### Request

```bash
curl -X GET '{API_URL}/users/invoice-download/{invoice_id}'
-H 'Authorization: Bearer {TOKEN/KEY}'
```

#### Response

The invoice PDF file will be downloaded automatically.
