> For the complete documentation index, see [llms.txt](https://ton-play-1.gitbook.io/ton-play-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ton-play-1.gitbook.io/ton-play-1/payment-solution/payout.md).

# Payout

You should set up your payout strategy – **to whom and how much you send.**&#x20;

1. Collect users' TON wallets (user's @wallet, Tonkeeper or Tonhub wallet address, for example).&#x20;
2. Create a CSV file with two columns: wallet address and amount in TON.
3. Make a request using the Payment Key and the file you created. You'll get the link to sign the transaction in Tonkeeper or Tonhub wallets.

{% hint style="success" %}
[**PaymentKey**](/ton-play-1/payment-solution/get-started.md) is required for this request.&#x20;
{% endhint %}

## Send $TON to users automatically

<mark style="color:green;">`POST`</mark> `https://tpay.tonplay.io/pay/out/v1/new`

#### Query Parameters

| Name    | Type   | Description                                                                   |
| ------- | ------ | ----------------------------------------------------------------------------- |
| orderId | String | *external order id in the merchant’s system (*&#x61;ny of your forma&#x74;*)* |

#### Headers

| Name                                             | Type   | Description |
| ------------------------------------------------ | ------ | ----------- |
| X-Auth-Tonplay<mark style="color:red;">\*</mark> | String | PaymentKey  |

#### Request Body

| Name                                   | Type   | Description        |
| -------------------------------------- | ------ | ------------------ |
| file<mark style="color:red;">\*</mark> | String | your text/csv file |

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

```javascript
{    
	“tonkeeper”: “https://app.tonkeeper.com/transfer/EQB8GHeD29YFlSkgqvPfXEAqpyq_1IRiqRbD3E5zp6djSDqt?amount=113000000&text=7275789a-12d3-44fd-94b6-114932313ff0-1676443173”,    
	“tonhub”: “https://tonhub.com/transfer/EQB8GHeD29YFlSkgqvPfXEAqpyq_1IRiqRbD3E5zp6djSDqt?amount=113000000&text=7275789a-12d3-44fd-94b6-114932313ff0-1676443173”
}
```

{% endtab %}
{% endtabs %}

**Payload**

Multipart Form Data of file with a payout: `$address,$amount`

1. *Address: TON account address. Base64 format*
2. *Amount: the value of TONs (not nanos)*

Example of the request file content, text/CSV:

```
address1,1.5 
address2,2.1
```
