Cancel a Payment

Cancels a payment by its ID.

Path parameters

paymentIdstringRequiredformat: "uuid"

Identifier of the payment to be canceled. (In the transaction-based model, this is the transactionId.)

Request

This endpoint expects an object.
reasonstringOptional
Reason for cancellation.

Response

Payment canceled successfully.
statusstring
Current transaction status.
transactionIdstring
Unique identifier for the transaction.
messagestring

Human-readable status message.

authStateobject or null

Indicates additional steps required to complete a transaction. The shape varies by payment method and processor. Use type to determine which fields are present.

processorNamestring or null

Name of the payment processor (if assigned).

processorReferencestring or null

Processor reference (if available).

paymentAttributesmap from strings to strings or null
Attributes associated with the payment.

Errors