Create a payout method
curl --request POST \
--url https://api.firstpromoter.com/api/v2/affiliate/payout_methods \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"details": {
"paypal_email": "<string>",
"wise_email": "<string>",
"wallet_address": "<string>",
"crypto_currency": "<string>",
"account_holder_name": "<string>",
"account_number": "<string>",
"routing_aba_number": "<string>",
"country": "<string>",
"state": "<string>",
"postal_code": "<string>",
"address": "<string>",
"city": "<string>",
"transit_number": "<string>",
"institution_number": "<string>",
"bsb_code": "<string>",
"sort_code": "<string>",
"iban": "<string>",
"swift_bic_code": "<string>",
"bank_name": "<string>",
"bank_city": "<string>",
"bank_address": "<string>"
},
"is_disabled": true,
"is_selected": true
}
'import requests
url = "https://api.firstpromoter.com/api/v2/affiliate/payout_methods"
payload = {
"details": {
"paypal_email": "<string>",
"wise_email": "<string>",
"wallet_address": "<string>",
"crypto_currency": "<string>",
"account_holder_name": "<string>",
"account_number": "<string>",
"routing_aba_number": "<string>",
"country": "<string>",
"state": "<string>",
"postal_code": "<string>",
"address": "<string>",
"city": "<string>",
"transit_number": "<string>",
"institution_number": "<string>",
"bsb_code": "<string>",
"sort_code": "<string>",
"iban": "<string>",
"swift_bic_code": "<string>",
"bank_name": "<string>",
"bank_city": "<string>",
"bank_address": "<string>"
},
"is_disabled": True,
"is_selected": True
}
headers = {
"Account-ID": "<account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Account-ID': '<account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
details: {
paypal_email: '<string>',
wise_email: '<string>',
wallet_address: '<string>',
crypto_currency: '<string>',
account_holder_name: '<string>',
account_number: '<string>',
routing_aba_number: '<string>',
country: '<string>',
state: '<string>',
postal_code: '<string>',
address: '<string>',
city: '<string>',
transit_number: '<string>',
institution_number: '<string>',
bsb_code: '<string>',
sort_code: '<string>',
iban: '<string>',
swift_bic_code: '<string>',
bank_name: '<string>',
bank_city: '<string>',
bank_address: '<string>'
},
is_disabled: true,
is_selected: true
})
};
fetch('https://api.firstpromoter.com/api/v2/affiliate/payout_methods', 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.firstpromoter.com/api/v2/affiliate/payout_methods",
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([
'details' => [
'paypal_email' => '<string>',
'wise_email' => '<string>',
'wallet_address' => '<string>',
'crypto_currency' => '<string>',
'account_holder_name' => '<string>',
'account_number' => '<string>',
'routing_aba_number' => '<string>',
'country' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'address' => '<string>',
'city' => '<string>',
'transit_number' => '<string>',
'institution_number' => '<string>',
'bsb_code' => '<string>',
'sort_code' => '<string>',
'iban' => '<string>',
'swift_bic_code' => '<string>',
'bank_name' => '<string>',
'bank_city' => '<string>',
'bank_address' => '<string>'
],
'is_disabled' => true,
'is_selected' => true
]),
CURLOPT_HTTPHEADER => [
"Account-ID: <account-id>",
"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://api.firstpromoter.com/api/v2/affiliate/payout_methods"
payload := strings.NewReader("{\n \"details\": {\n \"paypal_email\": \"<string>\",\n \"wise_email\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"crypto_currency\": \"<string>\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"routing_aba_number\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"transit_number\": \"<string>\",\n \"institution_number\": \"<string>\",\n \"bsb_code\": \"<string>\",\n \"sort_code\": \"<string>\",\n \"iban\": \"<string>\",\n \"swift_bic_code\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_city\": \"<string>\",\n \"bank_address\": \"<string>\"\n },\n \"is_disabled\": true,\n \"is_selected\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Account-ID", "<account-id>")
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://api.firstpromoter.com/api/v2/affiliate/payout_methods")
.header("Account-ID", "<account-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"details\": {\n \"paypal_email\": \"<string>\",\n \"wise_email\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"crypto_currency\": \"<string>\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"routing_aba_number\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"transit_number\": \"<string>\",\n \"institution_number\": \"<string>\",\n \"bsb_code\": \"<string>\",\n \"sort_code\": \"<string>\",\n \"iban\": \"<string>\",\n \"swift_bic_code\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_city\": \"<string>\",\n \"bank_address\": \"<string>\"\n },\n \"is_disabled\": true,\n \"is_selected\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firstpromoter.com/api/v2/affiliate/payout_methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Account-ID"] = '<account-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"details\": {\n \"paypal_email\": \"<string>\",\n \"wise_email\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"crypto_currency\": \"<string>\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"routing_aba_number\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"transit_number\": \"<string>\",\n \"institution_number\": \"<string>\",\n \"bsb_code\": \"<string>\",\n \"sort_code\": \"<string>\",\n \"iban\": \"<string>\",\n \"swift_bic_code\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_city\": \"<string>\",\n \"bank_address\": \"<string>\"\n },\n \"is_disabled\": true,\n \"is_selected\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"method": "paypal",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true,
"meta": {},
"is_selected": true,
"details": {
"paypal_email": "<string>",
"wise_email": "<string>",
"wallet_address": "<string>",
"crypto_currency": "<string>",
"bank_country": "AD",
"account_holder_name": "<string>",
"account_number": "<string>",
"routing_aba_number": "<string>",
"country": "<string>",
"state": "<string>",
"postal_code": "<string>",
"address": "<string>",
"city": "<string>",
"transit_number": "<string>",
"institution_number": "<string>",
"bsb_code": "<string>",
"sort_code": "<string>",
"iban": "<string>",
"swift_bic_code": "<string>",
"bank_name": "<string>",
"bank_city": "<string>",
"bank_address": "<string>"
},
"managed_payouts": true
}{
"message": "<string>",
"code": "<string>",
"errors": {}
}{}{
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"message": "<string>",
"code": "<string>",
"errors": {}
}Affiliate Payout Methods
Create a payout method
POST
/
payout_methods
Create a payout method
curl --request POST \
--url https://api.firstpromoter.com/api/v2/affiliate/payout_methods \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"details": {
"paypal_email": "<string>",
"wise_email": "<string>",
"wallet_address": "<string>",
"crypto_currency": "<string>",
"account_holder_name": "<string>",
"account_number": "<string>",
"routing_aba_number": "<string>",
"country": "<string>",
"state": "<string>",
"postal_code": "<string>",
"address": "<string>",
"city": "<string>",
"transit_number": "<string>",
"institution_number": "<string>",
"bsb_code": "<string>",
"sort_code": "<string>",
"iban": "<string>",
"swift_bic_code": "<string>",
"bank_name": "<string>",
"bank_city": "<string>",
"bank_address": "<string>"
},
"is_disabled": true,
"is_selected": true
}
'import requests
url = "https://api.firstpromoter.com/api/v2/affiliate/payout_methods"
payload = {
"details": {
"paypal_email": "<string>",
"wise_email": "<string>",
"wallet_address": "<string>",
"crypto_currency": "<string>",
"account_holder_name": "<string>",
"account_number": "<string>",
"routing_aba_number": "<string>",
"country": "<string>",
"state": "<string>",
"postal_code": "<string>",
"address": "<string>",
"city": "<string>",
"transit_number": "<string>",
"institution_number": "<string>",
"bsb_code": "<string>",
"sort_code": "<string>",
"iban": "<string>",
"swift_bic_code": "<string>",
"bank_name": "<string>",
"bank_city": "<string>",
"bank_address": "<string>"
},
"is_disabled": True,
"is_selected": True
}
headers = {
"Account-ID": "<account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Account-ID': '<account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
details: {
paypal_email: '<string>',
wise_email: '<string>',
wallet_address: '<string>',
crypto_currency: '<string>',
account_holder_name: '<string>',
account_number: '<string>',
routing_aba_number: '<string>',
country: '<string>',
state: '<string>',
postal_code: '<string>',
address: '<string>',
city: '<string>',
transit_number: '<string>',
institution_number: '<string>',
bsb_code: '<string>',
sort_code: '<string>',
iban: '<string>',
swift_bic_code: '<string>',
bank_name: '<string>',
bank_city: '<string>',
bank_address: '<string>'
},
is_disabled: true,
is_selected: true
})
};
fetch('https://api.firstpromoter.com/api/v2/affiliate/payout_methods', 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.firstpromoter.com/api/v2/affiliate/payout_methods",
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([
'details' => [
'paypal_email' => '<string>',
'wise_email' => '<string>',
'wallet_address' => '<string>',
'crypto_currency' => '<string>',
'account_holder_name' => '<string>',
'account_number' => '<string>',
'routing_aba_number' => '<string>',
'country' => '<string>',
'state' => '<string>',
'postal_code' => '<string>',
'address' => '<string>',
'city' => '<string>',
'transit_number' => '<string>',
'institution_number' => '<string>',
'bsb_code' => '<string>',
'sort_code' => '<string>',
'iban' => '<string>',
'swift_bic_code' => '<string>',
'bank_name' => '<string>',
'bank_city' => '<string>',
'bank_address' => '<string>'
],
'is_disabled' => true,
'is_selected' => true
]),
CURLOPT_HTTPHEADER => [
"Account-ID: <account-id>",
"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://api.firstpromoter.com/api/v2/affiliate/payout_methods"
payload := strings.NewReader("{\n \"details\": {\n \"paypal_email\": \"<string>\",\n \"wise_email\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"crypto_currency\": \"<string>\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"routing_aba_number\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"transit_number\": \"<string>\",\n \"institution_number\": \"<string>\",\n \"bsb_code\": \"<string>\",\n \"sort_code\": \"<string>\",\n \"iban\": \"<string>\",\n \"swift_bic_code\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_city\": \"<string>\",\n \"bank_address\": \"<string>\"\n },\n \"is_disabled\": true,\n \"is_selected\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Account-ID", "<account-id>")
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://api.firstpromoter.com/api/v2/affiliate/payout_methods")
.header("Account-ID", "<account-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"details\": {\n \"paypal_email\": \"<string>\",\n \"wise_email\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"crypto_currency\": \"<string>\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"routing_aba_number\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"transit_number\": \"<string>\",\n \"institution_number\": \"<string>\",\n \"bsb_code\": \"<string>\",\n \"sort_code\": \"<string>\",\n \"iban\": \"<string>\",\n \"swift_bic_code\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_city\": \"<string>\",\n \"bank_address\": \"<string>\"\n },\n \"is_disabled\": true,\n \"is_selected\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firstpromoter.com/api/v2/affiliate/payout_methods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Account-ID"] = '<account-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"details\": {\n \"paypal_email\": \"<string>\",\n \"wise_email\": \"<string>\",\n \"wallet_address\": \"<string>\",\n \"crypto_currency\": \"<string>\",\n \"account_holder_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"routing_aba_number\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"address\": \"<string>\",\n \"city\": \"<string>\",\n \"transit_number\": \"<string>\",\n \"institution_number\": \"<string>\",\n \"bsb_code\": \"<string>\",\n \"sort_code\": \"<string>\",\n \"iban\": \"<string>\",\n \"swift_bic_code\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_city\": \"<string>\",\n \"bank_address\": \"<string>\"\n },\n \"is_disabled\": true,\n \"is_selected\": true\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"method": "paypal",
"date_added": "2023-11-07T05:31:56Z",
"is_disabled": true,
"meta": {},
"is_selected": true,
"details": {
"paypal_email": "<string>",
"wise_email": "<string>",
"wallet_address": "<string>",
"crypto_currency": "<string>",
"bank_country": "AD",
"account_holder_name": "<string>",
"account_number": "<string>",
"routing_aba_number": "<string>",
"country": "<string>",
"state": "<string>",
"postal_code": "<string>",
"address": "<string>",
"city": "<string>",
"transit_number": "<string>",
"institution_number": "<string>",
"bsb_code": "<string>",
"sort_code": "<string>",
"iban": "<string>",
"swift_bic_code": "<string>",
"bank_name": "<string>",
"bank_city": "<string>",
"bank_address": "<string>"
},
"managed_payouts": true
}{
"message": "<string>",
"code": "<string>",
"errors": {}
}{}{
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"message": "<string>",
"code": "<string>",
"errors": {}
}Authorizations
Access token passed as a Bearer token in the Authorization header
Headers
Account identifier that specifies which account is making the request
Example:
"acc_123456"
Body
application/json
⌘I