curl --request POST \
--url https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"fromBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "USD",
"idempotencyKey": "<string>",
"memo": "<string>",
"reference": "<string>"
}
'import requests
url = "https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow"
payload = {
"amount": 123,
"fromBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "USD",
"idempotencyKey": "<string>",
"memo": "<string>",
"reference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
fromBankAccountId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
toBankAccountId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
currencyCode: 'USD',
idempotencyKey: '<string>',
memo: '<string>',
reference: '<string>'
})
};
fetch('https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow', 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.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow",
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([
'amount' => 123,
'fromBankAccountId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'toBankAccountId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'currencyCode' => 'USD',
'idempotencyKey' => '<string>',
'memo' => '<string>',
'reference' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow"
payload := strings.NewReader("{\n \"amount\": 123,\n \"fromBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"toBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"currencyCode\": \"USD\",\n \"idempotencyKey\": \"<string>\",\n \"memo\": \"<string>\",\n \"reference\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"fromBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"toBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"currencyCode\": \"USD\",\n \"idempotencyKey\": \"<string>\",\n \"memo\": \"<string>\",\n \"reference\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"fromBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"toBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"currencyCode\": \"USD\",\n \"idempotencyKey\": \"<string>\",\n \"memo\": \"<string>\",\n \"reference\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": {
"currencyCode": "<string>",
"value": 123
},
"date": "2023-12-25",
"fromBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nickname": "<string>"
},
"network": "BOOK",
"status": "PENDING",
"toBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nickname": "<string>"
},
"reference": "<string>"
}{
"errorCode": "<string>",
"detail": "<string>",
"errors": {},
"instance": "<string>",
"questionErrors": [
{
"code": "REQUIRED",
"message": "<string>",
"itemPath": "<string>",
"key": "<string>",
"ownerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"requirementsVersion": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Create FedNow transfer
Sends funds instantly over FedNow from a bank account the caller can see to an external bank account. FedNow only sends money: it cannot pull funds in from an external bank account. Use an ACH money movement for that, or a book transfer to move funds between bank accounts in the same organization.
Token types: APP, USER | Required scopes: transfer:write:org
curl --request POST \
--url https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"fromBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "USD",
"idempotencyKey": "<string>",
"memo": "<string>",
"reference": "<string>"
}
'import requests
url = "https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow"
payload = {
"amount": 123,
"fromBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toBankAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"currencyCode": "USD",
"idempotencyKey": "<string>",
"memo": "<string>",
"reference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 123,
fromBankAccountId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
toBankAccountId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
currencyCode: 'USD',
idempotencyKey: '<string>',
memo: '<string>',
reference: '<string>'
})
};
fetch('https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow', 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.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow",
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([
'amount' => 123,
'fromBankAccountId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'toBankAccountId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'currencyCode' => 'USD',
'idempotencyKey' => '<string>',
'memo' => '<string>',
'reference' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow"
payload := strings.NewReader("{\n \"amount\": 123,\n \"fromBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"toBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"currencyCode\": \"USD\",\n \"idempotencyKey\": \"<string>\",\n \"memo\": \"<string>\",\n \"reference\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 123,\n \"fromBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"toBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"currencyCode\": \"USD\",\n \"idempotencyKey\": \"<string>\",\n \"memo\": \"<string>\",\n \"reference\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.tesouro.com/embedded-banking/v1/money-movements/fednow")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 123,\n \"fromBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"toBankAccountId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"currencyCode\": \"USD\",\n \"idempotencyKey\": \"<string>\",\n \"memo\": \"<string>\",\n \"reference\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": {
"currencyCode": "<string>",
"value": 123
},
"date": "2023-12-25",
"fromBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nickname": "<string>"
},
"network": "BOOK",
"status": "PENDING",
"toBankAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"nickname": "<string>"
},
"reference": "<string>"
}{
"errorCode": "<string>",
"detail": "<string>",
"errors": {},
"instance": "<string>",
"questionErrors": [
{
"code": "REQUIRED",
"message": "<string>",
"itemPath": "<string>",
"key": "<string>",
"ownerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"requirementsVersion": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"errorCode": "<string>",
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}Authorizations
Scopes
Body
Request model for initiating a FedNow (FedNow Service) money movement.
Optional caller-supplied reference used to correlate this money movement with a payment
record in the caller's own system. Stored against the money movement (with leading and
trailing whitespace removed), echoed back on the creation response and on the bank account
transfers list, and forwarded to the banking core as the ISO 20022 end-to-end id, which
the provider echoes back on payment status events.
Not required to be unique and not used for deduplication: supply idempotencyKey
to make a retry safe.
Maximum length: 35 characters (ISO 20022 Max35Text). Must not be blank or contain control
characters.
Response
Money movement created successfully.
Response model for a money movement operation.
Was this page helpful?