> 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-buyer/get-buyer-configuration.md).

# Get buyer configuration

### Endpoint usage

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

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                                                                                       |
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------- |
| address<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": {
        "id": 15,
        "address": "TUFXua1qzfCsFpcZEGXaU7oGFURqQ7RQpy",
        "balance": "0", //The deposit trx amount
        "invitationCode": "",
        "tronAddress": "TBuPND7n66qNf3AbYNJA458duuV3ZyWtUk",
        "freezeBalance": null,
        "whiteState": 0,
        "giftBalance": "0", //The reward trx amount for the deposit
        "apiKey": "your-api-key",
        "sourceFlag": "tronify",
        "totalBalance": "0", //total trx amount
        "contractAddress": "TXnafj5Xh4G7jqTwajvdvaAvKegMwCLTyL", // The platform deposit address.
        "giftRatio": [ //The range of deposit trx amount for a single transaction and the corresponding reward ratio.
            [
                50,
                100,
                0.1
            ],
            [
                100,
                100000,
                0.2
            ]
        ]
    }
}
```

{% endtab %}
{% endtabs %}

### code example

{% tabs %}
{% tab title="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/user/info',params, { headers })
 console.log(res)
 if(res.resCode === '100'){
   //...  
 }
```

{% endtab %}
{% endtabs %}

### Postman example

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