curl --request POST \
--url https://api-sandbox.argyle.com/v2/target-deposit-destinations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"ach_deposit_account": {
"bank_name": "YellowHorizon",
"routing_number": "084101234",
"account_number": "9483746361234",
"account_type": "checking"
},
"amount_allocation": {
"value": "177",
"min_value": "177",
"max_value": "177"
}
}
'import requests
url = "https://api-sandbox.argyle.com/v2/target-deposit-destinations"
payload = {
"ach_deposit_account": {
"bank_name": "YellowHorizon",
"routing_number": "084101234",
"account_number": "9483746361234",
"account_type": "checking"
},
"amount_allocation": {
"value": "177",
"min_value": "177",
"max_value": "177"
}
}
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({
ach_deposit_account: {
bank_name: 'YellowHorizon',
routing_number: '084101234',
account_number: '9483746361234',
account_type: 'checking'
},
amount_allocation: {value: '177', min_value: '177', max_value: '177'}
})
};
fetch('https://api-sandbox.argyle.com/v2/target-deposit-destinations', 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.argyle.com/v2/target-deposit-destinations",
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([
'ach_deposit_account' => [
'bank_name' => 'YellowHorizon',
'routing_number' => '084101234',
'account_number' => '9483746361234',
'account_type' => 'checking'
],
'amount_allocation' => [
'value' => '177',
'min_value' => '177',
'max_value' => '177'
]
]),
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-sandbox.argyle.com/v2/target-deposit-destinations"
payload := strings.NewReader("{\n \"ach_deposit_account\": {\n \"bank_name\": \"YellowHorizon\",\n \"routing_number\": \"084101234\",\n \"account_number\": \"9483746361234\",\n \"account_type\": \"checking\"\n },\n \"amount_allocation\": {\n \"value\": \"177\",\n \"min_value\": \"177\",\n \"max_value\": \"177\"\n }\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-sandbox.argyle.com/v2/target-deposit-destinations")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"ach_deposit_account\": {\n \"bank_name\": \"YellowHorizon\",\n \"routing_number\": \"084101234\",\n \"account_number\": \"9483746361234\",\n \"account_type\": \"checking\"\n },\n \"amount_allocation\": {\n \"value\": \"177\",\n \"min_value\": \"177\",\n \"max_value\": \"177\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.argyle.com/v2/target-deposit-destinations")
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 \"ach_deposit_account\": {\n \"bank_name\": \"YellowHorizon\",\n \"routing_number\": \"084101234\",\n \"account_number\": \"9483746361234\",\n \"account_type\": \"checking\"\n },\n \"amount_allocation\": {\n \"value\": \"177\",\n \"min_value\": \"177\",\n \"max_value\": \"177\"\n }\n}"
response = http.request(request)
puts response.read_body{
"encrypted_config": "CiUAzxhtkjHVbbvqqaQCFy3u2lrK3w4rUIVeDUk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eRgpjEbJUQJ00XZ2fzY"
}Encrypt To Ddsconfig
Encrypts a target deposit destination object for use in Link.
curl --request POST \
--url https://api-sandbox.argyle.com/v2/target-deposit-destinations \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"ach_deposit_account": {
"bank_name": "YellowHorizon",
"routing_number": "084101234",
"account_number": "9483746361234",
"account_type": "checking"
},
"amount_allocation": {
"value": "177",
"min_value": "177",
"max_value": "177"
}
}
'import requests
url = "https://api-sandbox.argyle.com/v2/target-deposit-destinations"
payload = {
"ach_deposit_account": {
"bank_name": "YellowHorizon",
"routing_number": "084101234",
"account_number": "9483746361234",
"account_type": "checking"
},
"amount_allocation": {
"value": "177",
"min_value": "177",
"max_value": "177"
}
}
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({
ach_deposit_account: {
bank_name: 'YellowHorizon',
routing_number: '084101234',
account_number: '9483746361234',
account_type: 'checking'
},
amount_allocation: {value: '177', min_value: '177', max_value: '177'}
})
};
fetch('https://api-sandbox.argyle.com/v2/target-deposit-destinations', 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.argyle.com/v2/target-deposit-destinations",
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([
'ach_deposit_account' => [
'bank_name' => 'YellowHorizon',
'routing_number' => '084101234',
'account_number' => '9483746361234',
'account_type' => 'checking'
],
'amount_allocation' => [
'value' => '177',
'min_value' => '177',
'max_value' => '177'
]
]),
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-sandbox.argyle.com/v2/target-deposit-destinations"
payload := strings.NewReader("{\n \"ach_deposit_account\": {\n \"bank_name\": \"YellowHorizon\",\n \"routing_number\": \"084101234\",\n \"account_number\": \"9483746361234\",\n \"account_type\": \"checking\"\n },\n \"amount_allocation\": {\n \"value\": \"177\",\n \"min_value\": \"177\",\n \"max_value\": \"177\"\n }\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-sandbox.argyle.com/v2/target-deposit-destinations")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"ach_deposit_account\": {\n \"bank_name\": \"YellowHorizon\",\n \"routing_number\": \"084101234\",\n \"account_number\": \"9483746361234\",\n \"account_type\": \"checking\"\n },\n \"amount_allocation\": {\n \"value\": \"177\",\n \"min_value\": \"177\",\n \"max_value\": \"177\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.argyle.com/v2/target-deposit-destinations")
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 \"ach_deposit_account\": {\n \"bank_name\": \"YellowHorizon\",\n \"routing_number\": \"084101234\",\n \"account_number\": \"9483746361234\",\n \"account_type\": \"checking\"\n },\n \"amount_allocation\": {\n \"value\": \"177\",\n \"min_value\": \"177\",\n \"max_value\": \"177\"\n }\n}"
response = http.request(request)
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pXn8iOgS+dHLSUW9TIkOuS9So0F8VB/QHY/Tv31yOmpEbWL9y7Lql/D33QIeRgpjEbJUQJ00XZ2fzY"
}- Bank account identifying information.
- How much of the user’s paycheck should be allocated to the bank account.
encrypted_config whose value can be used with the ddsConfig Link initialization parameter. When a ddsConfig is present in a Link initialization, the user will be presented with a deposit switch flow after they initially connect an account, or when they return to a previously connected account.Authorizations
Username = api_key_id, Password = api_key_secret
Body
A target deposit destination.
Use this object for DDS configurations such as directing the entirety of the user's paycheck.
Response
The encrypted configuration string.
"CiUAzxhtkjHVbbvqqaQCFy3u2lrK3w4rUIVeDUk+TAMTSuRubh9yEqoGAGPMAvpCp4gw5zwCkvkh9voNq7Env6awey2nowAdlInrQg/vXwyHEO/MJEsygELdNyU+RbEaEN86/Y7XMMpMtBObD/lPCaY/md8eO1A6Ij5n9Lh1vYMqzU6IqhNka2j3jvJ/7N2qI4pyYyZJS1Q115Z5NkB6wc6xAgkJozD11VwL9D+7cDzPKPKZFg/xE4Rz/psSyCzbO6EVv2NFIXY5FvtqYwKBetTxLYNigdO25WWaDLYM5gOnjhBsKD+BU2XalWnvKcTb3yesW3e4iDcp8zTjiSrpcLL5IhrdFFFHt5LOPwlRjJ1RTv6mhZudhgY2DZMAr2ajP/L3gPMMG5wmhcybC7BJiG7D7j78biZZtUzXgaXRdboMKBvm9MB1ZmWIDqFtfCi2kf6TykJOq6eXiI5dMOsvfg+wk/5qrmrFr/5birijwMUscDZ6XRQO1vy/JMdBlqZHUSySv+meMvobULj+PmNj3o6JaYJzi/DzpUK/kaNI6xIg+Ia92nbAyF+HUEQ+r+n7ZrYIU85W00JaXm0ba3cal7V6IUnCwh2V22oN51GX33UlPAsAjSAWAOJpQHOLXi7DeFr+V/FvnjLHvO/U17Ybsm6gI7tvC4lR6SPhZNXayNiCVAjGzjoy151O9i7+mBCbqWjfTZLOj3p9QMVrkYixJobDJ4B2MZdQB0HG7wDZvKqK2IIVZBEfuVQX94Ltt+Sui8kHqRw5Z03Q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