Read a quote out of a document without creating anything
POST/purchase-requests/extract-quote
Extracts structured quote data from a document and returns it. The format is read from the bytes rather than declared: a PDF, one of the accepted image formats, or e-invoice XML. Nothing is persisted, which is what separates this from the from-quote endpoints: they create a draft and extract asynchronously, so neither can answer a caller that must show the buyer what was found before anything exists.
Request
Responses
- 200
- 400
- 401
- 403
- 413
- 429
- 500
The extracted quote
Bad request - no document, or a format that cannot be read
Unauthorized - user not authenticated
Forbidden - request denied by authorization, or blocked by the API firewall
The document exceeds the size limit
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