Check Order Status


EnvironmentHTTP MethodAPI
SandboxGEThttps://api-preprod.phonepe.com/apis/pg-sandbox/subscriptions/v2/order/{merchantOrderId}/status
ProductionGEThttps://api.phonepe.com/apis/pg/subscriptions/v2/order/{merchantOrderId}/status
Request Headers
Header NameHeader Value
Content-Typeapplication/json
AuthorizationO-Bearer <merchant-auth-token>
Path Parameters
Parameter NameDescription
merchantOrderIdThe unique merchant order ID provided by the merchant when creating the subscription
Sample Response
{
    "merchantId": "TX12345",
    "merchantOrderId": "MO1774243061089",
    "orderId": "OMO2603231047412984235557BW",
    "state": "PENDING",
    "currency": "INR",
    "amount": 200,
    "expireAt": 1774243961270,
    "metaInfo": {
        "udf1": "udf1",
        "udf2": "udf2"
    },
    "paymentFlow": {
        "type": "SUBSCRIPTION_SETUP",
        "merchantSubscriptionId": "MS1774243061089",
        "authWorkflowType": "ZERO",
        "amountType": "FIXED",
        "maxAmount": 20000000,
        "frequency": "MONTHLY",
        "expireAt": 1774643045000,
        "subscriptionId": "OMS2603231047412704235838BW",
        "productType": "ENACH_MANDATE",
        "authInstrumentType": "NET_BANKING"
    },
    "paymentDetails": []
}
Response Parameter
Parameter NameData TypeDescription
merchantIdStringMerchant identifier
merchantOrderIdStringMerchant’s unique identifier for the setup order
orderIdStringPG generated internal order ID for the setup
stateStringFinal state of the setup order (e.g., COMPLETED, PENDING, FAILED)
currencyStringCurrency code (e.g., INR)
amountLongInitial setup order amount in paisa
expireAtLongOrder expiry timestamp in epoch
metaInfo.udf1StringUser Defined Field 1
metaInfo.udf2StringUser Defined Field 2
paymentFlow.typeStringType of flow (e.g., SUBSCRIPTION_SETUP)
paymentFlow.merchantSubscriptionIdStringMerchant’s unique identifier for the subscription
paymentFlow.authWorkflowTypeStringAuthentication method (e.g., ZERO)
paymentFlow.amountTypeStringType of recurring charge (e.g., VARIABLE or FIXED)
paymentFlow.maxAmountLongMaximum limit for recurring debits in paisa
paymentFlow.frequencyStringFrequency of debit (e.g., DAILY, MONTHLY)
paymentFlow.expireAtLongMandate expiry timestamp in epoch
paymentFlow.subscriptionIdStringPG internal ID for the subscription
paymentFlow.productTypeStringInstrument category (e.g., ENACH_MANDATE)
paymentFlow.authInstrumentTypeStringAuth channel used (e.g., NET_BANKING)
paymentDetailsListContains list of details of each payment attempt (empty if no direct payment attempt was required for ZERO auth)
Is this article helpful?