---
page_source: https://docs.juspay.io/amazonpay/docs/amazon-pay-balance/order-status
page_title: Order Status
---


# Order Status



Juspay provides a server-to-server mechanism of verifying the Order Status.

For business critical events such as communicating payment status to your customers, it is recommended to use the Order status API to cross verify the transaction status received in our webhooks.

For transactions processed through the AmazonPay flow, the `payment_method` parameter value will be `AMAZONPAY`, and the `txn_flow_type` parameter value will be either "`DIRECT_DEBIT`" or "`REDIRECT_DEBIT`".

## Sample Code Snippets:
### Order Status Response:

#### Success Code Snippet:

```success
{
  "payment_method": "AMAZONPAY",
  "customer_phone": null,
  "payment_gateway_response": {
    "auth_ref_num": null,
    "network_error_message": null,
    "txn_id": "123-1",
    "rrn": "NA",
    "auth_id_code": "NA",
    "resp_message": "Completed",
    "epg_txn_id": "asdfes6615835",
    "gateway_merchant_id": null,
    "resp_code": "Completed",
    "created": "2024-01-01T10:39:10Z",
    "eci": null,
    "network_error_code": null,
    "arn": null
  },
  "udf8": "",
  "txn_id": "123-1",
  "order_id": "123",
  "gateway_reference_id": null,
  "maximum_eligible_refund_amount": 395,
  "udf9": "",
  "txn_detail": {
    "txn_id": "123-1",
    "order_id": "123",
    "error_code": null,
    "txn_flow_type": "DIRECT_DEBIT",
    "status": "CHARGED",
    "express_checkout": false,
    "gateway_id": 38,
    "error_message": "",
    "offer_deduction_amount": null,
    "tax_amount": null,
    "currency": "INR",
    "txn_amount_breakup": [
      {
        "amount": 395,
        "method": "ADD",
        "sno": "FILTERED",
        "name": "BASE"
      }
    ],
    "txn_amount": 395,
    "created": "2024-01-01T10:39:07Z",
    "gateway": "AMAZONPAY",
    "surcharge_amount": null,
    "last_updated": "2024-01-01T11:57:46Z",
    "txn_uuid": "moTsfewazu3jHxDfWZU",
    "net_amount": 395,
    "redirect": false
  },
  "customer_id": "1234",
  "amount": 395,
  "udf4": "",
  "status": "CHARGED",
  "udf5": "",
  "udf6": "",
  "status_id": 21,
  "offers": [],
  "udf7": "",
  "resp_message": null,
  "product_id": "",
  "refunded": false,
  "udf10": "",
  "gateway_id": 38,
  "udf1": "",
  "udf2": "",
  "udf3": "",
  "date_created": "2024-01-01T10:39:07Z",
  "id": "ordeh_2ab7ad0d64181fc8086d",
  "merchant_id": "juspay",
  "return_url": "",
  "effective_amount": 395,
  "captured_amount": 395,
  "currency": "INR",
  "auth_type": "",
  "customer_email": null,
  "resp_code": null,
  "payment_method_type": "WALLET",
  "wallet": {
    "txn_flow_type": "DIRECT_DEBIT"
  },
  "last_updated": "2024-01-01T11:57:46Z",
  "txn_uuid": "moTsfewazu3jHxDfWZU",
  "refundable_amount": "FILTERED",
  "resp_category": null,
  "payment_links": {
    "mobile": "https://payments.juspay.in/payment-page/order/ordeh_2ab7ad0d64181fc8086d",
    "web": "https://payments.juspay.in/payment-page/order/ordeh_2ab7ad0d64181fc8086d",
    "iframe": "https://payments.juspay.in/payment-page/order/ordeh_2ab7ad0d64181fc8086d"
  },
  "amount_refunded": 0,
  "bank_error_code": "",
  "metadata": {
    "webhook_url": "FILTERED",
    "payment_page_client_id": "juspay",
    "txns.auto_capture": "FILTERED",
    "payment_links": {
      "mobile": "https://payments.juspay.in/payment-page/order/ordeh_2ab7ad0d64181fc8086d",
      "web": "https://payments.juspay.in/payment-page/order/ordeh_2ab7ad0d64181fc8086d",
      "iframe": "https://payments.juspay.in/payment-page/order/ordeh_2ab7ad0d64181fc8086d"
    }
  },
  "emi_details": "FILTERED",
  "bank_error_message": ""
}

```

