Docs
Split Line Cost
POST /Orders/{orderId}/lines/split-cost
POST
/Orders/{orderId}/lines/split-costSplits 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
| Field | Type | Required | Description |
|---|---|---|---|
| orderId | uuid | Required |
Response
Type: SplitOrderLineCostResponse[]
SplitOrderLineCostResponse
| Field | Type | Description |
|---|---|---|
| lineItemId | uuid | |
| allocatedCost | number| null |