Payments
Release an Authorization Hold
Void a payment that is still in the authorized state. Funds are released immediately. Cannot cancel a captured payment.
POST
POST /payment/{id}/cancel voids an authorization before it is captured, releasing the hold on the cardholder’s funds immediately. Use this when an order is cancelled or cannot be fulfilled after the authorization was placed. If the payment has already been captured and settled, use Refund instead — you cannot cancel a captured payment.
Identifying the payment
{id} is the Therius payment id returned by POST /payment/authorization and POST /payment/purchase. orderCode and paymentCode are your own reference fields and are not accepted here. An unknown or non-owned id returns 404.
Example
Cancel an authorization
When you cancel an authorization, the cardholder’s available balance is restored immediately on Therius’s side. The reflected timing on the cardholder’s bank statement varies by issuer — it’s typically instant to a few hours, but can take up to 3–5 business days for some issuers.
Authorizations
Your secret API key: Bearer prv_production_xxx (production) or Bearer prv_sandbox_xxx (sandbox).
Headers
A UUID you generate per operation. Required in production. Retrying with the same key returns the original response.
Path Parameters
The Therius payment id returned by POST /payment/authorization or POST /payment/purchase.
Body
application/json
Response
200 - application/json
Cancellation result

