Atualizar um lançamento do cartão
PATCH/card-transactions/:id
Partially updates a launch — or its series with scope. Description, supplier, classification and notes change in any statement. A launch whose statement already closed keeps its amount and date (reason: statement_closed). A new date re-places the launch, unless it was moved by hand. A recurring occurrence is confirmed (status: actual) or skipped (status: not_charged) here. Requires scope finance/credit_cards with access level write.
Requisição
Respostas
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
The launch as updated.
Malformed JSON body or scope.
Missing / invalid / expired / revoked token.
Token lacks the finance/credit_cards scope or the write access level.
Card transaction not found within the tenant, or a referenced id is not in it.
X-Idempotency-Key reused with a different body.
Schema validation failure. A launch whose statement already closed keeps its amount and date (reason: statement_closed). A status on a launch that is not a recurring occurrence, or a transition it cannot make (a confirmed occurrence stays confirmed). A purchase_date more than one year after today (reason: purchase_date_too_far), a full card number in custom_metadata.
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.