Update or settle a payable
PATCH/payables/:id
Partial update. Only fields present in the body are written; unknown / response-only fields (id, created_at, transaction_id, denorm names, counts, is_reconciled) are silently dropped. Requires scope finance.payables.write. Settle: send status:"paid" with payment_date and financial_account_id (or rely on a previously-set account) — a debit payment transaction is generated automatically. The settlement amounts (interest_amount / discount_amount / ticket_amount) are persisted on the row. Set status back to pending to revert, or cancelled to cancel. draft is never accepted.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
Updated payable (full detail shape).
Malformed JSON, or *_id and *_name sent together for the same FK.
Missing / invalid / expired / revoked token.
Token lacks the finance.payables.write scope.
Payable not found within the tenant.
Schema validation failure, or domain violation: settling without an account, FK out of scope, or rateio Σ ≠ amount.
Unhandled server error.