Change Repair Cost Bill-To
POST/api/repairs/:repair/costs/:cost/bill-to
Changes who pays for a cost line. On a posted line the journal is reversed and reposted to the new bill-to's account (a reclass) and the reason is logged on the repair.
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Fields:
bill_to(string, required) —warranty,goodwill,customer,supplier.reason(string, required, max 500).
Posted lines need the "Repairs: manage costs" permission (403 otherwise) and are refused with 422 when dated inside a locked accounting period.
Authentication: Bearer token with the repairs:write 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
Response Headers
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.