admin-supplier-quotes

Accept Supplier Quote

Accept an inbound-agent-extracted SupplierQuote (PRO-113).

Clears every line_items[*].needs_review flag, flips quote.needs_human_review = False (HitL gate cleared), and stamps reviewed_at + reviewed_by. Idempotent — accepting an already-accepted quote re-stamps the reviewer fields but leaves the structured data untouched.

Re-mapping rows to different project parts is handled by the existing PATCH endpoint — admin corrects rows in-place THEN clicks Accept.

post/api/v1/admin/supplier-quotes/{quote_id}/accept

Path parameters

quote_idstring uuid required

Request body

AcceptSupplierQuoteInput required

Body for POST /admin/supplier-quotes/{quote_id}/accept (PRO-113).

Body is currently empty — accept doesn't need any fields beyond the URL path id and the authenticated admin. Wrapped as a model so future additions (e.g. notes for the audit row) don't break the wire shape.

Response

Successful Response

idstring uuid required
project_idstring uuid required
supplier_contact_idstring uuid required
supplier_contact_namestring required
supplier_contact_emailstring required
gmail_thread_idstring nullable
sourcestring
total_amount_centsinteger nullable required
currencystring required
lead_time_daysinteger nullable required
valid_untilstring date-time nullable required
line_itemsobject[] required
notesstring nullable required
source_email_bodystring nullable
attachment_r2_keysstring[]
attachment_kindsstring[]
document_kindstring nullable
extraction_confidencenumber nullable
needs_human_reviewboolean required
reviewed_atstring date-time nullable required
reviewed_bystring uuid nullable required
accepted_atstring date-time nullable
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this endpoint across all 1 revision of this API.