Overview
Cancels a payment previously recorded through the External API. This is a full cancellation for correcting a payment sent by mistake; partial refunds are not supported by this endpoint. Only payments created through the External API can be cancelled. Internal provider payments, such as Stripe, Scellius, PayZen, SystemPay, or SumUp payments processed by GetBill, are rejected. If the payment was attached to a payment-plan installment, the installment is moved back topending.
If the cancellation reopens a completed plan, the plan is reactivated. For a grouped plan, you may call this endpoint through any debt ID in the group; GetBill replays the remaining successful installment payments in FIFO order, so balances stay correct even when payments are cancelled out of order.
external_cancellation_id is required and used for idempotency on the payment.
Authentication
Requires a valid OAuth 2.0 access token with thedebts:write scope.