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.
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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.