This is the order status API. This gives the status against the order.

Existing API details can be seen here: https://developer.juspay.in/reference#get-order-status
Mandate object will be added to this API as shown in the response below. The description is already provided in the redirection block.

Request

curl -X GET \
 {host}/orders/:order_id \
 -H 'Authorization: Basic <base64 of key:>'

Response

{
    "order_id": "635",
    "merchant_id": "Anjali_A_L",
    "id": "ordeu_76765e79c30a479da4488062df3d2693",
    "gateway_id": 100,
    "date_created": "2018-07-27T11:20:00Z",
    "customer_phone": null,
    "customer_id": null,
    "customer_email": null,
    "currency": "INR",
    "bank_error_message": "Payment Successful",
    "bank_error_code": "0",
    "auth_type": "",
    "amount_refunded": 0,
    "amount": 386
    "txn_uuid": "jgveg9ny89uj6zgs",
    "txn_id": "Anjali_A_L-635-1",
    "status_id": 21,
    "status": "CHARGED",
    "refunded": false,
    "product_id": "",
    "payment_method_type": "NB",
    "payment_method": "NB_DUMMY",
    "mandate": {
        “mandate_id”:”8sgd73h39sh”,
        "mandate_token": "w1qwq32sw3232e22w12",
        "mandate_status": "ACTIVE" 
    },
    "payment_links": {
    "web":"https://sandbox.juspay.in/merchant/pay/ordeu_76765e79c30a479da4488062df3d2693",
        "mobile": "https://sandbox.juspay.in/merchant/pay/ordeu_76765e79c30a479da4488062df3d2693?mobile=true",
        "iframe": "https://sandbox.juspay.in/merchant/ipay/ordeu_76765e79c30a479da4488062df3d2693"
    },
    "payment_gateway_response": {
        "txn_id": "Anjali_A_L-635-1",
        "rrn": null,
        "resp_message": "Payment Successful",
        "resp_code": "0",
        "epg_txn_id": "1532690566017",
        "created": "2018-07-27T11:22:46Z",
        "auth_id_code": "475926"
    }
   "udf9": "",
    "udf8": "",
    "udf7": "",
    "udf6": "",
    "udf5": "",
    "udf4": "",
    "udf3": "",
    "udf2": "",
    "udf10": "",
    "udf1": "",
}
{
    "order_id": "635",
    "merchant_id": "Anjali_A_L",
    "id": "ordeu_76765e79c30a479da4488062df3d2693",
    "gateway_id": 100,
    "date_created": "2018-07-27T11:20:00Z",
    "customer_phone": null,
    "customer_id": null,
    "customer_email": null,
    "currency": "INR",
    "bank_error_message": "Payment Successful",
    "bank_error_code": "0",
    "auth_type": "",
    "amount_refunded": 0,
    "amount": 386
    "txn_uuid": "jgveg9ny89uj6zgs",
    "txn_id": "Anjali_A_L-635-1",
    "status_id": 21,
    "status": "CHARGED",
    "refunded": false,
    "product_id": "",
    "payment_method_type": "NB",
    "payment_method": "JP_ICICI",
    "mandate": {
        “mandate_id”:”8sgd73h39sh”,
        "mandate_token": "w1qwq32sw3232e22w12",
        "mandate_status": "ACTIVE", 
         "bank_details": {
            "bank_name": "HDFC Bank",
            "account_number" : "10101010101010",
            "beneficiary_name" : "Test cust",
            "ifsc" : "HDFC000101"
            }
     },
    "payment_links": {
"web":"https://sandbox.juspay.in/merchant/pay/ordeu_76765e79c30a479da4488062df3d2693",
        "mobile":"https://sandbox.juspay.in/merchant/pay/ordeu_76765e79c30a479da4488062df3d2693?mobile=true",
        "iframe":"https://sandbox.juspay.in/merchant/ipay/ordeu_76765e79c30a479da4488062df3d2693"
    },
    "payment_gateway_response": {
        "txn_id": "Anjali_A_L-635-1",
        "rrn": null,
        "resp_message": "Payment Successful",
        "resp_code": "0",
        "epg_txn_id": "1532690566017",
        "created": "2018-07-27T11:22:46Z",
        "auth_id_code": "475926"
    }
   "udf9": "",
    "udf8": "",
    "udf7": "",
    "udf6": "",
    "udf5": "",
    "udf4": "",
    "udf3": "",
    "udf2": "",
    "udf10": "",
    "udf1": "",
}