curl --request POST \
--url https://sandbox-api.axisfi.net/api/fx/payout-fees \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"payout_details": {
"account_type": "BANK",
"country_code": "CN",
"payment_method": "LOCAL",
"network": "RTGS"
},
"source_amount": 1000,
"target_amount": 990
}
'import requests
url = "https://sandbox-api.axisfi.net/api/fx/payout-fees"
payload = {
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"payout_details": {
"account_type": "BANK",
"country_code": "CN",
"payment_method": "LOCAL",
"network": "RTGS"
},
"source_amount": 1000,
"target_amount": 990
}
headers = {
"Api-Version": "<api-version>",
"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: {
'Api-Version': '<api-version>',
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
quote_id: 'quote_f91fafe4b4fb463c8d0b04a90fece464',
payout_details: {
account_type: 'BANK',
country_code: 'CN',
payment_method: 'LOCAL',
network: 'RTGS'
},
source_amount: 1000,
target_amount: 990
})
};
fetch('https://sandbox-api.axisfi.net/api/fx/payout-fees', 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://sandbox-api.axisfi.net/api/fx/payout-fees",
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([
'quote_id' => 'quote_f91fafe4b4fb463c8d0b04a90fece464',
'payout_details' => [
'account_type' => 'BANK',
'country_code' => 'CN',
'payment_method' => 'LOCAL',
'network' => 'RTGS'
],
'source_amount' => 1000,
'target_amount' => 990
]),
CURLOPT_HTTPHEADER => [
"Api-Version: <api-version>",
"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 := "https://sandbox-api.axisfi.net/api/fx/payout-fees"
payload := strings.NewReader("{\n \"quote_id\": \"quote_f91fafe4b4fb463c8d0b04a90fece464\",\n \"payout_details\": {\n \"account_type\": \"BANK\",\n \"country_code\": \"CN\",\n \"payment_method\": \"LOCAL\",\n \"network\": \"RTGS\"\n },\n \"source_amount\": 1000,\n \"target_amount\": 990\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
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("https://sandbox-api.axisfi.net/api/fx/payout-fees")
.header("Api-Version", "<api-version>")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"quote_f91fafe4b4fb463c8d0b04a90fece464\",\n \"payout_details\": {\n \"account_type\": \"BANK\",\n \"country_code\": \"CN\",\n \"payment_method\": \"LOCAL\",\n \"network\": \"RTGS\"\n },\n \"source_amount\": 1000,\n \"target_amount\": 990\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.axisfi.net/api/fx/payout-fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quote_id\": \"quote_f91fafe4b4fb463c8d0b04a90fece464\",\n \"payout_details\": {\n \"account_type\": \"BANK\",\n \"country_code\": \"CN\",\n \"payment_method\": \"LOCAL\",\n \"network\": \"RTGS\"\n },\n \"source_amount\": 1000,\n \"target_amount\": 990\n}"
response = http.request(request)
puts response.read_body{
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"source_amount": 1000,
"target_amount": 990,
"exchange_rate": 1.005,
"exchange_fee": 2.5,
"payout_fee": 5,
"payout_fee_currency": "USDT",
"valid_to": "2023-11-07T05:31:56Z",
"remaining_seconds": 180
}{
"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>"
}
]
}Estimate Payout Fee
Calculates source amount, target amount and payout fee using an active quote and payout routing details. Exactly one of source_amount and target_amount must be provided. The quote remains available for transfer creation.
curl --request POST \
--url https://sandbox-api.axisfi.net/api/fx/payout-fees \
--header 'Api-Version: <api-version>' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"payout_details": {
"account_type": "BANK",
"country_code": "CN",
"payment_method": "LOCAL",
"network": "RTGS"
},
"source_amount": 1000,
"target_amount": 990
}
'import requests
url = "https://sandbox-api.axisfi.net/api/fx/payout-fees"
payload = {
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"payout_details": {
"account_type": "BANK",
"country_code": "CN",
"payment_method": "LOCAL",
"network": "RTGS"
},
"source_amount": 1000,
"target_amount": 990
}
headers = {
"Api-Version": "<api-version>",
"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: {
'Api-Version': '<api-version>',
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
quote_id: 'quote_f91fafe4b4fb463c8d0b04a90fece464',
payout_details: {
account_type: 'BANK',
country_code: 'CN',
payment_method: 'LOCAL',
network: 'RTGS'
},
source_amount: 1000,
target_amount: 990
})
};
fetch('https://sandbox-api.axisfi.net/api/fx/payout-fees', 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://sandbox-api.axisfi.net/api/fx/payout-fees",
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([
'quote_id' => 'quote_f91fafe4b4fb463c8d0b04a90fece464',
'payout_details' => [
'account_type' => 'BANK',
'country_code' => 'CN',
'payment_method' => 'LOCAL',
'network' => 'RTGS'
],
'source_amount' => 1000,
'target_amount' => 990
]),
CURLOPT_HTTPHEADER => [
"Api-Version: <api-version>",
"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 := "https://sandbox-api.axisfi.net/api/fx/payout-fees"
payload := strings.NewReader("{\n \"quote_id\": \"quote_f91fafe4b4fb463c8d0b04a90fece464\",\n \"payout_details\": {\n \"account_type\": \"BANK\",\n \"country_code\": \"CN\",\n \"payment_method\": \"LOCAL\",\n \"network\": \"RTGS\"\n },\n \"source_amount\": 1000,\n \"target_amount\": 990\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Api-Version", "<api-version>")
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("https://sandbox-api.axisfi.net/api/fx/payout-fees")
.header("Api-Version", "<api-version>")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quote_id\": \"quote_f91fafe4b4fb463c8d0b04a90fece464\",\n \"payout_details\": {\n \"account_type\": \"BANK\",\n \"country_code\": \"CN\",\n \"payment_method\": \"LOCAL\",\n \"network\": \"RTGS\"\n },\n \"source_amount\": 1000,\n \"target_amount\": 990\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.axisfi.net/api/fx/payout-fees")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Api-Version"] = '<api-version>'
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quote_id\": \"quote_f91fafe4b4fb463c8d0b04a90fece464\",\n \"payout_details\": {\n \"account_type\": \"BANK\",\n \"country_code\": \"CN\",\n \"payment_method\": \"LOCAL\",\n \"network\": \"RTGS\"\n },\n \"source_amount\": 1000,\n \"target_amount\": 990\n}"
response = http.request(request)
puts response.read_body{
"quote_id": "quote_f91fafe4b4fb463c8d0b04a90fece464",
"source_amount": 1000,
"target_amount": 990,
"exchange_rate": 1.005,
"exchange_fee": 2.5,
"payout_fee": 5,
"payout_fee_currency": "USDT",
"valid_to": "2023-11-07T05:31:56Z",
"remaining_seconds": 180
}{
"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.
Headers
AxisFi API contract version
2024-12-01 Body
Payout fee estimation request. Provide exactly one of source_amount and target_amount.
Quote ID
64"quote_f91fafe4b4fb463c8d0b04a90fece464"
Payout routing details used to select the payout fee
Show child attributes
Show child attributes
Source currency amount. Provide either source_amount or target_amount, but not both.
0.01 < x < 1000000001000
Target currency amount. Provide either source_amount or target_amount, but not both.
0.01 < x < 100000000990
Response
Operation Successful
Payout fee estimation response
Quote ID
"quote_f91fafe4b4fb463c8d0b04a90fece464"
Total amount deducted in the source currency
1000
Net amount received in the target currency
990
Customer exchange rate
1.005
Exchange fee in the source currency
2.5
Payout fee in the source currency
5
Currency of payout_fee
"USDT"
Quote expiration time
Remaining seconds before expiration
180

