> For the complete documentation index, see [llms.txt](https://docs.meganova.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meganova.ai/api-reference/platform-api/get-credit-balance/download-invoice.md). Agents can also search and read this documentation through its [MCP server](https://docs.meganova.ai/~gitbook/mcp).

# Download Invoice

User download invoice by 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 be deleted |

## 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.
