Add parts to a job: a line item each, plus a stock movement (my stock) or a restock order (order from owner)
POST/service-records/:recordId/parts
Add parts to a job. Each part becomes a line on the job's estimate and takes stock from your location (a partner raises a restock order to the service owner instead).
Scope: record_items:write
Request
Responses
- 200
- 400
- 403
- 404
Record parts
Invalid lines (unknown part, no matching stock, not enough stock, order from owner by the owner)
Caller lacks the required permission (or, adding parts, may see the job but not change its items)
Not found, or owned by another company