Skip to main content
POST
/
v1
/
sdk
/
purchases
/
{purchaseRef}
/
cancel
Cancel a purchase
curl --request POST \
  --url https://api.example.com/v1/sdk/purchases/{purchaseRef}/cancel \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'

Path Parameters

purchaseRef
string
required

Purchase reference or ID

Example:

"pur_1A2B3C4D"

Body

application/json
reason
string

Reason for cancellation

Response

Purchase cancelled successfully