22 / Help & Docs · 11

API reference card

API endpoint reference: METHOD chip, path, description, parameter table, example request, and example response — all in one block.

Production answer

API reference card is a reusable Oak Flats Muffler Men UI primitive with documented states, accessibility expectations, theme behavior, and implementation evidence.

Primary CTAReview API reference card states
Generative search brief

API reference card: API endpoint reference: METHOD chip, path, description, parameter table, example request, and example response — all in one block.

Use case

Every public endpoint gets one of these. Reuse the code-block primitive for the request / response samples — same copy button, same line numbering.

POST/v1/quotes

Creates 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_atstringOverride 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"}