How do I add extra costs and set the service fee on an in-progress work order through the API?

Last updated: November 13, 2026

Use this when labor or other costs are only known after production has started.

Extra-cost lines

  • GET /work-orders/{id}/extra-costs lists the lines.

  • Lines are per unit produced. quantity is multiplied by the quantity produced at completion.

  • A line only reaches assembly orders created after it’s added. Add lines before you quick-complete or complete a step.

  • POST /work-orders/{id}/extra-costs adds one. It requires name, quantity and unit_price, and returns 201.

  • PUT /work-orders/{id}/extra-costs/{extraCostId} edits a line.

  • DELETE /work-orders/{id}/extra-costs/{extraCostId} removes a line.

quantity allows up to 6 decimal places. unit_price allows up to 2.

Service fee

PATCH /work-orders/{id}/service-fee with service_unit_price sets the per-unit fee. A second call replaces the first. A fee of 0 doesn’t mean no fee: at completion it falls back to the produced SKU’s manufacturing fee.``

When it works

These calls work on draft, planned and in-progress work orders. Completed and cancelled work orders return 422. They also return 422 if the cost rules feature isn’t enabled on your account. A work order that doesn’t exist returns 404.