Cancel a fee charge of an account
Cancels a recorded fee charge of the account and marks it with canceledAt. A charge with fee transactions reverts each of them through the /v2 revert: the paid amount goes back to the account, what stays open of the fee debts it opened is canceled, what a later credit settled of them is given back to the debtor, and the free-quota units are given back while the charge’s period is still the current one: a unit of a closed period stays counted. A charge recorded without a fee transaction, whose units only opened fee debts, cancels those debts without moving any balance and without recording a transaction, and gives the free-quota units back; what a later credit already paid of those debts goes back to the debtor by a transaction that names the execution that opened them in the reserved metadata feeDebtOriginId, booked under the routes the debts opened with, and whose revert is refused (0088); a charge that charged nothing gives its free-quota units back while its period is the current one in the timezone it was decided in, and is refused once that period closed (409, 0587), changing nothing. A second cancel answers 200 with the same canceledAt and X-Idempotency-Replayed, changing nothing. A charge of another account, ledger or organization is not found (404, 0007). A charge still being decided by the request that claimed its key, or held, is refused (409, 0585) and nothing changes. A refusal of the revert, such as an account that can no longer give the paid amount back, answers the revert’s error and leaves the charge as it was. ledgerId in the query is refused with 0235.
Parâmetros de caminho
Resposta
OK

