Deshacer el pago de un resumen
DELETE/card-statements/:id/payments
Undoes the payment of the statement's payable: the transfer is deleted, the payable goes back to pending with the statement's total, the statement returns to reviewed (or closed) and its launches to actual, and a carryover the payment created is removed. Refused while that carryover sits in a statement that already closed. Records a payment_reverted event. Requires scope finance/credit_cards with access level delete.
Solicitud​
Respuestas​
- 200
- 401
- 403
- 404
- 422
- 429
- 500
The statement as it is now.
Missing / invalid / expired / revoked token.
Token lacks the finance/credit_cards scope or the delete access level, or the person lacks the card-statements.pay permission (INSUFFICIENT_PERMISSION, enforced even in report mode: undoing moves money).
Card statement not found within the tenant.
The statement has no payable (reason: statement_without_payable), nothing was paid (reason: statement_not_paid), or its carryover is in a closed statement (reason: carryover_statement_closed).
Rate limit exceeded for this token. Reads and writes have separate budgets, both on a 1-hour sliding window. The response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and Retry-After — wait out Retry-After rather than retrying immediately.
Unhandled server error.