cURL
curl --request POST \ --url https://api.example.com/payments/{paymentId}/cancel \ --header 'Content-Type: application/json' \ --data ' { "reason": "fraudulent" } '
{}
the id of the payment
the reason of the cancellation
fraudulent
requested_by_customer
abandoned
duplicate
The response is of type object.
object
Was this page helpful?