Record a collection or a refund
POST/api/payments
A refund is direction: out — a real payment the other way, not a void.
Requires sales.manage.
Naming a receivable_id settles that instalment. The money must be in
the same currency as the debt (currency_mismatch), it may not exceed
what is owed (overpays_receivable — refused, never clamped), and a
refund cannot settle a debt at all (refund_cannot_settle_debt).
Request
Responses
- 201
- 422
Recorded.
currency_mismatch, overpays_receivable, or refund_cannot_settle_debt.