Generate payout method schemas
curl --request GET \
--url https://api.withacclaim.com/v1/payout_method_schemas \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.withacclaim.com/v1/payout_method_schemas"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.withacclaim.com/v1/payout_method_schemas', 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.withacclaim.com/v1/payout_method_schemas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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.withacclaim.com/v1/payout_method_schemas"
req, _ := http.NewRequest("GET", url, nil)
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.withacclaim.com/v1/payout_method_schemas")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withacclaim.com/v1/payout_method_schemas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"schemas": [
{
"payout_method_type": "UnitedStatesAch",
"description": "<string>",
"currency": "<string>",
"country": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"placeholder": "<string>",
"maxLength": 123,
"minLength": 123,
"pattern": "<string>",
"options": "<array>",
"helpText": "<string>",
"entityTypeConstraint": "<string>"
}
]
}
]
}{
"error": {
"code": "invalid_request",
"message": "Missing required field: amount",
"details": {},
"request_id": "req_7lYt4o2x"
}
}Payout methods
Generate payout method schemas
Returns available payout method types and their field schemas (required fields, types, validation) for the given country. Use this to build dynamic create forms for payout methods.
GET
/
payout_method_schemas
Generate payout method schemas
curl --request GET \
--url https://api.withacclaim.com/v1/payout_method_schemas \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.withacclaim.com/v1/payout_method_schemas"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.withacclaim.com/v1/payout_method_schemas', 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.withacclaim.com/v1/payout_method_schemas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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.withacclaim.com/v1/payout_method_schemas"
req, _ := http.NewRequest("GET", url, nil)
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.withacclaim.com/v1/payout_method_schemas")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.withacclaim.com/v1/payout_method_schemas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"schemas": [
{
"payout_method_type": "UnitedStatesAch",
"description": "<string>",
"currency": "<string>",
"country": "<string>",
"fields": [
{
"name": "<string>",
"label": "<string>",
"type": "text",
"required": true,
"placeholder": "<string>",
"maxLength": 123,
"minLength": 123,
"pattern": "<string>",
"options": "<array>",
"helpText": "<string>",
"entityTypeConstraint": "<string>"
}
]
}
]
}{
"error": {
"code": "invalid_request",
"message": "Missing required field: amount",
"details": {},
"request_id": "req_7lYt4o2x"
}
}