To Cancel the subscription setup by the user
Host Details
Environment | Value |
---|---|
UAT | https://api-preprod.phonepe.com/apis/pg-sandbox |
PROD | https://api.phonepe.com/apis/pg |
API Endpoint
/subscriptions/v2/{merchantSubscriptionId}/cancel
Complete Host URL
Http Method: POST
Environment | Value |
---|---|
UAT | https://api-preprod.phonepe.com/apis/pg-sandbox/subscriptions/v2/{merchantSubscriptionId}/cancel |
PROD | https://api.phonepe.com/apis/pg/subscriptions/v2/{merchantSubscriptionId}/cancel |
Request Details
Request Headers
Header Name | Header Value |
---|---|
Content-Type | application/json |
Authorization | O-Bearer <access_token> |
Note: access_token can be generated using the Auth Token API. Refer here
Path Parameter Details
Parameter Name | Description |
---|---|
merchantSubscriptionId | Unique 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.