Docs

Split Line Cost

POST /Orders/{orderId}/lines/split-cost

POST/Orders/{orderId}/lines/split-cost

Splits the vendor document's total equally across the order's lines that no document line is matched to: the invoices' total, else the chosen quote's, less the matched lines, in cents with the remainder on the last line. Returns each line it set. Refused with no invoice and no chosen quote. Requires resource inventory edit.

Path Parameters

FieldTypeRequiredDescription
orderIduuidRequired

Response

Type: SplitOrderLineCostResponse[]

SplitOrderLineCostResponse

FieldTypeDescription
lineItemIduuid
allocatedCostnumber| null