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).
repairs:writeGrant 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
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.