# Invoices

### Abrufen von Rechnungen auf Basis der Bestell-ID im PDF-Format

```javascript
GET /api/invoice/{order_id}
```

**Properties**

***

order\_id *<mark style="color:purple;">integer</mark>*

Die Shopify Bestell-ID für die die Rechnung generiert wurde.&#x20;

***

**Result**

Base64 codierter String der die Rechnung im PDF-Format enthält.

### Abrufen von Rechnungen im PDF-Format

```javascript
GET /api/invoice/{id}/download
```

**Properties**

***

id *<mark style="color:purple;">integer</mark>*

Die von Packstack Connect erzeugte Rechnungs-ID für die die Rechnung generiert wurde.&#x20;

***

**Result**

PDF-Datei im Binärformat


---

# 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://wiki.packstack.de/api-schnittstelle/invoices.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.
