Receipts: get receipt by id_by_customer
receipts_get_by_idFetch a single receipt for a customer account using its per-customer ID. Get a specific receipt's data without altering accounting records.
Instructions
🟢 READ-ONLY: Fetches data. Makes no changes to the accounting records.
get receipt by id_by_customer
Get a single receipt for a specified customer account by id_by_customer. You can get the "id_by_customer" by using the "/receipts/get method" first. The response includes an array of receipt data.
Use to fetch a single receipt whose id you already have.
To search or page through receipts, use receipts_list.
id_by_customer is the per-customer counter shown in the BuchhaltungsButler UI, not a global database id.
Endpoint: POST /receipts/get/id_by_customer
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| get_file | No | If true, the file will be included as a base64 encoded string (e_invoice_type = 0 -> standard pdf file, e_invoice_type = 1 -> ZUGFeRD pdf file, e_invoice_type = 2 -> xRechnung xml file). If specified, the field will be validated. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | An array of receipt data | |
| message | No | blank | |
| success | Yes | Success boolean |