Skip to main content

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.

Required scope: repairs:write

Grant 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​

OK

Response Headers
    Content-Type