> For the complete documentation index, see [llms.txt](https://docs-tron.tronify.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-tron.tronify.io/tron-api-seller/get-seller-panel.md).

# 获取卖家面板

### 接口调用

<mark style="color:green;">`POST`</mark> `https://open.tronify.io/api/tronRent/sellerSellInfo`

**以下参数带\*字段为必填，不带\*号为选填**

#### Headers

| Name                                      | Type | Description          |
| ----------------------------------------- | ---- | -------------------- |
| api-key<mark style="color:red;">\*</mark> |      | 访问tronify.io买家管理平台获取 |

#### Request Body

| Name                                          | Type   | Description              |
| --------------------------------------------- | ------ | ------------------------ |
| fromAddress<mark style="color:red;">\*</mark> | String | 用户地址（钱包地址）               |
| sourceFlag<mark style="color:red;">\*</mark>  | String | 渠道来源（需要双方约定一个名称来代表三方的渠道） |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "total_settled_amount":12318.87016499999,//累计收益
        "today_settled_amount":959.9134970000006,//今日已结算trx
        "today_settled_count":44,//今日已结算笔数
        "today_sale_energy":5877000,//今日已出售能量
        "today_pending_recover_energy":128000,//今日待回收能量
        "today_pending_recover_trx":7906,//今日待回收trx
        "today_pending_recover_bandwidth":0,//今日待回收带宽
        "yesterday_settled_amount":1937.5649959999998,//昨日已结算trx
        "yesterday_settled_count":37,//昨日已结算笔数
        "yesterday_sale_energy":8365000,//昨日已出售能量
        "today_pending_amount":144.58000000000004//待结算trx
    }
}
```

{% endtab %}
{% endtabs %}

### 调用示例

{% tabs %}
{% tab title="JavaScript" %}

```javascript
// example
const params = {
    fromAddress: 'TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k',
    sourceFlag: 'tronLink'
}
const headers = {
  'api-key': 'your-api-key'
};
const res = await axios.post('https://open.tronify.io/api/tronRent/sellerSellInfo',params, { headers })
console.log(res)
if(res.resCode === '100'){
   //...  
}
```

{% endtab %}
{% endtabs %}

### Postman 示例

<figure><img src="/files/ltYEcZTrTcBiLgV2WO3W" alt=""><figcaption></figcaption></figure>
