curl --request POST \
--url https://api.treasuryprime.com/statement_config \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": null,
"apy": "1.50",
"email_address": "support@example.com",
"footnote": "In case of errors or questions about your electronic transfers...",
"logo_file_id": null,
"org_legal_name": "Example Company LLC",
"phone_number": "+1 555-1212",
"show_transaction_ids": true,
"support_url": "support.example.com"
}
'import requests
url = "https://api.treasuryprime.com/statement_config"
payload = {
"account_id": None,
"apy": "1.50",
"email_address": "support@example.com",
"footnote": "In case of errors or questions about your electronic transfers...",
"logo_file_id": None,
"org_legal_name": "Example Company LLC",
"phone_number": "+1 555-1212",
"show_transaction_ids": True,
"support_url": "support.example.com"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: null,
apy: '1.50',
email_address: 'support@example.com',
footnote: 'In case of errors or questions about your electronic transfers...',
logo_file_id: null,
org_legal_name: 'Example Company LLC',
phone_number: '+1 555-1212',
show_transaction_ids: true,
support_url: 'support.example.com'
})
};
fetch('https://api.treasuryprime.com/statement_config', 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.treasuryprime.com/statement_config",
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' => null,
'apy' => '1.50',
'email_address' => 'support@example.com',
'footnote' => 'In case of errors or questions about your electronic transfers...',
'logo_file_id' => null,
'org_legal_name' => 'Example Company LLC',
'phone_number' => '+1 555-1212',
'show_transaction_ids' => true,
'support_url' => 'support.example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.treasuryprime.com/statement_config"
payload := strings.NewReader("{\n \"account_id\": null,\n \"apy\": \"1.50\",\n \"email_address\": \"support@example.com\",\n \"footnote\": \"In case of errors or questions about your electronic transfers...\",\n \"logo_file_id\": null,\n \"org_legal_name\": \"Example Company LLC\",\n \"phone_number\": \"+1 555-1212\",\n \"show_transaction_ids\": true,\n \"support_url\": \"support.example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.treasuryprime.com/statement_config")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": null,\n \"apy\": \"1.50\",\n \"email_address\": \"support@example.com\",\n \"footnote\": \"In case of errors or questions about your electronic transfers...\",\n \"logo_file_id\": null,\n \"org_legal_name\": \"Example Company LLC\",\n \"phone_number\": \"+1 555-1212\",\n \"show_transaction_ids\": true,\n \"support_url\": \"support.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.treasuryprime.com/statement_config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": null,\n \"apy\": \"1.50\",\n \"email_address\": \"support@example.com\",\n \"footnote\": \"In case of errors or questions about your electronic transfers...\",\n \"logo_file_id\": null,\n \"org_legal_name\": \"Example Company LLC\",\n \"phone_number\": \"+1 555-1212\",\n \"show_transaction_ids\": true,\n \"support_url\": \"support.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": null,
"apy": "1.50",
"created_at": "2022-08-19T23:27:03Z",
"email_address": "support@example.com",
"footnote": "In case of errors or questions about your electronic transfers...",
"id": "stmtcfg_11hg0727cpmwzt",
"logo_file_id": null,
"org_legal_name": "Example Company LLC",
"phone_number": "+1 555-1212",
"show_transaction_ids": true,
"support_url": "support.example.com",
"updated_at": "2022-08-19T23:27:03Z"
}Create a Statement Configuration
curl --request POST \
--url https://api.treasuryprime.com/statement_config \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": null,
"apy": "1.50",
"email_address": "support@example.com",
"footnote": "In case of errors or questions about your electronic transfers...",
"logo_file_id": null,
"org_legal_name": "Example Company LLC",
"phone_number": "+1 555-1212",
"show_transaction_ids": true,
"support_url": "support.example.com"
}
'import requests
url = "https://api.treasuryprime.com/statement_config"
payload = {
"account_id": None,
"apy": "1.50",
"email_address": "support@example.com",
"footnote": "In case of errors or questions about your electronic transfers...",
"logo_file_id": None,
"org_legal_name": "Example Company LLC",
"phone_number": "+1 555-1212",
"show_transaction_ids": True,
"support_url": "support.example.com"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: null,
apy: '1.50',
email_address: 'support@example.com',
footnote: 'In case of errors or questions about your electronic transfers...',
logo_file_id: null,
org_legal_name: 'Example Company LLC',
phone_number: '+1 555-1212',
show_transaction_ids: true,
support_url: 'support.example.com'
})
};
fetch('https://api.treasuryprime.com/statement_config', 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.treasuryprime.com/statement_config",
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' => null,
'apy' => '1.50',
'email_address' => 'support@example.com',
'footnote' => 'In case of errors or questions about your electronic transfers...',
'logo_file_id' => null,
'org_legal_name' => 'Example Company LLC',
'phone_number' => '+1 555-1212',
'show_transaction_ids' => true,
'support_url' => 'support.example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.treasuryprime.com/statement_config"
payload := strings.NewReader("{\n \"account_id\": null,\n \"apy\": \"1.50\",\n \"email_address\": \"support@example.com\",\n \"footnote\": \"In case of errors or questions about your electronic transfers...\",\n \"logo_file_id\": null,\n \"org_legal_name\": \"Example Company LLC\",\n \"phone_number\": \"+1 555-1212\",\n \"show_transaction_ids\": true,\n \"support_url\": \"support.example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.treasuryprime.com/statement_config")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": null,\n \"apy\": \"1.50\",\n \"email_address\": \"support@example.com\",\n \"footnote\": \"In case of errors or questions about your electronic transfers...\",\n \"logo_file_id\": null,\n \"org_legal_name\": \"Example Company LLC\",\n \"phone_number\": \"+1 555-1212\",\n \"show_transaction_ids\": true,\n \"support_url\": \"support.example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.treasuryprime.com/statement_config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": null,\n \"apy\": \"1.50\",\n \"email_address\": \"support@example.com\",\n \"footnote\": \"In case of errors or questions about your electronic transfers...\",\n \"logo_file_id\": null,\n \"org_legal_name\": \"Example Company LLC\",\n \"phone_number\": \"+1 555-1212\",\n \"show_transaction_ids\": true,\n \"support_url\": \"support.example.com\"\n}"
response = http.request(request)
puts response.read_body{
"account_id": null,
"apy": "1.50",
"created_at": "2022-08-19T23:27:03Z",
"email_address": "support@example.com",
"footnote": "In case of errors or questions about your electronic transfers...",
"id": "stmtcfg_11hg0727cpmwzt",
"logo_file_id": null,
"org_legal_name": "Example Company LLC",
"phone_number": "+1 555-1212",
"show_transaction_ids": true,
"support_url": "support.example.com",
"updated_at": "2022-08-19T23:27:03Z"
}Authorizations
Body
The statement_config to create
Field to add footnote language, including Reg E Customer Complaint Information & Language. See suggested template. Whatever is entered into this field will appear as plain text at the bottom of the statement. Note, the copy included in this field is subject to approval by your partner bank.
Annual Percentage Yield to be displayed on statements generated with this configuration. Must be non-negative. APY will be displayed with two-decimal precision and must be provided with two-decimal precision. The provided apy is taken as a percentage, e.g. 3.50 would indicate an APY of 3.50%Either apy or apy_custom must be populated.
^[0-9][.][0-9][0-9]$Custom text to include on statements to describe the Annual Percentage Yield. The text provided will be displayed as right-aligned plain text above the summary on the statement. This field is intended to allow displaying tiered or other APY formats when APY is not a simple rate. When apy_custom is provided it will be used instead of an Annual Percentage Yield field in the summary. Either apy or apy_custom must be populated.
Response
The statement_config created
Annual Percentage Yield to be displayed on statements generated with this configuration. Must be non-negative. APY will be displayed with two-decimal precision and must be provided with two-decimal precision. The provided apy is taken as a percentage, e.g. 3.50 would indicate an APY of 3.50%Either apy or apy_custom must be populated.
^[0-9][.][0-9][0-9]$Custom text to include on statements to describe the Annual Percentage Yield. The text provided will be displayed as right-aligned plain text above the summary on the statement. This field is intended to allow displaying tiered or other APY formats when APY is not a simple rate. When apy_custom is provided it will be used instead of an Annual Percentage Yield field in the summary. Either apy or apy_custom must be populated.
Field to add footnote language, including Reg E Customer Complaint Information & Language. See suggested template. Whatever is entered into this field will appear as plain text at the bottom of the statement. Note, the copy included in this field is subject to approval by your partner bank.
Was this page helpful?