Redeem Cancel
Environment
| Environment | HTTP Method | API |
| Sandbox | POST | https://api-preprod.phonepe.com/apis/pg-sandbox/subscriptions/v2/redeem/cancel |
| Production | POST | https://api.phonepe.com/apis/pg/subscriptions/v2/redeem/cancel |
Request
| Header Name | Header Value | Description |
| Content-Type | application/json | |
| Authorization | O-Bearer <access_token> | Pass access_token received in Authorization call |
Request Parameters
| Parameter Name | Data Type | Description |
| merchantOrderId | String | The merchantOrderId of the debit request to be cancelled |
Sample Request
{
"merchantOrderId":"MO17223195610091279"
}Response
Sample Response
{
"orderId": "OM23195610091279"
"state": "CANCEL_IN_PROGRESS"
}Response Parameter
| Parameter Name | Data Type | Description |
| OrderID | String | An orderId generated by PhonePe. |
| state | String | Indicates the state of the request. |