Docs
Create Extraction
POST /Orders/{orderId}/extractions
POST
/Orders/{orderId}/extractionsStages 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
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| fileId | uuid | Optional | |
| documentType | string | Optional | |
| matchedCollaboratorRecordId | uuid | Optional |
Response
Type: uuid