# Message Structure

#### **Request and response message are both use following structure**

<table id="bkmrk-no.-parameter-format"><thead><tr><th>No.</th><th>Parameter</th><th>Format</th><th>Reference</th><th>Description</th><th>Memo</th></tr></thead><tbody><tr><td>1</td><td>action</td><td>String</td><td>inquiry</td><td>Transaction Type</td><td>The specific interfaces with detail description</td></tr><tr><td>2</td><td>deviceNo</td><td>String</td><td>POS01</td><td>Cashier Terminal No.</td><td>To identify the Cashier Terminal used in this transaction</td></tr><tr><td>3</td><td>shopNo</td><td>String</td><td>CN123456</td><td>Shop No.</td><td>To identify the merchant / shop in this transaction</td></tr><tr><td>4</td><td>brand</td><td>String</td><td>663</td><td>Brand No.</td><td>To identify the Brand used in this transaction, allocated by e-Buy</td></tr><tr><td>5</td><td>body</td><td>String</td><td>BASE64</td><td>Message Detail</td><td>The specific interfaces with detail description</td></tr></tbody></table>

#### **example**

```
0x00 0xE7{"action":"inquiry","deviceNo":"POS01","shopNo":"CN123456","brand":"663","body":"ewogICAgICAgICAidHJhY2VObyI6ICI5OTAwMDAwOTEwMDAxMDEwMTczMjEyMyIsCiAgICAgICAgICJvcmlnaW5hbFRyYWNlTm8iOiAiOTkwMDAwMDkxMDAwMTAxMDE3MzIxMjQiCiAgICAgfQ=="}

```

- 00E7:The length of the message is 231 bytes