cURL
curl -X POST https://api.relayer.fi/v1/payout/accounts/execute \
-H "Authorization: ApiKey $RELAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "qte_jkl012",
"beneficiaryId": "ben_abc123"
}'const response = await fetch("https://api.relayer.fi/v1/payout/accounts/execute", {
method: "POST",
headers: {
Authorization: `ApiKey ${process.env.RELAYER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ quoteId, beneficiaryId }),
});
const { data } = await response.json();
// data.reference — payment reference. Track via:
// GET /payout/accounts/{reference}/status or GET /orders/{orderId}
// Settlement typically completes in 1-2 business days.import requests
url = "https://testnet.relayer.fi/v1/payout/accounts/execute"
payload = {
"source_amount": "10000.00",
"source_currency": "mxn",
"destination_currency": "usd",
"beneficiary_account_id": "b5ed595d-d724-4826-9e6c-3b8104fbe355"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
source_amount: '10000.00',
source_currency: 'mxn',
destination_currency: 'usd',
beneficiary_account_id: 'b5ed595d-d724-4826-9e6c-3b8104fbe355'
})
};
fetch('https://testnet.relayer.fi/v1/payout/accounts/execute', 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://testnet.relayer.fi/v1/payout/accounts/execute",
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([
'source_amount' => '10000.00',
'source_currency' => 'mxn',
'destination_currency' => 'usd',
'beneficiary_account_id' => 'b5ed595d-d724-4826-9e6c-3b8104fbe355'
]),
CURLOPT_HTTPHEADER => [
"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://testnet.relayer.fi/v1/payout/accounts/execute"
payload := strings.NewReader("{\n \"source_amount\": \"10000.00\",\n \"source_currency\": \"mxn\",\n \"destination_currency\": \"usd\",\n \"beneficiary_account_id\": \"b5ed595d-d724-4826-9e6c-3b8104fbe355\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://testnet.relayer.fi/v1/payout/accounts/execute")
.header("Content-Type", "application/json")
.body("{\n \"source_amount\": \"10000.00\",\n \"source_currency\": \"mxn\",\n \"destination_currency\": \"usd\",\n \"beneficiary_account_id\": \"b5ed595d-d724-4826-9e6c-3b8104fbe355\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.relayer.fi/v1/payout/accounts/execute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_amount\": \"10000.00\",\n \"source_currency\": \"mxn\",\n \"destination_currency\": \"usd\",\n \"beneficiary_account_id\": \"b5ed595d-d724-4826-9e6c-3b8104fbe355\"\n}"
response = http.request(request)
puts response.read_bodyGlobal Payout
Execute a fiat payment
Creates a pending fiat payment record. Automatically provisions a liquidation address and virtual account if they do not exist for this beneficiary/currency pair.
POST
/
payout
/
accounts
/
execute
cURL
curl -X POST https://api.relayer.fi/v1/payout/accounts/execute \
-H "Authorization: ApiKey $RELAYER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "qte_jkl012",
"beneficiaryId": "ben_abc123"
}'const response = await fetch("https://api.relayer.fi/v1/payout/accounts/execute", {
method: "POST",
headers: {
Authorization: `ApiKey ${process.env.RELAYER_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ quoteId, beneficiaryId }),
});
const { data } = await response.json();
// data.reference — payment reference. Track via:
// GET /payout/accounts/{reference}/status or GET /orders/{orderId}
// Settlement typically completes in 1-2 business days.import requests
url = "https://testnet.relayer.fi/v1/payout/accounts/execute"
payload = {
"source_amount": "10000.00",
"source_currency": "mxn",
"destination_currency": "usd",
"beneficiary_account_id": "b5ed595d-d724-4826-9e6c-3b8104fbe355"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
source_amount: '10000.00',
source_currency: 'mxn',
destination_currency: 'usd',
beneficiary_account_id: 'b5ed595d-d724-4826-9e6c-3b8104fbe355'
})
};
fetch('https://testnet.relayer.fi/v1/payout/accounts/execute', 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://testnet.relayer.fi/v1/payout/accounts/execute",
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([
'source_amount' => '10000.00',
'source_currency' => 'mxn',
'destination_currency' => 'usd',
'beneficiary_account_id' => 'b5ed595d-d724-4826-9e6c-3b8104fbe355'
]),
CURLOPT_HTTPHEADER => [
"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://testnet.relayer.fi/v1/payout/accounts/execute"
payload := strings.NewReader("{\n \"source_amount\": \"10000.00\",\n \"source_currency\": \"mxn\",\n \"destination_currency\": \"usd\",\n \"beneficiary_account_id\": \"b5ed595d-d724-4826-9e6c-3b8104fbe355\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://testnet.relayer.fi/v1/payout/accounts/execute")
.header("Content-Type", "application/json")
.body("{\n \"source_amount\": \"10000.00\",\n \"source_currency\": \"mxn\",\n \"destination_currency\": \"usd\",\n \"beneficiary_account_id\": \"b5ed595d-d724-4826-9e6c-3b8104fbe355\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://testnet.relayer.fi/v1/payout/accounts/execute")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"source_amount\": \"10000.00\",\n \"source_currency\": \"mxn\",\n \"destination_currency\": \"usd\",\n \"beneficiary_account_id\": \"b5ed595d-d724-4826-9e6c-3b8104fbe355\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Amount in source currency as a decimal string
Example:
"10000.00"
Source currency code
Available options:
usd, eur, mxn, brl, gbp Example:
"mxn"
Destination currency code
Available options:
usd, eur, mxn, brl, gbp Example:
"usd"
UUID of the beneficiary bank account receiving the funds
Example:
"b5ed595d-d724-4826-9e6c-3b8104fbe355"
Response
Payment created with deposit instructions for the source currency
⌘I