#### Failure Code Snippet:

```failure
{
  "payment_method": "AMAZONPAY",
  "customer_phone": "FILTERED",
  "payment_gateway_response": {
    "auth_ref_num": null,
    "network_error_message": null,
    "xid": null,
    "cvv_check": null,
    "txn_id": "Z-AGOAHJBXOR5YZPDX-1",
    "rrn": "NA",
    "auth_id_code": "NA",
    "resp_message": "Declined",
    "umrn": null,
    "epg_txn_id": "P04-47371-3072886",
    "gateway_merchant_id": "",
    "resp_code": "Declined",
    "created": "2026-01-28T08:07:32Z",
    "current_blocked_amount": null,
    "eci": null,
    "network_error_code": null,
    "payer_ifsc": null,
    "arn": null
  },
  "udf8": "",
  "txn_id": "Z-AGOAHJBXOR5YZPDX-1",
  "order_id": "AGOAHJBXOR5YZPDX",
  "gateway_reference_id": null,
  "udf9": "",
  "txn_detail": {
    "response_message": "Transaction failed",
    "txn_id": "Z-AGOAHJBXOR5YZPDX-1",
    "order_id": "AGOAHJBXOR5YZPDX",
    "error_code": "Declined",
    "txn_flow_type": "REDIRECT_DEBIT",
    "status": "AUTHORIZATION_FAILED",
    "express_checkout": false,
    "gateway_id": 38,
    "error_message": "Declined",
    "offer_deduction_amount": null,
    "tax_amount": null,
    "currency": "INR",
    "txn_amount_breakup": [
      {
        "amount": 207,
        "method": "ADD",
        "sno": "FILTERED",
        "name": "BASE"
      }
    ],
    "txn_amount": 207,
    "created": "2026-01-28T08:07:00Z",
    "gateway": "AMAZONPAY",
    "surcharge_amount": null,
    "last_updated": "2026-01-28T08:07:32Z",
    "txn_uuid": "mozax5ggqybsf",
    "net_amount": 207,
    "redirect": true,
    "metadata": {
      "microapp": "FILTERED",
      "payment_channel": "ANDROID"
    },
    "response_code": "TXN_FAILURE"
  },
  "customer_id": "AJF4R0AF",
  "amount": 207,
  "udf4": "",
  "status": "AUTHORIZATION_FAILED",
  "udf5": "",
  "udf6": "",
  "status_id": 27,
  "offers": [],
  "udf7": "",
  "resp_message": "Transaction failed",
  "product_id": "",
  "refunded": false,
  "udf10": "",
  "gateway_id": 38,
  "udf1": "",
  "udf2": "",
  "udf3": "",
  "date_created": "2026-01-28T08:06:59Z",
  "id": "ordeh_5ea593ad94d84",
  "merchant_id": "juspay",
  "return_url": "amzn://amazonpay.amazon.in/com.zeptoconsumerapp",
  "effective_amount": 207,
  "currency": "INR",
  "auth_type": "",
  "customer_email": "1111111",
  "resp_code": "TXN_FAILURE",
  "payment_method_type": "WALLET",
  "customer_phone_country_code": null,
  "wallet": {
    "payment_method": "AMAZONPAY",
    "txn_flow_type": "REDIRECT_DEBIT"
  },
  "last_updated": "2026-01-28T08:07:32Z",
  "txn_uuid": "mozax5ggqybsf",
  "resp_category": "GENERIC_ERROR",
  "payment_links": {
    "mobile": "https://payments.juspay.in/payment-page/order/ordeh_5ea593ad94d84",
    "web": "https://payments.juspay.in/payment-page/order/ordeh_5ea593ad94d84",
    "iframe": "https://payments.juspay.in/payment-page/order/ordeh_5ea593ad94d84"
  },
  "amount_refunded": 0,
  "bank_error_code": "Declined",
  "metadata": {
    "payment_page_client_id": "juspay",
    "payment_links": {
      "mobile": "https://payments.juspay.in/payment-page/order/ordeh_5ea593ad94d84",
      "web": "https://payments.juspay.in/payment-page/order/ordeh_5ea593ad94d84",
      "iframe": "https://payments.juspay.in/payment-page/order/ordeh_5ea593ad94d84"
    }
  },
  "emi_details": "FILTERED",
  "bank_error_message": "Declined"
}
```

