List all ACH V2
curl --request GET \
--url https://api.sandbox.lead.bank/v2/ach \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.lead.bank/v2/ach"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.lead.bank/v2/ach', 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.lead.bank/v2/ach",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.lead.bank/v2/ach"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.lead.bank/v2/ach")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.lead.bank/v2/ach")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"objects": [
{
"id": "ach_xyz001",
"created_at": "2022-06-27T11:22:33Z",
"status": "posted",
"amount": 5000,
"account_number_id": "account_number_xyz123",
"direction": "outgoing",
"delivery_type": "same_business_day",
"transaction_type": "credit",
"sec_code": "WEB",
"currency": "USD",
"statement_descriptor": "P2P Credit",
"transaction_code": "checking_credit",
"company_name": "Acme Inc.",
"company_identification": "1234567890",
"individual_identification_number": "CUST-000123",
"receiver_name": "Lara Smikle",
"core_transaction_id": "core_transaction_xyz123~1",
"core_balance_id": "core_balance_xyz123",
"effective_date": "2022-06-27",
"settlement_date": "2022-06-27",
"trace_number": "123456789012345",
"counterparty": {
"name": "Lara Smikle",
"account_number": "1032345678",
"routing_number": "021000021",
"account_type": "checking"
},
"returns": [],
"metadata": {
"invoice_id": "INV-1001"
}
},
{
"id": "ach_xyz003",
"core_transaction_id": "core_transaction_xyz456~1",
"core_balance_id": "core_balance_xyz123",
"created_at": "2022-06-28T08:00:00Z",
"status": "posted",
"amount": 2500,
"account_number_id": "account_number_xyz123",
"direction": "incoming",
"transaction_type": "debit",
"sec_code": "PPD",
"currency": "USD",
"statement_descriptor": "UTILITY",
"transaction_code": "checking_debit",
"company_name": "City Power Co.",
"company_identification": "9876543210",
"effective_date": "2022-06-28",
"settlement_date": "2022-06-28",
"individual_identification_number": "ACCT-778899",
"receiver_name": "Lara Smikle",
"trace_number": "091000010000001",
"counterparty": {
"name": "City Power Co.",
"routing_number": "091000019"
},
"returns": [],
"metadata": {}
}
],
"has_more": false
}ACH
List all ACH
List all ACH objects, newest first.
GET
/
v2
/
ach
List all ACH V2
curl --request GET \
--url https://api.sandbox.lead.bank/v2/ach \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.lead.bank/v2/ach"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.lead.bank/v2/ach', 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.lead.bank/v2/ach",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.lead.bank/v2/ach"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.lead.bank/v2/ach")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.lead.bank/v2/ach")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"objects": [
{
"id": "ach_xyz001",
"created_at": "2022-06-27T11:22:33Z",
"status": "posted",
"amount": 5000,
"account_number_id": "account_number_xyz123",
"direction": "outgoing",
"delivery_type": "same_business_day",
"transaction_type": "credit",
"sec_code": "WEB",
"currency": "USD",
"statement_descriptor": "P2P Credit",
"transaction_code": "checking_credit",
"company_name": "Acme Inc.",
"company_identification": "1234567890",
"individual_identification_number": "CUST-000123",
"receiver_name": "Lara Smikle",
"core_transaction_id": "core_transaction_xyz123~1",
"core_balance_id": "core_balance_xyz123",
"effective_date": "2022-06-27",
"settlement_date": "2022-06-27",
"trace_number": "123456789012345",
"counterparty": {
"name": "Lara Smikle",
"account_number": "1032345678",
"routing_number": "021000021",
"account_type": "checking"
},
"returns": [],
"metadata": {
"invoice_id": "INV-1001"
}
},
{
"id": "ach_xyz003",
"core_transaction_id": "core_transaction_xyz456~1",
"core_balance_id": "core_balance_xyz123",
"created_at": "2022-06-28T08:00:00Z",
"status": "posted",
"amount": 2500,
"account_number_id": "account_number_xyz123",
"direction": "incoming",
"transaction_type": "debit",
"sec_code": "PPD",
"currency": "USD",
"statement_descriptor": "UTILITY",
"transaction_code": "checking_debit",
"company_name": "City Power Co.",
"company_identification": "9876543210",
"effective_date": "2022-06-28",
"settlement_date": "2022-06-28",
"individual_identification_number": "ACCT-778899",
"receiver_name": "Lara Smikle",
"trace_number": "091000010000001",
"counterparty": {
"name": "City Power Co.",
"routing_number": "091000019"
},
"returns": [],
"metadata": {}
}
],
"has_more": false
}See Errors for the common errors every v2 endpoint can return.
Authorizations
Query Parameters
Return ACH with this status.
The current status of the ACH object.
Available options:
scheduled, processing, submitted, posted, canceled, under_review, approved, rejected, pending_return, returned, pending_dishonored_return, return_dishonored, pending_contested_return, return_contested Example:
"submitted"
Was this page helpful?

