invoices
v1.1.1Read supplier invoices (PDF, photo, XML) and return fields plus a DATEV/1C/CSV file.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_invoice
Reads ONE incoming supplier invoice and returns a job id for polling. Use when: the user has a single invoice (PDF, photo, scan, XML e-invoice or QR bill) and wants supplier, invoice number, dates, amounts, VAT or line items extracted. Do not use when: the user asks to ISSUE an invoice, to send a payment, or to post entries into DATEV/1C — this tool only reads documents. For several documents call it once per document; the returned job ids can be polled independently. Side effects and cost: the document is downloaded and queued for parsing. XML and QR invoices are parsed by code and cost n…
| Parameter | Type | Description |
|---|---|---|
file_url * | string | |
api_key | string | |
country | string |
get_result
Returns the result of a parse job started by parse_invoice: structured fields (supplier, invoice number, dates, net/VAT/gross, currency, line items) plus export links for accounting systems. Use when: you already have a job_id and want its status or its extracted data. Do not use when: you have no job_id yet — start with parse_invoice. Do not poll in a tight loop; one call every few seconds is enough, and jobs for text PDFs or XML usually finish in under a minute. Side effects and cost: none. This call is read-only and idempotent, reads nothing from the prepaid balance, and can be repeated…
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
api_key | string |
get_balance
Shows how many scanned pages are left on the prepaid balance for this API key. Use when: before a batch of scans or photos, or when parse_invoice answered insufficient_balance and you need to confirm the remaining amount. Do not use when: the user asks about invoice content — that is get_result. Side effects and cost: none; read-only and idempotent. Parameters: api_key is the DueBuddy key; optional if DUEBUDDY_API_KEY is set. Returns: {ok, balance} with the remaining pages and the current plan.
| Parameter | Type | Description |
|---|---|---|
api_key | string |
topup_link
Returns the page where the prepaid balance can be topped up, and the minimum amount. Use when: the balance is empty or too low for the documents the user wants to process. Do not use when: the balance is sufficient — check it with get_balance first. Side effects and cost: none. The call only builds a link; the payment itself happens in the browser and is handled by the payment provider, never by this server. Parameters: amount_eur is informational only and does not create an order. Returns: {ok, url, minimum_eur}.
| Parameter | Type | Description |
|---|---|---|
amount_eur | number |