curl --request POST \
--url http://127.0.0.1:8083/api/recipients/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"partner_recipient_id": "<string>",
"business_name": "<string>",
"country_code": "CN",
"payment_details": {
"account_type": "<string>",
"bank_name": "JPMorgan Chase",
"network": "SWIFT",
"account_name": "<string>",
"account_number": "<string>",
"swift_code": "<string>",
"account_currency": "USD",
"country_code": "CN",
"payment_method": "INTERNATIONAL_WIRE",
"local_bank_code": "<string>"
},
"website": "https://www.example.com",
"address_info": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"state": "<string>",
"post_code": "<string>"
},
"file_id_list": [
"<string>"
]
}
'import requests
url = "http://127.0.0.1:8083/api/recipients/create"
payload = {
"partner_recipient_id": "<string>",
"business_name": "<string>",
"country_code": "CN",
"payment_details": {
"account_type": "<string>",
"bank_name": "JPMorgan Chase",
"network": "SWIFT",
"account_name": "<string>",
"account_number": "<string>",
"swift_code": "<string>",
"account_currency": "USD",
"country_code": "CN",
"payment_method": "INTERNATIONAL_WIRE",
"local_bank_code": "<string>"
},
"website": "https://www.example.com",
"address_info": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"state": "<string>",
"post_code": "<string>"
},
"file_id_list": ["<string>"]
}
headers = {
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
partner_recipient_id: '<string>',
business_name: '<string>',
country_code: 'CN',
payment_details: {
account_type: '<string>',
bank_name: 'JPMorgan Chase',
network: 'SWIFT',
account_name: '<string>',
account_number: '<string>',
swift_code: '<string>',
account_currency: 'USD',
country_code: 'CN',
payment_method: 'INTERNATIONAL_WIRE',
local_bank_code: '<string>'
},
website: 'https://www.example.com',
address_info: {
address_line_1: '<string>',
address_line_2: '<string>',
city: '<string>',
state: '<string>',
post_code: '<string>'
},
file_id_list: ['<string>']
})
};
fetch('http://127.0.0.1:8083/api/recipients/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8083",
CURLOPT_URL => "http://127.0.0.1:8083/api/recipients/create",
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([
'partner_recipient_id' => '<string>',
'business_name' => '<string>',
'country_code' => 'CN',
'payment_details' => [
'account_type' => '<string>',
'bank_name' => 'JPMorgan Chase',
'network' => 'SWIFT',
'account_name' => '<string>',
'account_number' => '<string>',
'swift_code' => '<string>',
'account_currency' => 'USD',
'country_code' => 'CN',
'payment_method' => 'INTERNATIONAL_WIRE',
'local_bank_code' => '<string>'
],
'website' => 'https://www.example.com',
'address_info' => [
'address_line_1' => '<string>',
'address_line_2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'post_code' => '<string>'
],
'file_id_list' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <api-key>"
],
]);
$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 := "http://127.0.0.1:8083/api/recipients/create"
payload := strings.NewReader("{\n \"partner_recipient_id\": \"<string>\",\n \"business_name\": \"<string>\",\n \"country_code\": \"CN\",\n \"payment_details\": {\n \"account_type\": \"<string>\",\n \"bank_name\": \"JPMorgan Chase\",\n \"network\": \"SWIFT\",\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"swift_code\": \"<string>\",\n \"account_currency\": \"USD\",\n \"country_code\": \"CN\",\n \"payment_method\": \"INTERNATIONAL_WIRE\",\n \"local_bank_code\": \"<string>\"\n },\n \"website\": \"https://www.example.com\",\n \"address_info\": {\n \"address_line_1\": \"<string>\",\n \"address_line_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"post_code\": \"<string>\"\n },\n \"file_id_list\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
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("http://127.0.0.1:8083/api/recipients/create")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partner_recipient_id\": \"<string>\",\n \"business_name\": \"<string>\",\n \"country_code\": \"CN\",\n \"payment_details\": {\n \"account_type\": \"<string>\",\n \"bank_name\": \"JPMorgan Chase\",\n \"network\": \"SWIFT\",\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"swift_code\": \"<string>\",\n \"account_currency\": \"USD\",\n \"country_code\": \"CN\",\n \"payment_method\": \"INTERNATIONAL_WIRE\",\n \"local_bank_code\": \"<string>\"\n },\n \"website\": \"https://www.example.com\",\n \"address_info\": {\n \"address_line_1\": \"<string>\",\n \"address_line_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"post_code\": \"<string>\"\n },\n \"file_id_list\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:8083/api/recipients/create")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_recipient_id\": \"<string>\",\n \"business_name\": \"<string>\",\n \"country_code\": \"CN\",\n \"payment_details\": {\n \"account_type\": \"<string>\",\n \"bank_name\": \"JPMorgan Chase\",\n \"network\": \"SWIFT\",\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"swift_code\": \"<string>\",\n \"account_currency\": \"USD\",\n \"country_code\": \"CN\",\n \"payment_method\": \"INTERNATIONAL_WIRE\",\n \"local_bank_code\": \"<string>\"\n },\n \"website\": \"https://www.example.com\",\n \"address_info\": {\n \"address_line_1\": \"<string>\",\n \"address_line_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"post_code\": \"<string>\"\n },\n \"file_id_list\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"partner_recipient_id": "<string>",
"business_name": "<string>",
"country_code": "CN",
"recipient_id": "rcp_ff624a5b02d44c98af91698e0bc69118",
"status": "active",
"website": "https://www.example.com",
"created_at": "2023-11-07T05:31:56Z",
"address_info": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"state": "<string>",
"post_code": "<string>"
},
"payment_details": {
"bank_name": "JPMorgan Chase",
"network": "SWIFT",
"account_name": "<string>",
"account_number": "<string>",
"swift_code": "<string>",
"account_currency": "USD",
"country_code": "CN",
"account_type": "<string>",
"payment_method": "INTERNATIONAL_WIRE",
"local_bank_code": "<string>"
},
"file_id_list": [
"<string>"
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Create Recipient
Create a new recipient to be stored on the AxisFI platform. The recipient account can either be a bank account or a crypto wallet.
curl --request POST \
--url http://127.0.0.1:8083/api/recipients/create \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"partner_recipient_id": "<string>",
"business_name": "<string>",
"country_code": "CN",
"payment_details": {
"account_type": "<string>",
"bank_name": "JPMorgan Chase",
"network": "SWIFT",
"account_name": "<string>",
"account_number": "<string>",
"swift_code": "<string>",
"account_currency": "USD",
"country_code": "CN",
"payment_method": "INTERNATIONAL_WIRE",
"local_bank_code": "<string>"
},
"website": "https://www.example.com",
"address_info": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"state": "<string>",
"post_code": "<string>"
},
"file_id_list": [
"<string>"
]
}
'import requests
url = "http://127.0.0.1:8083/api/recipients/create"
payload = {
"partner_recipient_id": "<string>",
"business_name": "<string>",
"country_code": "CN",
"payment_details": {
"account_type": "<string>",
"bank_name": "JPMorgan Chase",
"network": "SWIFT",
"account_name": "<string>",
"account_number": "<string>",
"swift_code": "<string>",
"account_currency": "USD",
"country_code": "CN",
"payment_method": "INTERNATIONAL_WIRE",
"local_bank_code": "<string>"
},
"website": "https://www.example.com",
"address_info": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"state": "<string>",
"post_code": "<string>"
},
"file_id_list": ["<string>"]
}
headers = {
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
partner_recipient_id: '<string>',
business_name: '<string>',
country_code: 'CN',
payment_details: {
account_type: '<string>',
bank_name: 'JPMorgan Chase',
network: 'SWIFT',
account_name: '<string>',
account_number: '<string>',
swift_code: '<string>',
account_currency: 'USD',
country_code: 'CN',
payment_method: 'INTERNATIONAL_WIRE',
local_bank_code: '<string>'
},
website: 'https://www.example.com',
address_info: {
address_line_1: '<string>',
address_line_2: '<string>',
city: '<string>',
state: '<string>',
post_code: '<string>'
},
file_id_list: ['<string>']
})
};
fetch('http://127.0.0.1:8083/api/recipients/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8083",
CURLOPT_URL => "http://127.0.0.1:8083/api/recipients/create",
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([
'partner_recipient_id' => '<string>',
'business_name' => '<string>',
'country_code' => 'CN',
'payment_details' => [
'account_type' => '<string>',
'bank_name' => 'JPMorgan Chase',
'network' => 'SWIFT',
'account_name' => '<string>',
'account_number' => '<string>',
'swift_code' => '<string>',
'account_currency' => 'USD',
'country_code' => 'CN',
'payment_method' => 'INTERNATIONAL_WIRE',
'local_bank_code' => '<string>'
],
'website' => 'https://www.example.com',
'address_info' => [
'address_line_1' => '<string>',
'address_line_2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'post_code' => '<string>'
],
'file_id_list' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <api-key>"
],
]);
$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 := "http://127.0.0.1:8083/api/recipients/create"
payload := strings.NewReader("{\n \"partner_recipient_id\": \"<string>\",\n \"business_name\": \"<string>\",\n \"country_code\": \"CN\",\n \"payment_details\": {\n \"account_type\": \"<string>\",\n \"bank_name\": \"JPMorgan Chase\",\n \"network\": \"SWIFT\",\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"swift_code\": \"<string>\",\n \"account_currency\": \"USD\",\n \"country_code\": \"CN\",\n \"payment_method\": \"INTERNATIONAL_WIRE\",\n \"local_bank_code\": \"<string>\"\n },\n \"website\": \"https://www.example.com\",\n \"address_info\": {\n \"address_line_1\": \"<string>\",\n \"address_line_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"post_code\": \"<string>\"\n },\n \"file_id_list\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
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("http://127.0.0.1:8083/api/recipients/create")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"partner_recipient_id\": \"<string>\",\n \"business_name\": \"<string>\",\n \"country_code\": \"CN\",\n \"payment_details\": {\n \"account_type\": \"<string>\",\n \"bank_name\": \"JPMorgan Chase\",\n \"network\": \"SWIFT\",\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"swift_code\": \"<string>\",\n \"account_currency\": \"USD\",\n \"country_code\": \"CN\",\n \"payment_method\": \"INTERNATIONAL_WIRE\",\n \"local_bank_code\": \"<string>\"\n },\n \"website\": \"https://www.example.com\",\n \"address_info\": {\n \"address_line_1\": \"<string>\",\n \"address_line_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"post_code\": \"<string>\"\n },\n \"file_id_list\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://127.0.0.1:8083/api/recipients/create")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_recipient_id\": \"<string>\",\n \"business_name\": \"<string>\",\n \"country_code\": \"CN\",\n \"payment_details\": {\n \"account_type\": \"<string>\",\n \"bank_name\": \"JPMorgan Chase\",\n \"network\": \"SWIFT\",\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"swift_code\": \"<string>\",\n \"account_currency\": \"USD\",\n \"country_code\": \"CN\",\n \"payment_method\": \"INTERNATIONAL_WIRE\",\n \"local_bank_code\": \"<string>\"\n },\n \"website\": \"https://www.example.com\",\n \"address_info\": {\n \"address_line_1\": \"<string>\",\n \"address_line_2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"post_code\": \"<string>\"\n },\n \"file_id_list\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"partner_recipient_id": "<string>",
"business_name": "<string>",
"country_code": "CN",
"recipient_id": "rcp_ff624a5b02d44c98af91698e0bc69118",
"status": "active",
"website": "https://www.example.com",
"created_at": "2023-11-07T05:31:56Z",
"address_info": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"state": "<string>",
"post_code": "<string>"
},
"payment_details": {
"bank_name": "JPMorgan Chase",
"network": "SWIFT",
"account_name": "<string>",
"account_number": "<string>",
"swift_code": "<string>",
"account_currency": "USD",
"country_code": "CN",
"account_type": "<string>",
"payment_method": "INTERNATIONAL_WIRE",
"local_bank_code": "<string>"
},
"file_id_list": [
"<string>"
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "Invalid organizationId",
"code": "ORG_ID_INVALID"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Authorizations
Includes an API key in the HTTP headers to authenticate the client.
Includes an API secret in the HTTP headers to authenticate the client.
Body
Partner Assigned Recipient ID
20 - 64Business Name
2 - 128Business Type
Business, Individual ^(Business|Individual)$Country Code
CN ^(CN)$"CN"
Payment details
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Website
225"https://www.example.com"
Address Information
Show child attributes
Show child attributes
List of file IDs
10List of file IDs
Response
Operation Successful
Partner Assigned Recipient ID
20 - 64Business Name
2 - 128Business Type
Business, Individual ^(Business|Individual)$Country Code
CN ^(CN)$"CN"
Unique Recipient ID
"rcp_ff624a5b02d44c98af91698e0bc69118"
Status
pending, active, rejected, suspended "active"
Website
225"https://www.example.com"
Address Information
Show child attributes
Show child attributes
Payment details
- Option 1
- Option 2
Show child attributes
Show child attributes
List of file IDs
10List of file IDs

