# 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="https://3188465811-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnv0Qbx2yTtH3TKQFd528%2Fuploads%2FWYAHDa9G9lkqL8nL5sDB%2F14.jpg?alt=media&#x26;token=c70524de-79c6-49be-838c-0a75d839bfdf" alt=""><figcaption></figcaption></figure>
