Create payouts in bulk (1.4.0)
curl --request POST \
--url https://api.example.com/v1/public/payouts/bulk \
--header 'Content-Type: application/json' \
--header 'X-Signature: <api-key>' \
--data '
{
"items": [
{
"orderId": "<string>",
"assetCode": "USDT_TRC20",
"destinationAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "50.00",
"destinationMemo": "WP-XXXXXXXX",
"priority": "recommended",
"urlCallback": "https://shop.example.com/webhooks/wallet"
}
]
}
'import requests
url = "https://api.example.com/v1/public/payouts/bulk"
payload = { "items": [
{
"orderId": "<string>",
"assetCode": "USDT_TRC20",
"destinationAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "50.00",
"destinationMemo": "WP-XXXXXXXX",
"priority": "recommended",
"urlCallback": "https://shop.example.com/webhooks/wallet"
}
] }
headers = {
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
orderId: '<string>',
assetCode: 'USDT_TRC20',
destinationAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
amount: '50.00',
destinationMemo: 'WP-XXXXXXXX',
priority: 'recommended',
urlCallback: 'https://shop.example.com/webhooks/wallet'
}
]
})
};
fetch('https://api.example.com/v1/public/payouts/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/public/payouts/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'orderId' => '<string>',
'assetCode' => 'USDT_TRC20',
'destinationAddress' => 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
'amount' => '50.00',
'destinationMemo' => 'WP-XXXXXXXX',
'priority' => 'recommended',
'urlCallback' => 'https://shop.example.com/webhooks/wallet'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/public/payouts/bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"orderId\": \"<string>\",\n \"assetCode\": \"USDT_TRC20\",\n \"destinationAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"50.00\",\n \"destinationMemo\": \"WP-XXXXXXXX\",\n \"priority\": \"recommended\",\n \"urlCallback\": \"https://shop.example.com/webhooks/wallet\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/public/payouts/bulk")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"orderId\": \"<string>\",\n \"assetCode\": \"USDT_TRC20\",\n \"destinationAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"50.00\",\n \"destinationMemo\": \"WP-XXXXXXXX\",\n \"priority\": \"recommended\",\n \"urlCallback\": \"https://shop.example.com/webhooks/wallet\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/public/payouts/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"orderId\": \"<string>\",\n \"assetCode\": \"USDT_TRC20\",\n \"destinationAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"50.00\",\n \"destinationMemo\": \"WP-XXXXXXXX\",\n \"priority\": \"recommended\",\n \"urlCallback\": \"https://shop.example.com/webhooks/wallet\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"index": 0,
"ok": true,
"orderId": "payout_77",
"payout": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "payout_77",
"status": "queued",
"assetCode": "USDT_TRC20",
"destinationAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"destinationMemo": null,
"amount": "50.000000",
"requiresApproval": false,
"txHash": "a1b2c3...e9f0",
"confirmations": 12,
"requiredConfirmations": 19,
"networkStatus": "confirmed",
"explorerTxUrl": "https://tronscan.org/#/transaction/a1b2c3",
"failReason": "<string>",
"approvedAt": "2023-11-07T05:31:56Z",
"broadcastedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"network": "TRON",
"isFinal": false,
"priority": "recommended",
"amountUsd": "50.00",
"rateUsd": "1.00",
"commission": "<string>",
"networkFee": "<string>"
},
"error": {
"code": "INVALID_ADDRESS",
"message": "Invalid address for TRON"
}
}
],
"summary": {
"total": 3,
"succeeded": 2,
"failed": 1
}
}public · payouts
Create payouts in bulk (1.4.0)
Массовое создание выплат — до 100 строк за запрос. Каждая строка обрабатывается НЕЗАВИСИМО: ошибка одной не отменяет остальные (результат построчно в items). Идемпотентность — по orderId каждой строки (X-Idempotency-Key на весь пакет не применяется). Требует scope deposit_and_payout.
POST
/
v1
/
public
/
payouts
/
bulk
Create payouts in bulk (1.4.0)
curl --request POST \
--url https://api.example.com/v1/public/payouts/bulk \
--header 'Content-Type: application/json' \
--header 'X-Signature: <api-key>' \
--data '
{
"items": [
{
"orderId": "<string>",
"assetCode": "USDT_TRC20",
"destinationAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "50.00",
"destinationMemo": "WP-XXXXXXXX",
"priority": "recommended",
"urlCallback": "https://shop.example.com/webhooks/wallet"
}
]
}
'import requests
url = "https://api.example.com/v1/public/payouts/bulk"
payload = { "items": [
{
"orderId": "<string>",
"assetCode": "USDT_TRC20",
"destinationAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"amount": "50.00",
"destinationMemo": "WP-XXXXXXXX",
"priority": "recommended",
"urlCallback": "https://shop.example.com/webhooks/wallet"
}
] }
headers = {
"X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Signature': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
orderId: '<string>',
assetCode: 'USDT_TRC20',
destinationAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
amount: '50.00',
destinationMemo: 'WP-XXXXXXXX',
priority: 'recommended',
urlCallback: 'https://shop.example.com/webhooks/wallet'
}
]
})
};
fetch('https://api.example.com/v1/public/payouts/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/public/payouts/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'orderId' => '<string>',
'assetCode' => 'USDT_TRC20',
'destinationAddress' => 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
'amount' => '50.00',
'destinationMemo' => 'WP-XXXXXXXX',
'priority' => 'recommended',
'urlCallback' => 'https://shop.example.com/webhooks/wallet'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/public/payouts/bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"orderId\": \"<string>\",\n \"assetCode\": \"USDT_TRC20\",\n \"destinationAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"50.00\",\n \"destinationMemo\": \"WP-XXXXXXXX\",\n \"priority\": \"recommended\",\n \"urlCallback\": \"https://shop.example.com/webhooks/wallet\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Signature", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/public/payouts/bulk")
.header("X-Signature", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"orderId\": \"<string>\",\n \"assetCode\": \"USDT_TRC20\",\n \"destinationAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"50.00\",\n \"destinationMemo\": \"WP-XXXXXXXX\",\n \"priority\": \"recommended\",\n \"urlCallback\": \"https://shop.example.com/webhooks/wallet\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/public/payouts/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Signature"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"orderId\": \"<string>\",\n \"assetCode\": \"USDT_TRC20\",\n \"destinationAddress\": \"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t\",\n \"amount\": \"50.00\",\n \"destinationMemo\": \"WP-XXXXXXXX\",\n \"priority\": \"recommended\",\n \"urlCallback\": \"https://shop.example.com/webhooks/wallet\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"index": 0,
"ok": true,
"orderId": "payout_77",
"payout": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "payout_77",
"status": "queued",
"assetCode": "USDT_TRC20",
"destinationAddress": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"destinationMemo": null,
"amount": "50.000000",
"requiresApproval": false,
"txHash": "a1b2c3...e9f0",
"confirmations": 12,
"requiredConfirmations": 19,
"networkStatus": "confirmed",
"explorerTxUrl": "https://tronscan.org/#/transaction/a1b2c3",
"failReason": "<string>",
"approvedAt": "2023-11-07T05:31:56Z",
"broadcastedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"network": "TRON",
"isFinal": false,
"priority": "recommended",
"amountUsd": "50.00",
"rateUsd": "1.00",
"commission": "<string>",
"networkFee": "<string>"
},
"error": {
"code": "INVALID_ADDRESS",
"message": "Invalid address for TRON"
}
}
],
"summary": {
"total": 3,
"succeeded": 2,
"failed": 1
}
}Authorizations
HMAC-SHA256-Hex(timestamp + "." + raw_body, api_secret)
Body
application/json
Список выплат (макс. 100).
Show child attributes
Show child attributes