Cancel a payment
Cancels a payment that has not yet captured. Accepts cancellation_reason (or reason). Honors an Idempotency-Key header.
Authentication
x-api-keystring
A scoped MvsPayApiKey, e.g. mvspay_live_…. Mint and scope keys from the dashboard (Settings → API Keys).
Path parameters
id
The payment id.
Headers
Idempotency-Key
Request
This endpoint expects an object.
cancellation_reason
reason
Alias for cancellation_reason.
Response
The cancelled payment (returned under transfer).
transfer
Hyperswitch payment_intent response. Loosely typed; extra Hyperswitch fields pass through.
Errors
401
Unauthorized Error
500
Internal Server Error
502
Bad Gateway Error