Adds lines to an existing sales order (the app's item picker on the Details page).
Requires ManageSalesOrders and an Idempotency-Key header. Body: { "lines": [ { "itemId": 5, "quantity": 2, "unitPrice": 125.00 } ] }. Every line is checked as on create (a non-deleted catalog item, quantity 1–1,000,000, price and cost 0–1,000,000,000) before anything is written; then the lines are added exactly as in the app: a line for an item already on the order and not in a live transfer is merged into it (quantities add up, a non-zero price or cost replaces the old one), totals and draft invoices are recomputed and the history records "Added n item(s) (via API key '…')". Adding lines reserves no stock; /fulfill (or /transfers) covers them.
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/sales-orders/{id}/lines
- Auth: HTTP bearer
Path parameters
Sales-order id. Example: 318.
Request body
Response
Added; body is the order with its lines.
Changes
No recorded changes to this operation across all 1 revision of this API.