Skip to main content
POST
Cancel a purchase

Authorizations

Authorization
string
header
required

Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer token.

Path Parameters

purchaseRef
string
required

Purchase reference or ID

Example:

"pur_1A2B3C4D"

Body

application/json
reason
string

Response

Purchase cancelled successfully

purchase
object
success
boolean