Skip to main content
POST
/
payments
/
{paymentId}
/
cancel
Cancel a payment
curl --request POST \
  --url https://api.example.com/payments/{paymentId}/cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "fraudulent"
}
'
{}

Path Parameters

paymentId
string
required

the id of the payment

Body

application/json
reason
enum<string>
required

the reason of the cancellation

Available options:
fraudulent,
requested_by_customer,
abandoned,
duplicate

Response

200 - application/json

The response is of type object.