Skip to main content

Accept Quote

POST 

/api/portal/quotes/:quote/accept

Accept an issued quote with an e-signature. The signer name and signature are required; selected_line_ids optionally picks which optional / good-better-best lines to take (standard lines are always included); every selected line is ordered. Acceptance price-locks the accepted version and converts it into a draft order. IP and user agent are captured server-side. Fails if the quote is not in an acceptable state or has expired.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

A buyer whose portal role is Viewer cannot accept (it would create an order): 422 with reason: role_cannot_order.

Allowed only from sent or viewed; an already accepted or ordered quote returns 422 (reason not_acceptable). Acceptance and the order are created together: if the order cannot be created, the quote is left unaccepted. The merchant's staff are alerted.

A quote the merchant has archived (withdrawn) can no longer be accepted: 422 with reason: quote_closed. The acceptance is recorded as a customer portal acceptance, with the signed-in buyer's email as the signer's email.

Request​

Responses​

OK

Response Headers
    Content-Type