Cancel a Payment
Cancels a payment by its ID.
Path parameters
paymentId
Identifier of the payment to be canceled. (In the transaction-based model, this is the transactionId.)
Request
This endpoint expects an object.
reason
Reason for cancellation.
Response
Payment canceled successfully.
status
Current transaction status.
transactionId
Unique identifier for the transaction.
message
Human-readable status message.
authState
Indicates additional steps required to complete a transaction. The shape varies by payment method and processor.
Use type to determine which fields are present.
processorName
Name of the payment processor (if assigned).
processorReference
Processor reference (if available).
paymentAttributes
Attributes associated with the payment.