# Document Download (PDF)

Request Finance allows you to download PDFs of your invoices via API, just as you can download them via the interface.

### Request a PDF <a href="#creating-an-off-chain-payroll-payment" id="creating-an-off-chain-payroll-payment"></a>

<mark style="color:green;">`GET`</mark> `https://api.request.finance/invoices/[id]/pdf/[type]`

{% hint style="info" %}
This endpoint does not support bulk downloads. Retrieve each invoice PDF individually, or loop through  IDs to automate the process.
{% endhint %}

#### Path Parameters

| Name                                   | Type   | Description                                                                                                                                                                                                             |
| -------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| id<mark style="color:red;">\*</mark>   | String | ID of the request or invoice                                                                                                                                                                                            |
| type<mark style="color:red;">\*</mark> | String | <p>Either <code>default</code> or <code>receipt</code></p><ul><li><code>default</code>: the invoice as a PDF</li><li><code>receipt</code>: the invoice receipt, only available for <code>paid</code> invoices</li></ul> |


---

# 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.request.finance/document-download-pdf.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.
