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
- 202
- 400
- 401
- 403
- 429
- 500
Draft created; quote extraction in progress
Bad request - validation error or invalid file
Unauthorized - user not authenticated
Forbidden - request denied by authorization, or blocked by the API firewall
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Delay in seconds a client must wait before retrying the request
Internal server error