This section provides a comprehensive guide to managing invoices through the public API: creating and sending invoices with exact line details, reading them back with their VAT breakdown and payment state, adding payment transactions with the system's numeric payment-method codes, and cancelling invoices.
/set_invoicepid; the exact prices you send are the prices invoiced. Optionally pass send_methods (email, sms, einvoice — multiple allowed) and the invoice is delivered through every channel in the same call, with per-channel sent/error confirmations in the response.
/get_invoiceinvoice_id or payment reference: header, status and flags, lines, VAT rows, totals, transactions, sent log, customer snapshot and the payment link.invoice_id - The numeric invoice id (or reference).
/set_invoice_transaction0 bank transfer, 1 cash, 2 card, 3 online banking, 4 e-invoice, 5 paypal, 6 google wallet, 7 stripe, 20 cash on pickup, 21 cash on delivery, 25 factoring, 30 other, 100 customer balance credit transfer, 110 refund from invoice total) — the full map is documented on the endpoint page. Totals and status recompute automatically.
/cancel_invoiceinvoice_id or reference. Returns an error when the invoice already has payment transactions (the same guard the admin UI applies).
For further assistance or API integration support, please refer to our API Documentation or contact our technical support team.