SalesOrders
Changes a line's unit price and/or unit cost (the app's inline price edit).
Requires ManageSalesOrders and an Idempotency-Key header. Body: { "unitPrice": 119.50 }, { "unitCost": 80.00 } or both. Same code path as the Details page: the line total (quantity × price, less the line's discounts), the order's subTotal / taxAmount / totalAmount and payment status are recomputed, draft invoices are updated and the history records "Updated unit price on item '…' (via API key '…')". Quantities cannot be changed (remove the line and add a new one).
patch/api/v1/sales-orders/{id}/lines/{lineId}
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/sales-orders/{id}/lines/{lineId}
- Auth: HTTP bearer
Path parameters
idinteger required
Sales-order id. Example: 318.
lineIdinteger required
Line id (lines[].id of the order). Example: 1502.
Request body
Response
Updated; body is the order with its lines.
Changes
No recorded changes to this operation across all 1 revision of this API.