Create
curl --request POST \
--url https://{defaultHost}/v1/payouts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payout": {
"affiliation": "449d608f-3184-4997-b681-74c9a2e938cc",
"end_date": "2026-11-03 12:55:31 UTC"
}
}
'import requests
url = "https://{defaultHost}/v1/payouts"
payload = { "payout": {
"affiliation": "449d608f-3184-4997-b681-74c9a2e938cc",
"end_date": "2026-11-03 12:55:31 UTC"
} }
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({
payout: {
affiliation: '449d608f-3184-4997-b681-74c9a2e938cc',
end_date: '2026-11-03 12:55:31 UTC'
}
})
};
fetch('https://{defaultHost}/v1/payouts', 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://{defaultHost}/v1/payouts",
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([
'payout' => [
'affiliation' => '449d608f-3184-4997-b681-74c9a2e938cc',
'end_date' => '2026-11-03 12:55:31 UTC'
]
]),
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://{defaultHost}/v1/payouts"
payload := strings.NewReader("{\n \"payout\": {\n \"affiliation\": \"449d608f-3184-4997-b681-74c9a2e938cc\",\n \"end_date\": \"2026-11-03 12:55:31 UTC\"\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://{defaultHost}/v1/payouts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payout\": {\n \"affiliation\": \"449d608f-3184-4997-b681-74c9a2e938cc\",\n \"end_date\": \"2026-11-03 12:55:31 UTC\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/payouts")
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 \"payout\": {\n \"affiliation\": \"449d608f-3184-4997-b681-74c9a2e938cc\",\n \"end_date\": \"2026-11-03 12:55:31 UTC\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "55c4999b-50ac-4dd3-8067-e70d39f9b1f1",
"object": "payout",
"currency": "usd",
"description": null,
"end_date": 1793664000,
"live_mode": true,
"manual": false,
"payout_email": null,
"status": "processing",
"total_commission_amount": 9900,
"affiliation": "449d608f-3184-4997-b681-74c9a2e938cc",
"payout_group": null,
"created_at": 1793796931,
"updated_at": 1793796931
}Payouts
Create
Creates a new payout.
POST
/
v1
/
payouts
Create
curl --request POST \
--url https://{defaultHost}/v1/payouts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payout": {
"affiliation": "449d608f-3184-4997-b681-74c9a2e938cc",
"end_date": "2026-11-03 12:55:31 UTC"
}
}
'import requests
url = "https://{defaultHost}/v1/payouts"
payload = { "payout": {
"affiliation": "449d608f-3184-4997-b681-74c9a2e938cc",
"end_date": "2026-11-03 12:55:31 UTC"
} }
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({
payout: {
affiliation: '449d608f-3184-4997-b681-74c9a2e938cc',
end_date: '2026-11-03 12:55:31 UTC'
}
})
};
fetch('https://{defaultHost}/v1/payouts', 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://{defaultHost}/v1/payouts",
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([
'payout' => [
'affiliation' => '449d608f-3184-4997-b681-74c9a2e938cc',
'end_date' => '2026-11-03 12:55:31 UTC'
]
]),
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://{defaultHost}/v1/payouts"
payload := strings.NewReader("{\n \"payout\": {\n \"affiliation\": \"449d608f-3184-4997-b681-74c9a2e938cc\",\n \"end_date\": \"2026-11-03 12:55:31 UTC\"\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://{defaultHost}/v1/payouts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payout\": {\n \"affiliation\": \"449d608f-3184-4997-b681-74c9a2e938cc\",\n \"end_date\": \"2026-11-03 12:55:31 UTC\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/payouts")
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 \"payout\": {\n \"affiliation\": \"449d608f-3184-4997-b681-74c9a2e938cc\",\n \"end_date\": \"2026-11-03 12:55:31 UTC\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "55c4999b-50ac-4dd3-8067-e70d39f9b1f1",
"object": "payout",
"currency": "usd",
"description": null,
"end_date": 1793664000,
"live_mode": true,
"manual": false,
"payout_email": null,
"status": "processing",
"total_commission_amount": 9900,
"affiliation": "449d608f-3184-4997-b681-74c9a2e938cc",
"payout_group": null,
"created_at": 1793796931,
"updated_at": 1793796931
}Authorizations
Response
200 - application/json
Success
Expandable – The associated affiliation ID.
Expandable – The associated payout group ID.
Expandable – Property not returned unless expanded.
Was this page helpful?