invoices

v1.1.1
work.duebuddy/invoices Checked 1 day ago Published 15 days ago

Read 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…

ParameterTypeDescription
file_url *string
api_keystring
countrystring

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…

ParameterTypeDescription
job_id *string
api_keystring

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.

ParameterTypeDescription
api_keystring