BuchhaltungsButler icon

BuchhaltungsButler

Interagiere mit der BuchhaltungsButler API

Belege → Beleg per ID Abrufen

AI-generated

Summary

Fetch a receipt by customer ID, optionally including file content as binary data.

Inputs

  • receiptIdByCustomer (required) — The id_by_customer of the receipt to retrieve (e.g., 12345). Passed as a number; the ID is sent in the URL path, not the request body.
  • receiptByIdOptions — Optional configuration for additional receipt data retrieval.

Output shape

Receipt object with file_content removed from the JSON payload. If receiptByIdOptions.getFile is true and file_content is present in the API response, the file is decoded from base64 to a binary buffer, its MIME type and file extension are determined, and the binary data is provided alongside the receipt object.

The receipt ID is included in the URL path. The API response is unwrapped from its common wrapper format (e.g., { success, message, rows, data }) and, if returned as an array, converted to a uniform single-object format before processing.

Links

Discussion