Cancel an authorized payment

Cancels an authorized payment before capture. For an already captured payment, use Refund a payment. To let Truegate select cancellation or refund based on the payment state, use Cancel or refund a payment.

Confirm the result through the Canceled payment webhook.

Request signature

Sign only these fields, in order:

projectId → transactionId

See Signing requests for the HMAC-SHA-256 algorithm and code examples.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Cancels an authorized payment before capture. For an already captured payment, use Refund a payment. To let Truegate select cancellation or refund based on the payment state, use Cancel or refund a payment.

The HTTP 201 response normally contains status: "SUCCESS" or status: "FAILED" for the synchronous operation result. If processor cancellation data is unavailable, it instead contains status: "ERROR", an error message, and paymentProcessor.

Confirm the final result through the Canceled payment webhook.

Request signature

Sign only these fields, in order:

projectId → transactionId

See Signing requests for the HMAC-SHA-256 algorithm and code examples.

Body Params

Signed JSON request

string
required

Your project identifier.

string
required

HMAC-SHA-256 signature. Sign the fields in the order documented for this endpoint.

string
required

Identifier of the payment to cancel or refund.

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json