# Balance of Merchant

This API is used to find the balance of merchant.

* **Path: /api/v1/merchant/wallet/balance**
* **Method: POST**
* **Content-Type**

  application/json
* **Headers**

| Key           | Type   | Required | Comments             |
| ------------- | ------ | -------- | -------------------- |
| authorization | string | YES      | Authorization Header |

* **Body**

| Key         | Type   | Required | Comments                                                               |
| ----------- | ------ | -------- | ---------------------------------------------------------------------- |
| api\_key    | string | YES      | api key                                                                |
| request\_id | string | YES      | Unique id; the shortest is 20 characters, the longest is 64 characters |
| timestamp   | string | YES      | 13-digit; Valid for plus or minus 30 seconds                           |
| sign        | string | YES      | sign: MD5(api\_key+timestamp+secret+request\_id)lowercase hex          |

* **Example**

  ```js
  {
    api_key: 'fd01a53d7834b06c080cd1024ae9c60a',
    request_id: '4f5713db9af0495f87d2f496182bf897',
    timestamp: '1712035176101',
    sign: 'a8b589acd79b718594d49e5723cd56ff'
  }
  ```

  **signature example**:MD5(fd01a53d7834b06c080cd1024ae9c60a171203517610116388ce4331b35e8e0d32777ba57d7d94f5713db9af0495f87d2f496182bf897)
* **Response**

| Key  | Type   | Comments             |
| ---- | ------ | -------------------- |
| code | number | Response code        |
| msg  | string | Response message     |
| data | object | [details](#balance1) |

**details**

| Key           | Type   | Comments               |
| ------------- | ------ | ---------------------- |
| usdt\_balance | string | Available USDT balance |
| usdc\_balance | string | Available USDC balance |

* **Example**

  ```js
  {
    "code": 10200,
    "msg": "ok"
    "data": {
      "usdt_balance": "73945.05",
      "usdc_balance": "0.00"
    }
  }
  ```
