Mark payouts as paid in bulk
curl --request POST \
--url https://platform.tolt.com/v2/payouts/bulk/mark-as-paid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"pout_Hq4XcN8rTb2VmK7sWp3LdYf9",
"pout_6TzR2kWq9NcB4vXm8JpLs3Dh"
]
}
'import requests
url = "https://platform.tolt.com/v2/payouts/bulk/mark-as-paid"
payload = { "ids": ["pout_Hq4XcN8rTb2VmK7sWp3LdYf9", "pout_6TzR2kWq9NcB4vXm8JpLs3Dh"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['pout_Hq4XcN8rTb2VmK7sWp3LdYf9', 'pout_6TzR2kWq9NcB4vXm8JpLs3Dh']})
};
fetch('https://platform.tolt.com/v2/payouts/bulk/mark-as-paid', 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://platform.tolt.com/v2/payouts/bulk/mark-as-paid",
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([
'ids' => [
'pout_Hq4XcN8rTb2VmK7sWp3LdYf9',
'pout_6TzR2kWq9NcB4vXm8JpLs3Dh'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://platform.tolt.com/v2/payouts/bulk/mark-as-paid"
payload := strings.NewReader("{\n \"ids\": [\n \"pout_Hq4XcN8rTb2VmK7sWp3LdYf9\",\n \"pout_6TzR2kWq9NcB4vXm8JpLs3Dh\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://platform.tolt.com/v2/payouts/bulk/mark-as-paid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"pout_Hq4XcN8rTb2VmK7sWp3LdYf9\",\n \"pout_6TzR2kWq9NcB4vXm8JpLs3Dh\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.tolt.com/v2/payouts/bulk/mark-as-paid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"pout_Hq4XcN8rTb2VmK7sWp3LdYf9\",\n \"pout_6TzR2kWq9NcB4vXm8JpLs3Dh\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Processed payouts",
"data": {
"succeeded": 1,
"failed": 1,
"results": [
{
"id": "pout_Hq4XcN8rTb2VmK7sWp3LdYf9",
"status": "ok"
},
{
"id": "pout_6TzR2kWq9NcB4vXm8JpLs3Dh",
"status": "error",
"code": "not_found",
"message": "Payout not found"
}
]
}
}{
"success": false,
"message": "ids: Too small: expected array to have >=1 items",
"code": "validation_error",
"doc_url": "https://docs.tolt.com/errors#validation_error",
"errors": [
{
"field": "ids",
"message": "Too small: expected array to have >=1 items"
}
]
}{
"success": false,
"message": "Unauthorized",
"code": "unauthorized",
"doc_url": "https://docs.tolt.com/errors#unauthorized"
}{
"success": false,
"message": "Request body exceeds 1 MB",
"code": "payload_too_large",
"doc_url": "https://docs.tolt.com/errors#payload_too_large"
}{
"success": false,
"message": "Too many requests. Retry after the window resets.",
"code": "rate_limited",
"doc_url": "https://docs.tolt.com/errors#rate_limited"
}Payouts
Mark payouts as paid in bulk
Marks up to 100 payouts as paid and reports the outcome per id, with the same rules as marking one payout as paid. Successful changes commit together.
POST
/
v2
/
payouts
/
bulk
/
mark-as-paid
Mark payouts as paid in bulk
curl --request POST \
--url https://platform.tolt.com/v2/payouts/bulk/mark-as-paid \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"pout_Hq4XcN8rTb2VmK7sWp3LdYf9",
"pout_6TzR2kWq9NcB4vXm8JpLs3Dh"
]
}
'import requests
url = "https://platform.tolt.com/v2/payouts/bulk/mark-as-paid"
payload = { "ids": ["pout_Hq4XcN8rTb2VmK7sWp3LdYf9", "pout_6TzR2kWq9NcB4vXm8JpLs3Dh"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['pout_Hq4XcN8rTb2VmK7sWp3LdYf9', 'pout_6TzR2kWq9NcB4vXm8JpLs3Dh']})
};
fetch('https://platform.tolt.com/v2/payouts/bulk/mark-as-paid', 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://platform.tolt.com/v2/payouts/bulk/mark-as-paid",
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([
'ids' => [
'pout_Hq4XcN8rTb2VmK7sWp3LdYf9',
'pout_6TzR2kWq9NcB4vXm8JpLs3Dh'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://platform.tolt.com/v2/payouts/bulk/mark-as-paid"
payload := strings.NewReader("{\n \"ids\": [\n \"pout_Hq4XcN8rTb2VmK7sWp3LdYf9\",\n \"pout_6TzR2kWq9NcB4vXm8JpLs3Dh\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://platform.tolt.com/v2/payouts/bulk/mark-as-paid")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"pout_Hq4XcN8rTb2VmK7sWp3LdYf9\",\n \"pout_6TzR2kWq9NcB4vXm8JpLs3Dh\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.tolt.com/v2/payouts/bulk/mark-as-paid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"pout_Hq4XcN8rTb2VmK7sWp3LdYf9\",\n \"pout_6TzR2kWq9NcB4vXm8JpLs3Dh\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Processed payouts",
"data": {
"succeeded": 1,
"failed": 1,
"results": [
{
"id": "pout_Hq4XcN8rTb2VmK7sWp3LdYf9",
"status": "ok"
},
{
"id": "pout_6TzR2kWq9NcB4vXm8JpLs3Dh",
"status": "error",
"code": "not_found",
"message": "Payout not found"
}
]
}
}{
"success": false,
"message": "ids: Too small: expected array to have >=1 items",
"code": "validation_error",
"doc_url": "https://docs.tolt.com/errors#validation_error",
"errors": [
{
"field": "ids",
"message": "Too small: expected array to have >=1 items"
}
]
}{
"success": false,
"message": "Unauthorized",
"code": "unauthorized",
"doc_url": "https://docs.tolt.com/errors#unauthorized"
}{
"success": false,
"message": "Request body exceeds 1 MB",
"code": "payload_too_large",
"doc_url": "https://docs.tolt.com/errors#payload_too_large"
}{
"success": false,
"message": "Too many requests. Retry after the window resets.",
"code": "rate_limited",
"doc_url": "https://docs.tolt.com/errors#rate_limited"
}Body
application/json

