> For the complete documentation index, see [llms.txt](https://docs-tron.en.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.en.tronify.io/tron-api-seller/get-seller-configuration.md).

# Get seller configuration

### Endpoint usage

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

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": {
        "from_address": "TKghVbeEzvrV8GLK3YE1gRrjVHSf8rGB6k",
        "approve_address": "TGVEVDZZHJGZAHEPfou57u8F89i5nNNRxX",//authorization address
        "approve_id": 3, //authorization id
        "approve_type": "1,2,3,4,5",
        "auto_sale": 1,
        "auto_vote": 1,
        "energy_price_customize": 1,//Customize the minimum selling price of energy, default is 0.
        "energy_price_low": 60, //Set the minimum selling price of energy, default is 60 if not set.
        "bandwidth_price_customize": 0,
        "bandwidth_price_low": 0,
        "auto_withdraw": 1,
        "withdraw_left": 0,
        "auto_staking": 1,
        "stake_left": 0,
        "staking_trx": "178260 //Staked TRX amount
        "staking_available_trx": "5114.939104" //Available TRX for lease
    }
}
```

{% 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/sellerApproveInfo',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/V8CK2BDzm4pJySlOCQmL" alt=""><figcaption></figcaption></figure>
