Preview invoice calculations
POST
https://app.speybooks.com/api/v1/invoices/previewCalculates line totals, VAT, and invoice total without creating an invoice. Use this for real-time UI previews while the user is editing line items.
All amounts are in minor units (pence). The calculation is deterministic and stateless — no data is persisted.
This endpoint is stateless and idempotent. No authentication scope is required beyond a valid API key.
Body parameters
lines array<object> requiredShow child parameters
quantity integer requiredunitPrice integer requiredvatRate integer requiredResponse
200 Default Response
Show response fields
lines array<object>Show child attributes
net integertotal integervat integersubtotal integertotal integervatTotal integer