Skip to main content
POST
/
merchant
/
api
/
v1
/
payment-intents
/
{intentID}
/
cancel
Cancel payment intent
curl --request POST \
  --url http://api-sandbox.fexpayments.com/merchant/api/v1/payment-intents/{intentID}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Payment intent cancelled successfully"
}

Authorizations

Authorization
string
header
required

Keycloak JWT. Roles: admin (platform admin — can register merchants, act on behalf of any merchant), merchant (dashboard user — scoped to their own merchant_id via user attribute mapper), POS terminals use client credentials flow with merchant_id injected via protocol mapper.

Path Parameters

intentID
string<uuid>
required

Payment intent ID

Response

Payment intent cancelled successfully

success
boolean
Example:

true

message
string
Example:

"Payment intent cancelled successfully"