Order Status

Check payment and order confirmation status. Call this endpoint after create-order to verify that payment was successful before showing a confirmation screen.

Get Order Status

GET/ret11/orders/{orderId}
Auth Required

Include a Bearer token. See Authentication.

Parameters

ParameterInTypeRequiredDescription
orderIdpathstringrequiredFrom create-order response
userIdquerystringrequiredYour own platform's user ID for the logged-in user
GET /ret11/orders/019d1476113e75598fa4d0389075cef0?userId=8f3a1c2e-9b4a-4e7c-b6d3-9a8f1e2d3c45

Response

FieldTypeDescription
paymentOrderStatusstringPayment status: "SUCCESS" | "PENDING" | "FAILED" | "INITIATED"
orderStatestringCurrent order state (e.g., "Accepted", "Created")
orderIdstringOrder identifier
paymentOrderIdstringPayment gateway reference ID
{
  "data": {
    "paymentOrderStatus": "SUCCESS",
    "orderState": "Accepted",
    "orderId": "019bb2ca-a956-71a8-83c1-397bc5a092f9",
    "paymentOrderId": "HDFOOD0000000005"
  }
}
Polling Strategy

Poll this endpoint after redirecting from the payment gateway. Once paymentOrderStatus is "SUCCESS", the order is confirmed. Use orderId for all subsequent tracking and management operations.