/v1/quotesCreates a draft quote attached to a customer + vehicle. Returns the quote with computed totals and a 14-day expiry.
Parameters
NameTypeRequiredDescription
customer_idstringYesID of the customer the quote attaches to.vehicle_idstringYesID of the vehicle the quote applies to.linesQuoteLine[]YesOrdered list of part, labour, or fabrication line items.expires_atstring—Override default 14-day expiry. ISO-8601.Example request
BASH
curl -X POST https://api.mufflermen.au/v1/quotes \ -H "Authorization: Bearer $OAK_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "cust_3FK2", "vehicle_id": "veh_88AQ", "lines": [ { "sku": "MF-14816", "qty": 1 }, { "sku": "LAB-FAB", "qty": 1.5 } ] }'Example response
JSON
{ "id": "q_2415", "version": 1, "status": "draft", "total_aud_cents": 184400, "margin_pct": 0.31, "expires_at": "2026-06-11T05:00:00Z"}