# Ecoupon Inquiry

#### **Usage**

- Inquiry product detail \\ balance \\ activity of this coupon, support e-Buy Ecoupon and thirdparty ecoupon.

#### **Transaction Flow**

- The transaction process will collect QR code message thru scanning or direct input through keypad, and it will send to [e-Buy backend](https://book.e-buy.com/link/124#bkmrk-e-buy-backend "A group /set of equipment / server to process all the transaction from e-Buy POS") server after collection to further process.

#### **action**

- `ecouponInquiry`

**Request body，Cashier POS===&gt;[e-Buy Backend](https://book.e-buy.com/link/124#bkmrk-e-buy-backend "A group /set of equipment / server to process all the transaction from e-Buy POS")**

<table id="bkmrk-field-type-mandatory"><thead><tr><th>Field</th><th>Type</th><th>Mandatory</th><th>Description</th><th>Memo</th></tr></thead><tbody><tr><td>traceNo</td><td>String</td><td>Yes</td><td>Cashier terminal trace no.</td><td>No repeat</td></tr><tr><td>qrcode</td><td>String</td><td>Yes</td><td>ecoupon code</td><td>ecoupon code for inquiry</td></tr></tbody></table>

#### **Request body example**

```
{
    "traceNo": "99000009100010101732123",
    "qrcode": "HDCP00000000001235"
}

```

**Response body，[e-Buy Backend](https://book.e-buy.com/link/124#bkmrk-e-buy-backend "A group /set of equipment / server to process all the transaction from e-Buy POS")===&gt;Cashier POS**

<table id="bkmrk-field-type-mandatory-0"><thead><tr><th>Field</th><th>Type</th><th>Mandatory</th><th>Description</th><th>Memo</th></tr></thead><tbody><tr><td>traceNo</td><td>String</td><td>Yes</td><td>Cashier terminal trace no.</td><td>No repeat</td></tr><tr><td>orderNo</td><td>String</td><td>Yes</td><td>Order No. from e-Buy</td><td>Unit : dollar</td></tr><tr><td>transDate</td><td>String</td><td>Yes</td><td>Transaction time</td><td>Format：yyyyMMddHHmmss</td></tr><tr><td>returnCode</td><td>String</td><td>Yes</td><td>Return code</td><td>00 represent successful transaction, else represent fail</td></tr><tr><td>returnDesc</td><td>String</td><td>Yes</td><td>Return message</td><td>Detail explanation / error message per transaction result</td></tr><tr><td>canPayAmount</td><td>Price</td><td>Yes</td><td>Balance of this coupon</td><td>Unit : dollar</td></tr><tr><td>activityProductNo</td><td>String</td><td>No</td><td>Activity Product no.</td><td>The activity Product no. this coupon belongs to</td></tr><tr><td>activityProductName</td><td>String</td><td>No</td><td>Activity Product name</td><td>The activity Product name this coupon belongs to</td></tr></tbody></table>

#### **Response body example**

```
{
    "traceNo": "99000009100010101732123",
    "orderNo": "171698602301",
    "transDate": "20161231120533",
    "returnCode": "00",
    "returnDesc": "SUCCESS",
    "canPayAmount": 40.8,
    "activityProductNo": "2016123101",
    "activityProductName": "中信365权益"
}
```