Skip to main content
PATCH
/
api
/
v1
/
subscription
/
subscriptions
/
{subscriptionId}
/
cancel
Cancel a subscription
curl --request PATCH \
  --url https://payments.oaknetwork.org/api/v1/subscription/subscriptions/{subscriptionId}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "msg": "Subscription cancelled successfully",
  "data": {}
}

Authorizations

Authorization
string
header
required

Merchant authentication token. Obtained via POST /api/v1/merchant/token/grant. Pass as: Authorization: Bearer

Path Parameters

subscriptionId
string
required

Response

Subscription cancelled

msg
string
Example:

"Subscription cancelled successfully"

data
object

Pass-through response from the upstream subscription service. Shape is not contractually stable; treat as opaque acknowledgement.