Get Bank Account
curl --request GET \
--url https://api.sandbox.sardine.ai/v1/payment-method/achimport requests
url = "https://api.sandbox.sardine.ai/v1/payment-method/ach"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.sardine.ai/v1/payment-method/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.sardine.ai/v1/payment-method/ach",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.sardine.ai/v1/payment-method/ach"
req, _ := http.NewRequest("GET", url, nil)
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.sardine.ai/v1/payment-method/ach")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.sardine.ai/v1/payment-method/ach")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bankAccountId": "5b26b598-a880-4e32-8c41-126aa0206857",
"accountNumber": "98322271627",
"name": "John Doe",
"officialName": "JP Morgan Chase Checking account",
"routingNumber": "322271627",
"subtype": "checking",
"type": "string",
"wireRoutingNUmber": "32222171627",
"institutionName": "JP Morgan Chase",
"status": "connected"
}Payment Method
Get Bank Account
Get information about Bank Account object
GET
/
payment-method
/
ach
Get Bank Account
curl --request GET \
--url https://api.sandbox.sardine.ai/v1/payment-method/achimport requests
url = "https://api.sandbox.sardine.ai/v1/payment-method/ach"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sandbox.sardine.ai/v1/payment-method/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.sardine.ai/v1/payment-method/ach",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.sardine.ai/v1/payment-method/ach"
req, _ := http.NewRequest("GET", url, nil)
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.sardine.ai/v1/payment-method/ach")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.sardine.ai/v1/payment-method/ach")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bankAccountId": "5b26b598-a880-4e32-8c41-126aa0206857",
"accountNumber": "98322271627",
"name": "John Doe",
"officialName": "JP Morgan Chase Checking account",
"routingNumber": "322271627",
"subtype": "checking",
"type": "string",
"wireRoutingNUmber": "32222171627",
"institutionName": "JP Morgan Chase",
"status": "connected"
}Query Parameters
Bank Account ID.
Response
200 - application/json
OK
Unique identifier for the given user.
Bank account number
Example:
"98322271627"
User set name of account
Bank designated name of account
Example:
"1997-10-31"
The date that the user was created.
Subtype of account
Type of account, checking, saving etc
Routing number for bank account
Name of the bank at which the account is open
Available options:
connected, disconnected