User Subscription Status
get https://api-preprod.phonepe.com/apis/pg-sandbox/v3/recurring/subscription/status/{merchantId}/{merchantSubscriptionId}

anchor image
Copied !
Header NameHeader Value
Content-Typeapplication/json
X-VERIFYSHA256(“/v3/recurring/subscription/status/{merchantId}/{merchantSubscriptionId}” + saltKey) + “###” + saltIndex
anchor image
Copied !
Parameter NameTypeDescriptionMandatory
merchantIdSTRINGUnique Merchant ID assigned to the merchant by PhonePeYes
merchantSubscriptionIdSTRINGmerchantSubscriptionId for which status is to be fetchedYes
Sample Response - CREATED
{ "success": true, "code": "SUCCESS", "message": "Your request has been successfully completed. [message = Your subscription request has been successfully created.]", "data": { "subscriptionId": "OMS2105131257131014108471", "state": "CREATED", "validUpto": 1620891733101, "isSupportedApp": true, "isSupportedUser": true } }
anchor image
Copied !
Sample Response - PAUSED
{ "success": true, "code": "SUCCESS", "message": "Your request has been successfully completed.", "data": { "subscriptionId": "OMS2006110139450123456789", "merchantSubscriptionId": "MSUB123456789012345", "state": "PAUSED", "stateStartDate": 1653371461055, "stateEndDate": 1653371571095 } }
anchor image
Copied !
Parameter NameTypeDescription
subscriptionIdSTRINGPhonePe subscription identifier
stateSTRING● CREATED
● ACTIVE
● SUSPENDED
● REVOKED
● CANCELLED
● PAUSED
● EXPIRED
● FAILED
● CANCEL_IN_PROGRESS
stateStartDateDATETIMEEpoch time from which given state is valid
stateEndDateDATETIMEEpoch time until which given state is valid
validUptoDATETIMEEpoch time until which auth must be completed
{“method”:”get”,”url”:”/v3/recurring/subscription/status/{merchantId}/{merchantSubscriptionId}”,”auth”:”required”,”results”:{“codes”:[{“name”:”CREATED State”,”code”:”{\n \”success\”: true,\n \”code\”: \”SUCCESS\”,\n \”message\”: \”Your request has been successfully completed. [message = Your subscription request has been successfully created.]\”,\n \”data\”: {\n \”subscriptionId\”: \”OMS2105131257131014108471\”,\n \”state\”: \”CREATED\”,\n \”validUpto\”: 1620891733101,\n \”isSupportedApp\”: true,\n \”isSupportedUser\”: true\n }\n}”,”language”:”json”,”status”:200},{“name”:””,”code”:”{\n \”success\”: false,\n \”code\”: \”SUBSCRIPTION_NOT_FOUND\”,\n \”message\”: \”No Subscription found with the given details.\”,\n \”data\”: {}\n}”,”language”:”json”,”status”:400},{“code”:”{\n \”success\”: true,\n \”code\”: \”SUCCESS\”,\n \”message\”: \”Your request has been successfully completed.\”,\n \”data\”: {\n\t\t\”subscriptionId\”: \”OMS2006110139450123456789\”,\n\t\t\”merchantSubscriptionId\”: \”MSUB123456789012345\”,\n\t\t\”state\”: \”PAUSED\”,\n\t\t\”stateStartDate\”: 1653371461055\n\t\t\”stateEndDate\”: 1653371571095\n\t}\n}\n”,”language”:”json”,”status”:200,”name”:”PAUSED State”}]},”params”:[{“name”:”merchantId”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”Unique Merchant ID assigned to the merchant by PhonePe”,”required”:false,”in”:”path”,”ref”:””,”_id”:”60ade31579d7c1005b56d00b”},{“name”:”merchantSubscriptionId”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”Merchant Subscription Id for which status is to be fetched”,”required”:false,”in”:”path”,”ref”:””,”_id”:”60ade31579d7c1005b56d00a”},{“name”:”Content-Type”,”type”:”string”,”enumValues”:””,”default”:”application/json”,”desc”:””,”required”:true,”in”:”header”,”ref”:””,”_id”:”60ade31579d7c1005b56d009″},{“name”:”X-VERIFY”,”type”:”string”,”enumValues”:””,”default”:””,”desc”:”SHA256(\”/v3/recurring/subscription/status/{merchantId}/{merchantSubscriptionId}\” + saltKey) + \”###\” + saltIndex”,”required”:true,”in”:”header”,”ref”:””,”_id”:”60ade31579d7c1005b56d008″}],”examples”:{“codes”:[]},”apiSetting”:”63bb01b11abcf7046d98754c”}
https://api-preprod.phonepe.com/apis/pg-sandbox

HEADERS
merchantId string
Unique Merchant ID assigned to the merchant by PhonePe
merchantSubscriptionId string
Merchant Subscription Id for which status is to be fetched
Content-Type string required
X-VERIFY string required
SHA256("/v3/recurring/subscription/status/{merchantId}/{merchantSubscriptionId}" + saltKey) + "###" + saltIndex

RESPONSES
Code 200
200
Code 400
400