Docs

Capture Order Document

POST /Orders/{orderId}/documents

POST/Orders/{orderId}/documents

Records 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

FieldTypeRequiredDescription
orderIduuidRequired

Request Body

FieldTypeRequiredDescription
typestringOptional
pricingLevelstringOptional
sourceCollaboratorRecordIduuidOptional
subtotalnumberOptional
fileIduuidOptional
receivedDatedate-timeOptional
adjustmentsCaptureOrderDocumentRequestAdjustment[]Optional

CaptureOrderDocumentRequestAdjustment

FieldTypeDescription
typestring| null
labelstring| null
amountnumber

Response

Type: uuid