Skip to main content

Preview Refurbish Cost

POST 

/api/repairs/:repair/lines/:line/refurbish-preview

Previews what refurbishing the unit into stock would cost, without changing anything: the unit's original cost, the parts, labour and vendor costs (when the tenant capitalizes refurbish costs), the per-unit cost and a check against the target SKU's average selling price (net realisable value).

Required scope: repairs:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Accepts the same body as Resolve Repair Line; only these fields matter: outcome (required, send refurbished_to_stock), target_kind (same, blemished, designated), target_product_id, blemished_sku.

Response fields: costing (capitalize or expense), target_product_id, quantity, unit_cost, parts_cost, labour_cost, vendor_cost, salvage_credit, total_cost, per_unit_cost, net_realisable_value (number|null when the SKU has no recent sales), excess_over_nrv, nrv_warning (boolean), message (string|null).

Authentication: Bearer token with the repairs:read scope.

Request​

Responses​

OK

Response Headers
    Content-Type