Preview quote calculations

POST https://app.speybooks.com/api/v1/quotes/preview

Calculates line totals, VAT, and quote total without creating a quote. 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> required
min items: 1 · max items: 100
Show child parameters
quantity number required
min: 0.01
unitPrice integer required
vatRate number required
min: 0 · max: 100

Response

200 Default Response
Show response fields
lines array<object>
Show child attributes
net integer
total integer
vat integer
subtotal integer
total integer
vatTotal integer