Pagar un resumen
POST/card-statements/:id/payments
Settles the payable of a closed or reviewed statement. The payment is a transfer from the paying account to the card's account, never an expense: the purchases already count through the card's launches. Paying the whole payable makes the statement paid; less than it makes it partially_paid, lowers the payable to the amount paid and carries the balance to the open statement as a carryover launch. Either way the launches become reconciled. Settling the payable through PATCH /payables/{id} or the bank's confirmation gives the same result. Records a paid event. Requires scope finance/credit_cards with access level write.
Solicitud​
Respuestas​
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
The statement as it is now.
Malformed JSON body, or X-Idempotency-Key empty or longer than 255 characters (reason: invalid_idempotency_key).
Missing / invalid / expired / revoked token.
Token lacks the finance/credit_cards scope or the write access level, or the person lacks the card-statements.pay permission (INSUFFICIENT_PERMISSION, enforced even in report mode: paying moves money).
Card statement not found within the tenant.
X-Idempotency-Key reused with a different body.
Schema validation failure; the statement is not closed nor reviewed (reason: statement_not_payable), owes nothing (reason: statement_nothing_to_pay) or has no payable (reason: statement_without_payable); the payable is not pending (reason: payable_not_pending) or is at the bank (reason: payable_in_bank) or still waits for approval or was rejected (reason: payable_not_approved); the amount is zero (reason: amount_not_positive) or above the payable (reason: payment_exceeds_total); the account is a card's (reason: funding_account_is_card) or of another company (reason: funding_account_other_company); an impossible payment_date (reason: invalid_date).
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.