Docs
Capture Order Document
POST /Orders/{orderId}/documents
POST
/Orders/{orderId}/documentsRecords a vendor quote or invoice on the order and returns its id. Set the pricing level (Line, Group or Document; the subtotal is used only at Document), the vendor collaborator record (required), and optionally the uploaded file, received date and adjustments. The document starts with no lines; add them with Orders_AddOrderDocumentLine. It is tied to the latest sent revision, and a captured quote counts as the Quoted step when the order's status is derived. File ids come from Drives_AddFile.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| type | string | Optional | |
| pricingLevel | string | Optional | |
| sourceCollaboratorRecordId | uuid | Optional | |
| subtotal | number | Optional | |
| fileId | uuid | Optional | |
| receivedDate | date-time | Optional | |
| adjustments | CaptureOrderDocumentRequestAdjustment[] | Optional |
CaptureOrderDocumentRequestAdjustment
| Field | Type | Description |
|---|---|---|
| type | string| null | |
| label | string| null | |
| amount | number |
Response
Type: uuid