# Download Invoice

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nebulablock.com/overview/platform_api/get_credit_balance/download_invoice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
