# Get seller panel

### Endpoint usage

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

The fields with \* are required, and the fields without \* are optional

#### Headers

| Name                                      | Type   | Description                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------- |
| api-key<mark style="color:red;">\*</mark> | String | Access the buyer management platform of tronify.io to obtain it |

#### Request Body

| Name                                          | Type   | Description                                                                                       |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------- |
| fromAddress<mark style="color:red;">\*</mark> | String | User address (Wallet address)                                                                     |
| sourceFlag<mark style="color:red;">\*</mark>  | String | Source channel (Both sides need to agree on a name to represent the channel of the third parties) |

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

```javascript
{
    "resCode": 100,
    "resMsg": "Success",
    "data": {
        "total_settled_amount":12318.87016499999,//Accumulated earnings
        "today_settled_amount":959.9134970000006,//Number of TRX settled today
        "today_settled_count":44,//Number of transactions settled today
        "today_sale_energy":5877000,//Energy sold today
        "today_pending_recover_energy":128000,//Energy waiting to be reclaimed today
        "today_pending_recover_trx":7906,//trx waiting to be reclaimed today
        "today_pending_recover_bandwidth":0,//Bandwidth to be reclaimed today
        "yesterday_settled_amount":1937.5649959999998,//Number of TRX settled yesterday
        "yesterday_settled_count":37,//Number of transactions settled yesterday
        "yesterday_sale_energy":8365000,//Energy sold yesterday
        "today_pending_amount":144.58000000000004//Number of TRX waiting to be settled
    }
}
```

{% endtab %}
{% endtabs %}

### code example

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

```javascript
// example
const params = {
    address: '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'){
    //...  Check if res.data is empty, if it is, then it is unauthorized.
}
```

{% endtab %}
{% endtabs %}

### Postman example

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-tron.en.tronify.io/tron-api-seller/get-seller-panel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
