Get all payout methods
curl --request GET \
--url https://api.firstpromoter.com/api/v2/affiliate/payout_methods \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.firstpromoter.com/api/v2/affiliate/payout_methods"
headers = {
"Account-ID": "<account-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Account-ID': '<account-id>', Authorization: 'Bearer <token>'}
};
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 => "GET",
CURLOPT_HTTPHEADER => [
"Account-ID: <account-id>",
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.firstpromoter.com/api/v2/affiliate/payout_methods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Account-ID", "<account-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.firstpromoter.com/api/v2/affiliate/payout_methods")
.header("Account-ID", "<account-id>")
.header("Authorization", "Bearer <token>")
.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::Get.new(url)
request["Account-ID"] = '<account-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"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
}
],
"meta": {
"selected_payout_methods": [
"<string>"
],
"payout_method_options": {}
}
}{}{
"message": "<string>",
"code": "<string>",
"errors": {}
}Affiliate Payout Methods
Get all payout methods
GET
/
payout_methods
Get all payout methods
curl --request GET \
--url https://api.firstpromoter.com/api/v2/affiliate/payout_methods \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.firstpromoter.com/api/v2/affiliate/payout_methods"
headers = {
"Account-ID": "<account-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Account-ID': '<account-id>', Authorization: 'Bearer <token>'}
};
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 => "GET",
CURLOPT_HTTPHEADER => [
"Account-ID: <account-id>",
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.firstpromoter.com/api/v2/affiliate/payout_methods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Account-ID", "<account-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.firstpromoter.com/api/v2/affiliate/payout_methods")
.header("Account-ID", "<account-id>")
.header("Authorization", "Bearer <token>")
.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::Get.new(url)
request["Account-ID"] = '<account-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"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
}
],
"meta": {
"selected_payout_methods": [
"<string>"
],
"payout_method_options": {}
}
}{}{
"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"
⌘I