Subscription Cancel

To Cancel the subscription setup by the user

Host Details

EnvironmentValue
UAThttps://api-preprod.phonepe.com/apis/pg-sandbox
PRODhttps://api.phonepe.com/apis/pg

API Endpoint

/subscriptions/v2/{merchantSubscriptionId}/cancel

Complete Host URL

Http Method: POST

EnvironmentValue
UAThttps://api-preprod.phonepe.com/apis/pg-sandbox/subscriptions/v2/{merchantSubscriptionId}/cancel
PRODhttps://api.phonepe.com/apis/pg/subscriptions/v2/{merchantSubscriptionId}/cancel

Request Details

Request Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <access_token>

Note: access_token can be generated using the Auth Token API. Refer here

Path Parameter Details

Parameter NameDescription
merchantSubscriptionIdUnique merchant subscription Id passed
by the merchant while creating the
subscription.

Response

204

Merchants can check the status of the Subscription using Subscription Status API.