USD Transfer
curl --request POST \
--url https://sandbox.sturdytechnologies.com/v3/payments/usd/direct \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"account_number": "<string>",
"amount": 123,
"reference": "<string>",
"recipient_email": "<string>",
"routing_number": "<string>",
"description": "<string>",
"recipient_name": "<string>"
}
'import requests
url = "https://sandbox.sturdytechnologies.com/v3/payments/usd/direct"
payload = {
"account_id": "<string>",
"account_number": "<string>",
"amount": 123,
"reference": "<string>",
"recipient_email": "<string>",
"routing_number": "<string>",
"description": "<string>",
"recipient_name": "<string>"
}
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({
account_id: '<string>',
account_number: '<string>',
amount: 123,
reference: '<string>',
recipient_email: '<string>',
routing_number: '<string>',
description: '<string>',
recipient_name: '<string>'
})
};
fetch('https://sandbox.sturdytechnologies.com/v3/payments/usd/direct', 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.sturdytechnologies.com/v3/payments/usd/direct",
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([
'account_id' => '<string>',
'account_number' => '<string>',
'amount' => 123,
'reference' => '<string>',
'recipient_email' => '<string>',
'routing_number' => '<string>',
'description' => '<string>',
'recipient_name' => '<string>'
]),
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://sandbox.sturdytechnologies.com/v3/payments/usd/direct"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"account_number\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"recipient_email\": \"<string>\",\n \"routing_number\": \"<string>\",\n \"description\": \"<string>\",\n \"recipient_name\": \"<string>\"\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://sandbox.sturdytechnologies.com/v3/payments/usd/direct")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"account_number\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"recipient_email\": \"<string>\",\n \"routing_number\": \"<string>\",\n \"description\": \"<string>\",\n \"recipient_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.sturdytechnologies.com/v3/payments/usd/direct")
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 \"account_id\": \"<string>\",\n \"account_number\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"recipient_email\": \"<string>\",\n \"routing_number\": \"<string>\",\n \"description\": \"<string>\",\n \"recipient_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"account_number": "<string>",
"account_type": "CHECKING",
"amount": 123,
"description": "<string>",
"reference": "<string>",
"recipient_email": "<string>",
"recipient_name": "<string>",
"routing_number": "<string>",
"transaction_date": "2023-10-01T12:34:56Z",
"transaction_id": "txn_12345",
"transaction_status": "processing",
"transfer_type": "ACH"
},
"message": "<string>",
"success": true
}{
"message": "Invalid request",
"success": false
}Payments
USD Transfer
Transfer Funds to a USD bank account
POST
/
payments
/
usd
/
direct
USD Transfer
curl --request POST \
--url https://sandbox.sturdytechnologies.com/v3/payments/usd/direct \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"account_number": "<string>",
"amount": 123,
"reference": "<string>",
"recipient_email": "<string>",
"routing_number": "<string>",
"description": "<string>",
"recipient_name": "<string>"
}
'import requests
url = "https://sandbox.sturdytechnologies.com/v3/payments/usd/direct"
payload = {
"account_id": "<string>",
"account_number": "<string>",
"amount": 123,
"reference": "<string>",
"recipient_email": "<string>",
"routing_number": "<string>",
"description": "<string>",
"recipient_name": "<string>"
}
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({
account_id: '<string>',
account_number: '<string>',
amount: 123,
reference: '<string>',
recipient_email: '<string>',
routing_number: '<string>',
description: '<string>',
recipient_name: '<string>'
})
};
fetch('https://sandbox.sturdytechnologies.com/v3/payments/usd/direct', 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.sturdytechnologies.com/v3/payments/usd/direct",
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([
'account_id' => '<string>',
'account_number' => '<string>',
'amount' => 123,
'reference' => '<string>',
'recipient_email' => '<string>',
'routing_number' => '<string>',
'description' => '<string>',
'recipient_name' => '<string>'
]),
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://sandbox.sturdytechnologies.com/v3/payments/usd/direct"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"account_number\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"recipient_email\": \"<string>\",\n \"routing_number\": \"<string>\",\n \"description\": \"<string>\",\n \"recipient_name\": \"<string>\"\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://sandbox.sturdytechnologies.com/v3/payments/usd/direct")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"account_number\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"recipient_email\": \"<string>\",\n \"routing_number\": \"<string>\",\n \"description\": \"<string>\",\n \"recipient_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.sturdytechnologies.com/v3/payments/usd/direct")
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 \"account_id\": \"<string>\",\n \"account_number\": \"<string>\",\n \"amount\": 123,\n \"reference\": \"<string>\",\n \"recipient_email\": \"<string>\",\n \"routing_number\": \"<string>\",\n \"description\": \"<string>\",\n \"recipient_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"account_number": "<string>",
"account_type": "CHECKING",
"amount": 123,
"description": "<string>",
"reference": "<string>",
"recipient_email": "<string>",
"recipient_name": "<string>",
"routing_number": "<string>",
"transaction_date": "2023-10-01T12:34:56Z",
"transaction_id": "txn_12345",
"transaction_status": "processing",
"transfer_type": "ACH"
},
"message": "<string>",
"success": true
}{
"message": "Invalid request",
"success": false
}Body
application/json
USD Transfer payload
Unique Identifier of the US account from which funds will be transferred from (Pass merchant's US account ID if hold_balance is false for Create US Bank Account).
Bank account number of the recipient.
Type of the bank account.
Available options:
CHECKING, SAVINGS, BUSINESS Unique reference provided by the merchant for idempotency and tracking.
Routing number of the recipient's bank.
Type of transfer to be made.
Available options:
ACH, WIRE 