Update or settle a receivable
PATCH/receivables/:id
Partial update. Only fields present in the body are written; unknown / response-only fields are silently dropped. Requires scope finance.receivables.write. Settle (receive): send status:"received" with payment_date and financial_account_id (or a previously-set account) — an auto credit transaction is generated; the receive-time interest_amount / discount_amount / ticket_amount are persisted. 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 receivable (full detail shape).
Malformed JSON, or *_id and *_name sent together for the same FK.
Missing / invalid / expired / revoked token.
Token lacks the finance.receivables.write scope.
Receivable not found within the tenant.
Schema validation failure, or domain violation: receiving without an account, FK out of scope, or rateio Σ ≠ amount.
Unhandled server error.