Skip to main content

Create a draft purchase request from an uploaded quote or shopping basket

POST 

/purchase-requests/from-quote

Accepts a quote document and creates a draft purchase request. A PDF or an image (PNG, JPEG, TIFF, WebP) is read alike, so a screenshot of a webshop basket goes through this endpoint too, under a from_basket purchase flow. The LLM extraction runs asynchronously on a River worker; the response includes the PR code and an extraction_status of "extracting". The dashboard subscribes to purchase_request.updated WebSocket events to learn when extraction completes (or fails).

Request​

Responses​

Draft created; quote extraction in progress