Skip to main content

Record House Account Payment

POST 

/api/customers/:customer/house-account/pay

Record a payment against the customer's house account, reducing the balance owed. Writes a payment ledger entry and returns it with the account's new balance.

Required scope: customers:write

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

Authentication: Requires Bearer token (PAT). Permission: customers.update.

Request body fields:

  • amount (numeric, required, > 0) — the payment amount. Error message when not > 0: "The payment amount must be greater than zero."
  • notes (string, nullable, max 2000) — internal note.
  • reference (string, nullable, max 255) — external reference (e.g. a cheque or payment reference).

Returns 201 with { data: <ledger entry>, balance: <float>, message: "Payment recorded." }.

Request

Responses

Created

Response Headers
    Content-Type