Docs

Create Extraction

POST /Orders/{orderId}/extractions

POST/Orders/{orderId}/extractions

Stages an uploaded quote, invoice or receipt against the order, queues a background job that reads it, and returns the extraction id. The state starts Pending and moves on as reading and matching finish; poll Orders_GetExtraction. Optionally set documentType (Quote or Invoice; Receipt is refused on an order) and the vendor (matchedCollaboratorRecordId) now so matching can use what is remembered for that vendor. Needs Order.Edit on the order. Upload the file first with Drives_AddFile; fileId is that file's id.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
fileIduuidOptional
documentTypestringOptional
matchedCollaboratorRecordIduuidOptional

Response

Type: uuid