Reabrir un resumen
POST/card-statements/:id/reopen
Takes a closed, reviewed, paid or partially_paid statement back to open and records who reopened it (reopened_at, reopened_by_email). Its payable and its payment stay; the balance a partial payment carried over is removed (the next closing carries it again) and the launches go back from reconciled to actual. Refused while that balance sits in a statement that already closed. The next statement goes back to future, so the card keeps one open statement, and the cutoff can be changed again. The next closing — by hand or by the daily job the day after the cutoff — recalculates the total. Records a reopened 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.
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.
Card statement not found within the tenant.
X-Idempotency-Key reused with a different body.
The statement is not closed, reviewed, paid nor partially_paid (reason: statement_not_reopenable), or the balance it carried over 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.