Send bank information
curl --request GET \
--url https://api.sandbox.sardine.ai/v1/banks/transactions \
--header 'Content-Type: application/json' \
--data '
{
"sessionKey": "string",
"customerId": "string",
"plaidData": {
"transactionsResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": null,
"unofficial_currency_code": null
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"transactions": [
{
"account_id": "string",
"amount": 0,
"iso_currency_code": "string",
"unofficial_currency_code": null,
"category": [
{}
],
"category_id": "string",
"check_number": null,
"date": "string",
"datetime": null,
"authorized_date": "string",
"authorized_datetime": null,
"location": {
"address": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"lat": 0,
"lon": 0,
"store_number": "string"
},
"name": "string",
"merchant_name": "string",
"payment_meta": {
"by_order_of": null,
"payee": null,
"payer": null,
"payment_method": null,
"payment_processor": null,
"ppd_id": null,
"reason": null,
"reference_number": null
},
"payment_channel": "string",
"pending": true,
"pending_transaction_id": null,
"account_owner": null,
"transaction_id": "string",
"transaction_code": null,
"transaction_type": "string"
}
],
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"consent_expiration_time": null,
"error": null,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"total_transactions": 0,
"request_id": "string"
},
"authResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"limit": null,
"iso_currency_code": "string",
"unofficial_currency_code": null
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"numbers": {
"ach": [
{
"account": "string",
"account_id": "string",
"routing": "string",
"wire_routing": "string"
}
],
"eft": [
{
"account": "string",
"account_id": "string",
"institution": "string",
"branch": "string"
}
],
"international": [
{
"account_id": "string",
"bic": "string",
"iban": "string"
}
],
"bacs": [
{
"account": "string",
"account_id": "string",
"sort_code": "string"
}
]
},
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"consent_expiration_time": null,
"error": null,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"balanceResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string"
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"institution_id": "string",
"item_id": "string",
"products": [
{}
],
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"identityResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": null,
"unofficial_currency_code": null
},
"mask": "string",
"name": "string",
"official_name": "string",
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": true
}
],
"emails": [
{
"data": "string",
"primary": true,
"type": "string"
}
],
"names": [
{}
],
"phone_numbers": [
{
"data": "string",
"primary": true,
"type": "string"
}
]
}
],
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"consent_expiration_time": null,
"error": null,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"assetsReportResponse": {
"report": {
"asset_report_id": "string",
"client_report_id": "string",
"date_generated": "string",
"days_requested": 0,
"items": [
{
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": null,
"unofficial_currency_code": null
},
"days_available": 0,
"historical_balances": [
{
"current": 0,
"date": "string",
"iso_currency_code": "string",
"unofficial_currency_code": null
}
],
"mask": "string",
"name": "string",
"official_name": null,
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": true
}
],
"emails": [
{
"data": "string",
"primary": true,
"type": "string"
}
],
"names": [
"string"
],
"phone_numbers": [
{
"data": "string",
"primary": true,
"type": "string"
}
]
}
],
"ownership_type": null,
"subtype": "string",
"transactions": [
{}
],
"type": "string"
}
],
"date_last_updated": "string",
"institution_id": "string",
"institution_name": "string",
"item_id": "string"
}
],
"user": {
"client_user_id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"phone_number": "string",
"ssn": "string"
}
},
"request_id": "string",
"warnings": [
{}
]
}
}
}
'import requests
url = "https://api.sandbox.sardine.ai/v1/banks/transactions"
payload = {
"sessionKey": "string",
"customerId": "string",
"plaidData": {
"transactionsResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": None,
"unofficial_currency_code": None
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"transactions": [
{
"account_id": "string",
"amount": 0,
"iso_currency_code": "string",
"unofficial_currency_code": None,
"category": [{}],
"category_id": "string",
"check_number": None,
"date": "string",
"datetime": None,
"authorized_date": "string",
"authorized_datetime": None,
"location": {
"address": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"lat": 0,
"lon": 0,
"store_number": "string"
},
"name": "string",
"merchant_name": "string",
"payment_meta": {
"by_order_of": None,
"payee": None,
"payer": None,
"payment_method": None,
"payment_processor": None,
"ppd_id": None,
"reason": None,
"reference_number": None
},
"payment_channel": "string",
"pending": True,
"pending_transaction_id": None,
"account_owner": None,
"transaction_id": "string",
"transaction_code": None,
"transaction_type": "string"
}
],
"item": {
"available_products": [{}],
"billed_products": [{}],
"consent_expiration_time": None,
"error": None,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"total_transactions": 0,
"request_id": "string"
},
"authResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"limit": None,
"iso_currency_code": "string",
"unofficial_currency_code": None
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"numbers": {
"ach": [
{
"account": "string",
"account_id": "string",
"routing": "string",
"wire_routing": "string"
}
],
"eft": [
{
"account": "string",
"account_id": "string",
"institution": "string",
"branch": "string"
}
],
"international": [
{
"account_id": "string",
"bic": "string",
"iban": "string"
}
],
"bacs": [
{
"account": "string",
"account_id": "string",
"sort_code": "string"
}
]
},
"item": {
"available_products": [{}],
"billed_products": [{}],
"consent_expiration_time": None,
"error": None,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"balanceResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string"
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [{}],
"billed_products": [{}],
"institution_id": "string",
"item_id": "string",
"products": [{}],
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"identityResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": None,
"unofficial_currency_code": None
},
"mask": "string",
"name": "string",
"official_name": "string",
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": True
}
],
"emails": [
{
"data": "string",
"primary": True,
"type": "string"
}
],
"names": [{}],
"phone_numbers": [
{
"data": "string",
"primary": True,
"type": "string"
}
]
}
],
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [{}],
"billed_products": [{}],
"consent_expiration_time": None,
"error": None,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"assetsReportResponse": {
"report": {
"asset_report_id": "string",
"client_report_id": "string",
"date_generated": "string",
"days_requested": 0,
"items": [
{
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": None,
"unofficial_currency_code": None
},
"days_available": 0,
"historical_balances": [
{
"current": 0,
"date": "string",
"iso_currency_code": "string",
"unofficial_currency_code": None
}
],
"mask": "string",
"name": "string",
"official_name": None,
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": True
}
],
"emails": [
{
"data": "string",
"primary": True,
"type": "string"
}
],
"names": ["string"],
"phone_numbers": [
{
"data": "string",
"primary": True,
"type": "string"
}
]
}
],
"ownership_type": None,
"subtype": "string",
"transactions": [{}],
"type": "string"
}
],
"date_last_updated": "string",
"institution_id": "string",
"institution_name": "string",
"item_id": "string"
}
],
"user": {
"client_user_id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"phone_number": "string",
"ssn": "string"
}
},
"request_id": "string",
"warnings": [{}]
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
sessionKey: 'string',
customerId: 'string',
plaidData: {
transactionsResponse: {
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
iso_currency_code: 'string',
limit: null,
unofficial_currency_code: null
},
mask: 'string',
name: 'string',
official_name: 'string',
subtype: 'string',
type: 'string'
}
],
transactions: [
{
account_id: 'string',
amount: 0,
iso_currency_code: 'string',
unofficial_currency_code: null,
category: [{}],
category_id: 'string',
check_number: null,
date: 'string',
datetime: null,
authorized_date: 'string',
authorized_datetime: null,
location: {
address: 'string',
city: 'string',
region: 'string',
postal_code: 'string',
country: 'string',
lat: 0,
lon: 0,
store_number: 'string'
},
name: 'string',
merchant_name: 'string',
payment_meta: {
by_order_of: null,
payee: null,
payer: null,
payment_method: null,
payment_processor: null,
ppd_id: null,
reason: null,
reference_number: null
},
payment_channel: 'string',
pending: true,
pending_transaction_id: null,
account_owner: null,
transaction_id: 'string',
transaction_code: null,
transaction_type: 'string'
}
],
item: {
available_products: [{}],
billed_products: [{}],
consent_expiration_time: null,
error: null,
institution_id: 'string',
item_id: 'string',
update_type: 'string',
webhook: 'string'
},
total_transactions: 0,
request_id: 'string'
},
authResponse: {
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
limit: null,
iso_currency_code: 'string',
unofficial_currency_code: null
},
mask: 'string',
name: 'string',
official_name: 'string',
subtype: 'string',
type: 'string'
}
],
numbers: {
ach: [
{
account: 'string',
account_id: 'string',
routing: 'string',
wire_routing: 'string'
}
],
eft: [
{
account: 'string',
account_id: 'string',
institution: 'string',
branch: 'string'
}
],
international: [{account_id: 'string', bic: 'string', iban: 'string'}],
bacs: [{account: 'string', account_id: 'string', sort_code: 'string'}]
},
item: {
available_products: [{}],
billed_products: [{}],
consent_expiration_time: null,
error: null,
institution_id: 'string',
item_id: 'string',
update_type: 'string',
webhook: 'string'
},
request_id: 'string'
},
balanceResponse: {
accounts: [
{
account_id: 'string',
balances: {available: 0, current: 0, iso_currency_code: 'string'},
mask: 'string',
name: 'string',
official_name: 'string',
subtype: 'string',
type: 'string'
}
],
item: {
available_products: [{}],
billed_products: [{}],
institution_id: 'string',
item_id: 'string',
products: [{}],
update_type: 'string',
webhook: 'string'
},
request_id: 'string'
},
identityResponse: {
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
iso_currency_code: 'string',
limit: null,
unofficial_currency_code: null
},
mask: 'string',
name: 'string',
official_name: 'string',
owners: [
{
addresses: [
{
data: {
city: 'string',
country: 'string',
postal_code: 'string',
region: 'string',
street: 'string'
},
primary: true
}
],
emails: [{data: 'string', primary: true, type: 'string'}],
names: [{}],
phone_numbers: [{data: 'string', primary: true, type: 'string'}]
}
],
subtype: 'string',
type: 'string'
}
],
item: {
available_products: [{}],
billed_products: [{}],
consent_expiration_time: null,
error: null,
institution_id: 'string',
item_id: 'string',
update_type: 'string',
webhook: 'string'
},
request_id: 'string'
},
assetsReportResponse: {
report: {
asset_report_id: 'string',
client_report_id: 'string',
date_generated: 'string',
days_requested: 0,
items: [
{
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
iso_currency_code: 'string',
limit: null,
unofficial_currency_code: null
},
days_available: 0,
historical_balances: [
{
current: 0,
date: 'string',
iso_currency_code: 'string',
unofficial_currency_code: null
}
],
mask: 'string',
name: 'string',
official_name: null,
owners: [
{
addresses: [
{
data: {
city: 'string',
country: 'string',
postal_code: 'string',
region: 'string',
street: 'string'
},
primary: true
}
],
emails: [{data: 'string', primary: true, type: 'string'}],
names: ['string'],
phone_numbers: [{data: 'string', primary: true, type: 'string'}]
}
],
ownership_type: null,
subtype: 'string',
transactions: [{}],
type: 'string'
}
],
date_last_updated: 'string',
institution_id: 'string',
institution_name: 'string',
item_id: 'string'
}
],
user: {
client_user_id: 'string',
email: 'string',
first_name: 'string',
last_name: 'string',
middle_name: 'string',
phone_number: 'string',
ssn: 'string'
}
},
request_id: 'string',
warnings: [{}]
}
}
})
};
fetch('https://api.sandbox.sardine.ai/v1/banks/transactions', 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/banks/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'sessionKey' => 'string',
'customerId' => 'string',
'plaidData' => [
'transactionsResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string',
'limit' => null,
'unofficial_currency_code' => null
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'subtype' => 'string',
'type' => 'string'
]
],
'transactions' => [
[
'account_id' => 'string',
'amount' => 0,
'iso_currency_code' => 'string',
'unofficial_currency_code' => null,
'category' => [
[
]
],
'category_id' => 'string',
'check_number' => null,
'date' => 'string',
'datetime' => null,
'authorized_date' => 'string',
'authorized_datetime' => null,
'location' => [
'address' => 'string',
'city' => 'string',
'region' => 'string',
'postal_code' => 'string',
'country' => 'string',
'lat' => 0,
'lon' => 0,
'store_number' => 'string'
],
'name' => 'string',
'merchant_name' => 'string',
'payment_meta' => [
'by_order_of' => null,
'payee' => null,
'payer' => null,
'payment_method' => null,
'payment_processor' => null,
'ppd_id' => null,
'reason' => null,
'reference_number' => null
],
'payment_channel' => 'string',
'pending' => true,
'pending_transaction_id' => null,
'account_owner' => null,
'transaction_id' => 'string',
'transaction_code' => null,
'transaction_type' => 'string'
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'consent_expiration_time' => null,
'error' => null,
'institution_id' => 'string',
'item_id' => 'string',
'update_type' => 'string',
'webhook' => 'string'
],
'total_transactions' => 0,
'request_id' => 'string'
],
'authResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'limit' => null,
'iso_currency_code' => 'string',
'unofficial_currency_code' => null
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'subtype' => 'string',
'type' => 'string'
]
],
'numbers' => [
'ach' => [
[
'account' => 'string',
'account_id' => 'string',
'routing' => 'string',
'wire_routing' => 'string'
]
],
'eft' => [
[
'account' => 'string',
'account_id' => 'string',
'institution' => 'string',
'branch' => 'string'
]
],
'international' => [
[
'account_id' => 'string',
'bic' => 'string',
'iban' => 'string'
]
],
'bacs' => [
[
'account' => 'string',
'account_id' => 'string',
'sort_code' => 'string'
]
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'consent_expiration_time' => null,
'error' => null,
'institution_id' => 'string',
'item_id' => 'string',
'update_type' => 'string',
'webhook' => 'string'
],
'request_id' => 'string'
],
'balanceResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string'
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'subtype' => 'string',
'type' => 'string'
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'institution_id' => 'string',
'item_id' => 'string',
'products' => [
[
]
],
'update_type' => 'string',
'webhook' => 'string'
],
'request_id' => 'string'
],
'identityResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string',
'limit' => null,
'unofficial_currency_code' => null
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'owners' => [
[
'addresses' => [
[
'data' => [
'city' => 'string',
'country' => 'string',
'postal_code' => 'string',
'region' => 'string',
'street' => 'string'
],
'primary' => true
]
],
'emails' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
],
'names' => [
[
]
],
'phone_numbers' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
]
]
],
'subtype' => 'string',
'type' => 'string'
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'consent_expiration_time' => null,
'error' => null,
'institution_id' => 'string',
'item_id' => 'string',
'update_type' => 'string',
'webhook' => 'string'
],
'request_id' => 'string'
],
'assetsReportResponse' => [
'report' => [
'asset_report_id' => 'string',
'client_report_id' => 'string',
'date_generated' => 'string',
'days_requested' => 0,
'items' => [
[
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string',
'limit' => null,
'unofficial_currency_code' => null
],
'days_available' => 0,
'historical_balances' => [
[
'current' => 0,
'date' => 'string',
'iso_currency_code' => 'string',
'unofficial_currency_code' => null
]
],
'mask' => 'string',
'name' => 'string',
'official_name' => null,
'owners' => [
[
'addresses' => [
[
'data' => [
'city' => 'string',
'country' => 'string',
'postal_code' => 'string',
'region' => 'string',
'street' => 'string'
],
'primary' => true
]
],
'emails' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
],
'names' => [
'string'
],
'phone_numbers' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
]
]
],
'ownership_type' => null,
'subtype' => 'string',
'transactions' => [
[
]
],
'type' => 'string'
]
],
'date_last_updated' => 'string',
'institution_id' => 'string',
'institution_name' => 'string',
'item_id' => 'string'
]
],
'user' => [
'client_user_id' => 'string',
'email' => 'string',
'first_name' => 'string',
'last_name' => 'string',
'middle_name' => 'string',
'phone_number' => 'string',
'ssn' => 'string'
]
],
'request_id' => 'string',
'warnings' => [
[
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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.sardine.ai/v1/banks/transactions"
payload := strings.NewReader("{\n \"sessionKey\": \"string\",\n \"customerId\": \"string\",\n \"plaidData\": {\n \"transactionsResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"transactions\": [\n {\n \"account_id\": \"string\",\n \"amount\": 0,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null,\n \"category\": [\n {}\n ],\n \"category_id\": \"string\",\n \"check_number\": null,\n \"date\": \"string\",\n \"datetime\": null,\n \"authorized_date\": \"string\",\n \"authorized_datetime\": null,\n \"location\": {\n \"address\": \"string\",\n \"city\": \"string\",\n \"region\": \"string\",\n \"postal_code\": \"string\",\n \"country\": \"string\",\n \"lat\": 0,\n \"lon\": 0,\n \"store_number\": \"string\"\n },\n \"name\": \"string\",\n \"merchant_name\": \"string\",\n \"payment_meta\": {\n \"by_order_of\": null,\n \"payee\": null,\n \"payer\": null,\n \"payment_method\": null,\n \"payment_processor\": null,\n \"ppd_id\": null,\n \"reason\": null,\n \"reference_number\": null\n },\n \"payment_channel\": \"string\",\n \"pending\": true,\n \"pending_transaction_id\": null,\n \"account_owner\": null,\n \"transaction_id\": \"string\",\n \"transaction_code\": null,\n \"transaction_type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"total_transactions\": 0,\n \"request_id\": \"string\"\n },\n \"authResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"limit\": null,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"numbers\": {\n \"ach\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"routing\": \"string\",\n \"wire_routing\": \"string\"\n }\n ],\n \"eft\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"institution\": \"string\",\n \"branch\": \"string\"\n }\n ],\n \"international\": [\n {\n \"account_id\": \"string\",\n \"bic\": \"string\",\n \"iban\": \"string\"\n }\n ],\n \"bacs\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"sort_code\": \"string\"\n }\n ]\n },\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"balanceResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\"\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"products\": [\n {}\n ],\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"identityResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n {}\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"assetsReportResponse\": {\n \"report\": {\n \"asset_report_id\": \"string\",\n \"client_report_id\": \"string\",\n \"date_generated\": \"string\",\n \"days_requested\": 0,\n \"items\": [\n {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"days_available\": 0,\n \"historical_balances\": [\n {\n \"current\": 0,\n \"date\": \"string\",\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n }\n ],\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": null,\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n \"string\"\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"ownership_type\": null,\n \"subtype\": \"string\",\n \"transactions\": [\n {}\n ],\n \"type\": \"string\"\n }\n ],\n \"date_last_updated\": \"string\",\n \"institution_id\": \"string\",\n \"institution_name\": \"string\",\n \"item_id\": \"string\"\n }\n ],\n \"user\": {\n \"client_user_id\": \"string\",\n \"email\": \"string\",\n \"first_name\": \"string\",\n \"last_name\": \"string\",\n \"middle_name\": \"string\",\n \"phone_number\": \"string\",\n \"ssn\": \"string\"\n }\n },\n \"request_id\": \"string\",\n \"warnings\": [\n {}\n ]\n }\n }\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://api.sandbox.sardine.ai/v1/banks/transactions")
.header("Content-Type", "application/json")
.body("{\n \"sessionKey\": \"string\",\n \"customerId\": \"string\",\n \"plaidData\": {\n \"transactionsResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"transactions\": [\n {\n \"account_id\": \"string\",\n \"amount\": 0,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null,\n \"category\": [\n {}\n ],\n \"category_id\": \"string\",\n \"check_number\": null,\n \"date\": \"string\",\n \"datetime\": null,\n \"authorized_date\": \"string\",\n \"authorized_datetime\": null,\n \"location\": {\n \"address\": \"string\",\n \"city\": \"string\",\n \"region\": \"string\",\n \"postal_code\": \"string\",\n \"country\": \"string\",\n \"lat\": 0,\n \"lon\": 0,\n \"store_number\": \"string\"\n },\n \"name\": \"string\",\n \"merchant_name\": \"string\",\n \"payment_meta\": {\n \"by_order_of\": null,\n \"payee\": null,\n \"payer\": null,\n \"payment_method\": null,\n \"payment_processor\": null,\n \"ppd_id\": null,\n \"reason\": null,\n \"reference_number\": null\n },\n \"payment_channel\": \"string\",\n \"pending\": true,\n \"pending_transaction_id\": null,\n \"account_owner\": null,\n \"transaction_id\": \"string\",\n \"transaction_code\": null,\n \"transaction_type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"total_transactions\": 0,\n \"request_id\": \"string\"\n },\n \"authResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"limit\": null,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"numbers\": {\n \"ach\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"routing\": \"string\",\n \"wire_routing\": \"string\"\n }\n ],\n \"eft\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"institution\": \"string\",\n \"branch\": \"string\"\n }\n ],\n \"international\": [\n {\n \"account_id\": \"string\",\n \"bic\": \"string\",\n \"iban\": \"string\"\n }\n ],\n \"bacs\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"sort_code\": \"string\"\n }\n ]\n },\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"balanceResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\"\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"products\": [\n {}\n ],\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"identityResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n {}\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"assetsReportResponse\": {\n \"report\": {\n \"asset_report_id\": \"string\",\n \"client_report_id\": \"string\",\n \"date_generated\": \"string\",\n \"days_requested\": 0,\n \"items\": [\n {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"days_available\": 0,\n \"historical_balances\": [\n {\n \"current\": 0,\n \"date\": \"string\",\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n }\n ],\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": null,\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n \"string\"\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"ownership_type\": null,\n \"subtype\": \"string\",\n \"transactions\": [\n {}\n ],\n \"type\": \"string\"\n }\n ],\n \"date_last_updated\": \"string\",\n \"institution_id\": \"string\",\n \"institution_name\": \"string\",\n \"item_id\": \"string\"\n }\n ],\n \"user\": {\n \"client_user_id\": \"string\",\n \"email\": \"string\",\n \"first_name\": \"string\",\n \"last_name\": \"string\",\n \"middle_name\": \"string\",\n \"phone_number\": \"string\",\n \"ssn\": \"string\"\n }\n },\n \"request_id\": \"string\",\n \"warnings\": [\n {}\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.sardine.ai/v1/banks/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionKey\": \"string\",\n \"customerId\": \"string\",\n \"plaidData\": {\n \"transactionsResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"transactions\": [\n {\n \"account_id\": \"string\",\n \"amount\": 0,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null,\n \"category\": [\n {}\n ],\n \"category_id\": \"string\",\n \"check_number\": null,\n \"date\": \"string\",\n \"datetime\": null,\n \"authorized_date\": \"string\",\n \"authorized_datetime\": null,\n \"location\": {\n \"address\": \"string\",\n \"city\": \"string\",\n \"region\": \"string\",\n \"postal_code\": \"string\",\n \"country\": \"string\",\n \"lat\": 0,\n \"lon\": 0,\n \"store_number\": \"string\"\n },\n \"name\": \"string\",\n \"merchant_name\": \"string\",\n \"payment_meta\": {\n \"by_order_of\": null,\n \"payee\": null,\n \"payer\": null,\n \"payment_method\": null,\n \"payment_processor\": null,\n \"ppd_id\": null,\n \"reason\": null,\n \"reference_number\": null\n },\n \"payment_channel\": \"string\",\n \"pending\": true,\n \"pending_transaction_id\": null,\n \"account_owner\": null,\n \"transaction_id\": \"string\",\n \"transaction_code\": null,\n \"transaction_type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"total_transactions\": 0,\n \"request_id\": \"string\"\n },\n \"authResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"limit\": null,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"numbers\": {\n \"ach\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"routing\": \"string\",\n \"wire_routing\": \"string\"\n }\n ],\n \"eft\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"institution\": \"string\",\n \"branch\": \"string\"\n }\n ],\n \"international\": [\n {\n \"account_id\": \"string\",\n \"bic\": \"string\",\n \"iban\": \"string\"\n }\n ],\n \"bacs\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"sort_code\": \"string\"\n }\n ]\n },\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"balanceResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\"\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"products\": [\n {}\n ],\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"identityResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n {}\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"assetsReportResponse\": {\n \"report\": {\n \"asset_report_id\": \"string\",\n \"client_report_id\": \"string\",\n \"date_generated\": \"string\",\n \"days_requested\": 0,\n \"items\": [\n {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"days_available\": 0,\n \"historical_balances\": [\n {\n \"current\": 0,\n \"date\": \"string\",\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n }\n ],\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": null,\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n \"string\"\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"ownership_type\": null,\n \"subtype\": \"string\",\n \"transactions\": [\n {}\n ],\n \"type\": \"string\"\n }\n ],\n \"date_last_updated\": \"string\",\n \"institution_id\": \"string\",\n \"institution_name\": \"string\",\n \"item_id\": \"string\"\n }\n ],\n \"user\": {\n \"client_user_id\": \"string\",\n \"email\": \"string\",\n \"first_name\": \"string\",\n \"last_name\": \"string\",\n \"middle_name\": \"string\",\n \"phone_number\": \"string\",\n \"ssn\": \"string\"\n }\n },\n \"request_id\": \"string\",\n \"warnings\": [\n {}\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_bodyBanks
Send bank information
Simply populate the appropriate field in the plaidData object. Make sure to fill in the correct field corresponding to the correct Plaid API endpoint. For example, if you call the Plaid transactions API, you should set plaidData.transactionsResponse to be the JSON string containing the response. Note that the response fields in plaidData are all optional and you may populate as many or few as you would like, as long as an authResponse is sent at least once per account.
Important note: You must provide an authResponse at least once per customer bank account so that we can store the mapping from bank account to Plaid account ID.
GET
/
banks
/
transactions
Send bank information
curl --request GET \
--url https://api.sandbox.sardine.ai/v1/banks/transactions \
--header 'Content-Type: application/json' \
--data '
{
"sessionKey": "string",
"customerId": "string",
"plaidData": {
"transactionsResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": null,
"unofficial_currency_code": null
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"transactions": [
{
"account_id": "string",
"amount": 0,
"iso_currency_code": "string",
"unofficial_currency_code": null,
"category": [
{}
],
"category_id": "string",
"check_number": null,
"date": "string",
"datetime": null,
"authorized_date": "string",
"authorized_datetime": null,
"location": {
"address": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"lat": 0,
"lon": 0,
"store_number": "string"
},
"name": "string",
"merchant_name": "string",
"payment_meta": {
"by_order_of": null,
"payee": null,
"payer": null,
"payment_method": null,
"payment_processor": null,
"ppd_id": null,
"reason": null,
"reference_number": null
},
"payment_channel": "string",
"pending": true,
"pending_transaction_id": null,
"account_owner": null,
"transaction_id": "string",
"transaction_code": null,
"transaction_type": "string"
}
],
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"consent_expiration_time": null,
"error": null,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"total_transactions": 0,
"request_id": "string"
},
"authResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"limit": null,
"iso_currency_code": "string",
"unofficial_currency_code": null
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"numbers": {
"ach": [
{
"account": "string",
"account_id": "string",
"routing": "string",
"wire_routing": "string"
}
],
"eft": [
{
"account": "string",
"account_id": "string",
"institution": "string",
"branch": "string"
}
],
"international": [
{
"account_id": "string",
"bic": "string",
"iban": "string"
}
],
"bacs": [
{
"account": "string",
"account_id": "string",
"sort_code": "string"
}
]
},
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"consent_expiration_time": null,
"error": null,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"balanceResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string"
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"institution_id": "string",
"item_id": "string",
"products": [
{}
],
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"identityResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": null,
"unofficial_currency_code": null
},
"mask": "string",
"name": "string",
"official_name": "string",
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": true
}
],
"emails": [
{
"data": "string",
"primary": true,
"type": "string"
}
],
"names": [
{}
],
"phone_numbers": [
{
"data": "string",
"primary": true,
"type": "string"
}
]
}
],
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [
{}
],
"billed_products": [
{}
],
"consent_expiration_time": null,
"error": null,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"assetsReportResponse": {
"report": {
"asset_report_id": "string",
"client_report_id": "string",
"date_generated": "string",
"days_requested": 0,
"items": [
{
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": null,
"unofficial_currency_code": null
},
"days_available": 0,
"historical_balances": [
{
"current": 0,
"date": "string",
"iso_currency_code": "string",
"unofficial_currency_code": null
}
],
"mask": "string",
"name": "string",
"official_name": null,
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": true
}
],
"emails": [
{
"data": "string",
"primary": true,
"type": "string"
}
],
"names": [
"string"
],
"phone_numbers": [
{
"data": "string",
"primary": true,
"type": "string"
}
]
}
],
"ownership_type": null,
"subtype": "string",
"transactions": [
{}
],
"type": "string"
}
],
"date_last_updated": "string",
"institution_id": "string",
"institution_name": "string",
"item_id": "string"
}
],
"user": {
"client_user_id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"phone_number": "string",
"ssn": "string"
}
},
"request_id": "string",
"warnings": [
{}
]
}
}
}
'import requests
url = "https://api.sandbox.sardine.ai/v1/banks/transactions"
payload = {
"sessionKey": "string",
"customerId": "string",
"plaidData": {
"transactionsResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": None,
"unofficial_currency_code": None
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"transactions": [
{
"account_id": "string",
"amount": 0,
"iso_currency_code": "string",
"unofficial_currency_code": None,
"category": [{}],
"category_id": "string",
"check_number": None,
"date": "string",
"datetime": None,
"authorized_date": "string",
"authorized_datetime": None,
"location": {
"address": "string",
"city": "string",
"region": "string",
"postal_code": "string",
"country": "string",
"lat": 0,
"lon": 0,
"store_number": "string"
},
"name": "string",
"merchant_name": "string",
"payment_meta": {
"by_order_of": None,
"payee": None,
"payer": None,
"payment_method": None,
"payment_processor": None,
"ppd_id": None,
"reason": None,
"reference_number": None
},
"payment_channel": "string",
"pending": True,
"pending_transaction_id": None,
"account_owner": None,
"transaction_id": "string",
"transaction_code": None,
"transaction_type": "string"
}
],
"item": {
"available_products": [{}],
"billed_products": [{}],
"consent_expiration_time": None,
"error": None,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"total_transactions": 0,
"request_id": "string"
},
"authResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"limit": None,
"iso_currency_code": "string",
"unofficial_currency_code": None
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"numbers": {
"ach": [
{
"account": "string",
"account_id": "string",
"routing": "string",
"wire_routing": "string"
}
],
"eft": [
{
"account": "string",
"account_id": "string",
"institution": "string",
"branch": "string"
}
],
"international": [
{
"account_id": "string",
"bic": "string",
"iban": "string"
}
],
"bacs": [
{
"account": "string",
"account_id": "string",
"sort_code": "string"
}
]
},
"item": {
"available_products": [{}],
"billed_products": [{}],
"consent_expiration_time": None,
"error": None,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"balanceResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string"
},
"mask": "string",
"name": "string",
"official_name": "string",
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [{}],
"billed_products": [{}],
"institution_id": "string",
"item_id": "string",
"products": [{}],
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"identityResponse": {
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": None,
"unofficial_currency_code": None
},
"mask": "string",
"name": "string",
"official_name": "string",
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": True
}
],
"emails": [
{
"data": "string",
"primary": True,
"type": "string"
}
],
"names": [{}],
"phone_numbers": [
{
"data": "string",
"primary": True,
"type": "string"
}
]
}
],
"subtype": "string",
"type": "string"
}
],
"item": {
"available_products": [{}],
"billed_products": [{}],
"consent_expiration_time": None,
"error": None,
"institution_id": "string",
"item_id": "string",
"update_type": "string",
"webhook": "string"
},
"request_id": "string"
},
"assetsReportResponse": {
"report": {
"asset_report_id": "string",
"client_report_id": "string",
"date_generated": "string",
"days_requested": 0,
"items": [
{
"accounts": [
{
"account_id": "string",
"balances": {
"available": 0,
"current": 0,
"iso_currency_code": "string",
"limit": None,
"unofficial_currency_code": None
},
"days_available": 0,
"historical_balances": [
{
"current": 0,
"date": "string",
"iso_currency_code": "string",
"unofficial_currency_code": None
}
],
"mask": "string",
"name": "string",
"official_name": None,
"owners": [
{
"addresses": [
{
"data": {
"city": "string",
"country": "string",
"postal_code": "string",
"region": "string",
"street": "string"
},
"primary": True
}
],
"emails": [
{
"data": "string",
"primary": True,
"type": "string"
}
],
"names": ["string"],
"phone_numbers": [
{
"data": "string",
"primary": True,
"type": "string"
}
]
}
],
"ownership_type": None,
"subtype": "string",
"transactions": [{}],
"type": "string"
}
],
"date_last_updated": "string",
"institution_id": "string",
"institution_name": "string",
"item_id": "string"
}
],
"user": {
"client_user_id": "string",
"email": "string",
"first_name": "string",
"last_name": "string",
"middle_name": "string",
"phone_number": "string",
"ssn": "string"
}
},
"request_id": "string",
"warnings": [{}]
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
sessionKey: 'string',
customerId: 'string',
plaidData: {
transactionsResponse: {
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
iso_currency_code: 'string',
limit: null,
unofficial_currency_code: null
},
mask: 'string',
name: 'string',
official_name: 'string',
subtype: 'string',
type: 'string'
}
],
transactions: [
{
account_id: 'string',
amount: 0,
iso_currency_code: 'string',
unofficial_currency_code: null,
category: [{}],
category_id: 'string',
check_number: null,
date: 'string',
datetime: null,
authorized_date: 'string',
authorized_datetime: null,
location: {
address: 'string',
city: 'string',
region: 'string',
postal_code: 'string',
country: 'string',
lat: 0,
lon: 0,
store_number: 'string'
},
name: 'string',
merchant_name: 'string',
payment_meta: {
by_order_of: null,
payee: null,
payer: null,
payment_method: null,
payment_processor: null,
ppd_id: null,
reason: null,
reference_number: null
},
payment_channel: 'string',
pending: true,
pending_transaction_id: null,
account_owner: null,
transaction_id: 'string',
transaction_code: null,
transaction_type: 'string'
}
],
item: {
available_products: [{}],
billed_products: [{}],
consent_expiration_time: null,
error: null,
institution_id: 'string',
item_id: 'string',
update_type: 'string',
webhook: 'string'
},
total_transactions: 0,
request_id: 'string'
},
authResponse: {
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
limit: null,
iso_currency_code: 'string',
unofficial_currency_code: null
},
mask: 'string',
name: 'string',
official_name: 'string',
subtype: 'string',
type: 'string'
}
],
numbers: {
ach: [
{
account: 'string',
account_id: 'string',
routing: 'string',
wire_routing: 'string'
}
],
eft: [
{
account: 'string',
account_id: 'string',
institution: 'string',
branch: 'string'
}
],
international: [{account_id: 'string', bic: 'string', iban: 'string'}],
bacs: [{account: 'string', account_id: 'string', sort_code: 'string'}]
},
item: {
available_products: [{}],
billed_products: [{}],
consent_expiration_time: null,
error: null,
institution_id: 'string',
item_id: 'string',
update_type: 'string',
webhook: 'string'
},
request_id: 'string'
},
balanceResponse: {
accounts: [
{
account_id: 'string',
balances: {available: 0, current: 0, iso_currency_code: 'string'},
mask: 'string',
name: 'string',
official_name: 'string',
subtype: 'string',
type: 'string'
}
],
item: {
available_products: [{}],
billed_products: [{}],
institution_id: 'string',
item_id: 'string',
products: [{}],
update_type: 'string',
webhook: 'string'
},
request_id: 'string'
},
identityResponse: {
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
iso_currency_code: 'string',
limit: null,
unofficial_currency_code: null
},
mask: 'string',
name: 'string',
official_name: 'string',
owners: [
{
addresses: [
{
data: {
city: 'string',
country: 'string',
postal_code: 'string',
region: 'string',
street: 'string'
},
primary: true
}
],
emails: [{data: 'string', primary: true, type: 'string'}],
names: [{}],
phone_numbers: [{data: 'string', primary: true, type: 'string'}]
}
],
subtype: 'string',
type: 'string'
}
],
item: {
available_products: [{}],
billed_products: [{}],
consent_expiration_time: null,
error: null,
institution_id: 'string',
item_id: 'string',
update_type: 'string',
webhook: 'string'
},
request_id: 'string'
},
assetsReportResponse: {
report: {
asset_report_id: 'string',
client_report_id: 'string',
date_generated: 'string',
days_requested: 0,
items: [
{
accounts: [
{
account_id: 'string',
balances: {
available: 0,
current: 0,
iso_currency_code: 'string',
limit: null,
unofficial_currency_code: null
},
days_available: 0,
historical_balances: [
{
current: 0,
date: 'string',
iso_currency_code: 'string',
unofficial_currency_code: null
}
],
mask: 'string',
name: 'string',
official_name: null,
owners: [
{
addresses: [
{
data: {
city: 'string',
country: 'string',
postal_code: 'string',
region: 'string',
street: 'string'
},
primary: true
}
],
emails: [{data: 'string', primary: true, type: 'string'}],
names: ['string'],
phone_numbers: [{data: 'string', primary: true, type: 'string'}]
}
],
ownership_type: null,
subtype: 'string',
transactions: [{}],
type: 'string'
}
],
date_last_updated: 'string',
institution_id: 'string',
institution_name: 'string',
item_id: 'string'
}
],
user: {
client_user_id: 'string',
email: 'string',
first_name: 'string',
last_name: 'string',
middle_name: 'string',
phone_number: 'string',
ssn: 'string'
}
},
request_id: 'string',
warnings: [{}]
}
}
})
};
fetch('https://api.sandbox.sardine.ai/v1/banks/transactions', 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/banks/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'sessionKey' => 'string',
'customerId' => 'string',
'plaidData' => [
'transactionsResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string',
'limit' => null,
'unofficial_currency_code' => null
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'subtype' => 'string',
'type' => 'string'
]
],
'transactions' => [
[
'account_id' => 'string',
'amount' => 0,
'iso_currency_code' => 'string',
'unofficial_currency_code' => null,
'category' => [
[
]
],
'category_id' => 'string',
'check_number' => null,
'date' => 'string',
'datetime' => null,
'authorized_date' => 'string',
'authorized_datetime' => null,
'location' => [
'address' => 'string',
'city' => 'string',
'region' => 'string',
'postal_code' => 'string',
'country' => 'string',
'lat' => 0,
'lon' => 0,
'store_number' => 'string'
],
'name' => 'string',
'merchant_name' => 'string',
'payment_meta' => [
'by_order_of' => null,
'payee' => null,
'payer' => null,
'payment_method' => null,
'payment_processor' => null,
'ppd_id' => null,
'reason' => null,
'reference_number' => null
],
'payment_channel' => 'string',
'pending' => true,
'pending_transaction_id' => null,
'account_owner' => null,
'transaction_id' => 'string',
'transaction_code' => null,
'transaction_type' => 'string'
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'consent_expiration_time' => null,
'error' => null,
'institution_id' => 'string',
'item_id' => 'string',
'update_type' => 'string',
'webhook' => 'string'
],
'total_transactions' => 0,
'request_id' => 'string'
],
'authResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'limit' => null,
'iso_currency_code' => 'string',
'unofficial_currency_code' => null
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'subtype' => 'string',
'type' => 'string'
]
],
'numbers' => [
'ach' => [
[
'account' => 'string',
'account_id' => 'string',
'routing' => 'string',
'wire_routing' => 'string'
]
],
'eft' => [
[
'account' => 'string',
'account_id' => 'string',
'institution' => 'string',
'branch' => 'string'
]
],
'international' => [
[
'account_id' => 'string',
'bic' => 'string',
'iban' => 'string'
]
],
'bacs' => [
[
'account' => 'string',
'account_id' => 'string',
'sort_code' => 'string'
]
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'consent_expiration_time' => null,
'error' => null,
'institution_id' => 'string',
'item_id' => 'string',
'update_type' => 'string',
'webhook' => 'string'
],
'request_id' => 'string'
],
'balanceResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string'
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'subtype' => 'string',
'type' => 'string'
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'institution_id' => 'string',
'item_id' => 'string',
'products' => [
[
]
],
'update_type' => 'string',
'webhook' => 'string'
],
'request_id' => 'string'
],
'identityResponse' => [
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string',
'limit' => null,
'unofficial_currency_code' => null
],
'mask' => 'string',
'name' => 'string',
'official_name' => 'string',
'owners' => [
[
'addresses' => [
[
'data' => [
'city' => 'string',
'country' => 'string',
'postal_code' => 'string',
'region' => 'string',
'street' => 'string'
],
'primary' => true
]
],
'emails' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
],
'names' => [
[
]
],
'phone_numbers' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
]
]
],
'subtype' => 'string',
'type' => 'string'
]
],
'item' => [
'available_products' => [
[
]
],
'billed_products' => [
[
]
],
'consent_expiration_time' => null,
'error' => null,
'institution_id' => 'string',
'item_id' => 'string',
'update_type' => 'string',
'webhook' => 'string'
],
'request_id' => 'string'
],
'assetsReportResponse' => [
'report' => [
'asset_report_id' => 'string',
'client_report_id' => 'string',
'date_generated' => 'string',
'days_requested' => 0,
'items' => [
[
'accounts' => [
[
'account_id' => 'string',
'balances' => [
'available' => 0,
'current' => 0,
'iso_currency_code' => 'string',
'limit' => null,
'unofficial_currency_code' => null
],
'days_available' => 0,
'historical_balances' => [
[
'current' => 0,
'date' => 'string',
'iso_currency_code' => 'string',
'unofficial_currency_code' => null
]
],
'mask' => 'string',
'name' => 'string',
'official_name' => null,
'owners' => [
[
'addresses' => [
[
'data' => [
'city' => 'string',
'country' => 'string',
'postal_code' => 'string',
'region' => 'string',
'street' => 'string'
],
'primary' => true
]
],
'emails' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
],
'names' => [
'string'
],
'phone_numbers' => [
[
'data' => 'string',
'primary' => true,
'type' => 'string'
]
]
]
],
'ownership_type' => null,
'subtype' => 'string',
'transactions' => [
[
]
],
'type' => 'string'
]
],
'date_last_updated' => 'string',
'institution_id' => 'string',
'institution_name' => 'string',
'item_id' => 'string'
]
],
'user' => [
'client_user_id' => 'string',
'email' => 'string',
'first_name' => 'string',
'last_name' => 'string',
'middle_name' => 'string',
'phone_number' => 'string',
'ssn' => 'string'
]
],
'request_id' => 'string',
'warnings' => [
[
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"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.sardine.ai/v1/banks/transactions"
payload := strings.NewReader("{\n \"sessionKey\": \"string\",\n \"customerId\": \"string\",\n \"plaidData\": {\n \"transactionsResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"transactions\": [\n {\n \"account_id\": \"string\",\n \"amount\": 0,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null,\n \"category\": [\n {}\n ],\n \"category_id\": \"string\",\n \"check_number\": null,\n \"date\": \"string\",\n \"datetime\": null,\n \"authorized_date\": \"string\",\n \"authorized_datetime\": null,\n \"location\": {\n \"address\": \"string\",\n \"city\": \"string\",\n \"region\": \"string\",\n \"postal_code\": \"string\",\n \"country\": \"string\",\n \"lat\": 0,\n \"lon\": 0,\n \"store_number\": \"string\"\n },\n \"name\": \"string\",\n \"merchant_name\": \"string\",\n \"payment_meta\": {\n \"by_order_of\": null,\n \"payee\": null,\n \"payer\": null,\n \"payment_method\": null,\n \"payment_processor\": null,\n \"ppd_id\": null,\n \"reason\": null,\n \"reference_number\": null\n },\n \"payment_channel\": \"string\",\n \"pending\": true,\n \"pending_transaction_id\": null,\n \"account_owner\": null,\n \"transaction_id\": \"string\",\n \"transaction_code\": null,\n \"transaction_type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"total_transactions\": 0,\n \"request_id\": \"string\"\n },\n \"authResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"limit\": null,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"numbers\": {\n \"ach\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"routing\": \"string\",\n \"wire_routing\": \"string\"\n }\n ],\n \"eft\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"institution\": \"string\",\n \"branch\": \"string\"\n }\n ],\n \"international\": [\n {\n \"account_id\": \"string\",\n \"bic\": \"string\",\n \"iban\": \"string\"\n }\n ],\n \"bacs\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"sort_code\": \"string\"\n }\n ]\n },\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"balanceResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\"\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"products\": [\n {}\n ],\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"identityResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n {}\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"assetsReportResponse\": {\n \"report\": {\n \"asset_report_id\": \"string\",\n \"client_report_id\": \"string\",\n \"date_generated\": \"string\",\n \"days_requested\": 0,\n \"items\": [\n {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"days_available\": 0,\n \"historical_balances\": [\n {\n \"current\": 0,\n \"date\": \"string\",\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n }\n ],\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": null,\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n \"string\"\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"ownership_type\": null,\n \"subtype\": \"string\",\n \"transactions\": [\n {}\n ],\n \"type\": \"string\"\n }\n ],\n \"date_last_updated\": \"string\",\n \"institution_id\": \"string\",\n \"institution_name\": \"string\",\n \"item_id\": \"string\"\n }\n ],\n \"user\": {\n \"client_user_id\": \"string\",\n \"email\": \"string\",\n \"first_name\": \"string\",\n \"last_name\": \"string\",\n \"middle_name\": \"string\",\n \"phone_number\": \"string\",\n \"ssn\": \"string\"\n }\n },\n \"request_id\": \"string\",\n \"warnings\": [\n {}\n ]\n }\n }\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://api.sandbox.sardine.ai/v1/banks/transactions")
.header("Content-Type", "application/json")
.body("{\n \"sessionKey\": \"string\",\n \"customerId\": \"string\",\n \"plaidData\": {\n \"transactionsResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"transactions\": [\n {\n \"account_id\": \"string\",\n \"amount\": 0,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null,\n \"category\": [\n {}\n ],\n \"category_id\": \"string\",\n \"check_number\": null,\n \"date\": \"string\",\n \"datetime\": null,\n \"authorized_date\": \"string\",\n \"authorized_datetime\": null,\n \"location\": {\n \"address\": \"string\",\n \"city\": \"string\",\n \"region\": \"string\",\n \"postal_code\": \"string\",\n \"country\": \"string\",\n \"lat\": 0,\n \"lon\": 0,\n \"store_number\": \"string\"\n },\n \"name\": \"string\",\n \"merchant_name\": \"string\",\n \"payment_meta\": {\n \"by_order_of\": null,\n \"payee\": null,\n \"payer\": null,\n \"payment_method\": null,\n \"payment_processor\": null,\n \"ppd_id\": null,\n \"reason\": null,\n \"reference_number\": null\n },\n \"payment_channel\": \"string\",\n \"pending\": true,\n \"pending_transaction_id\": null,\n \"account_owner\": null,\n \"transaction_id\": \"string\",\n \"transaction_code\": null,\n \"transaction_type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"total_transactions\": 0,\n \"request_id\": \"string\"\n },\n \"authResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"limit\": null,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"numbers\": {\n \"ach\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"routing\": \"string\",\n \"wire_routing\": \"string\"\n }\n ],\n \"eft\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"institution\": \"string\",\n \"branch\": \"string\"\n }\n ],\n \"international\": [\n {\n \"account_id\": \"string\",\n \"bic\": \"string\",\n \"iban\": \"string\"\n }\n ],\n \"bacs\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"sort_code\": \"string\"\n }\n ]\n },\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"balanceResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\"\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"products\": [\n {}\n ],\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"identityResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n {}\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"assetsReportResponse\": {\n \"report\": {\n \"asset_report_id\": \"string\",\n \"client_report_id\": \"string\",\n \"date_generated\": \"string\",\n \"days_requested\": 0,\n \"items\": [\n {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"days_available\": 0,\n \"historical_balances\": [\n {\n \"current\": 0,\n \"date\": \"string\",\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n }\n ],\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": null,\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n \"string\"\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"ownership_type\": null,\n \"subtype\": \"string\",\n \"transactions\": [\n {}\n ],\n \"type\": \"string\"\n }\n ],\n \"date_last_updated\": \"string\",\n \"institution_id\": \"string\",\n \"institution_name\": \"string\",\n \"item_id\": \"string\"\n }\n ],\n \"user\": {\n \"client_user_id\": \"string\",\n \"email\": \"string\",\n \"first_name\": \"string\",\n \"last_name\": \"string\",\n \"middle_name\": \"string\",\n \"phone_number\": \"string\",\n \"ssn\": \"string\"\n }\n },\n \"request_id\": \"string\",\n \"warnings\": [\n {}\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.sardine.ai/v1/banks/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"sessionKey\": \"string\",\n \"customerId\": \"string\",\n \"plaidData\": {\n \"transactionsResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"transactions\": [\n {\n \"account_id\": \"string\",\n \"amount\": 0,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null,\n \"category\": [\n {}\n ],\n \"category_id\": \"string\",\n \"check_number\": null,\n \"date\": \"string\",\n \"datetime\": null,\n \"authorized_date\": \"string\",\n \"authorized_datetime\": null,\n \"location\": {\n \"address\": \"string\",\n \"city\": \"string\",\n \"region\": \"string\",\n \"postal_code\": \"string\",\n \"country\": \"string\",\n \"lat\": 0,\n \"lon\": 0,\n \"store_number\": \"string\"\n },\n \"name\": \"string\",\n \"merchant_name\": \"string\",\n \"payment_meta\": {\n \"by_order_of\": null,\n \"payee\": null,\n \"payer\": null,\n \"payment_method\": null,\n \"payment_processor\": null,\n \"ppd_id\": null,\n \"reason\": null,\n \"reference_number\": null\n },\n \"payment_channel\": \"string\",\n \"pending\": true,\n \"pending_transaction_id\": null,\n \"account_owner\": null,\n \"transaction_id\": \"string\",\n \"transaction_code\": null,\n \"transaction_type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"total_transactions\": 0,\n \"request_id\": \"string\"\n },\n \"authResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"limit\": null,\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"numbers\": {\n \"ach\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"routing\": \"string\",\n \"wire_routing\": \"string\"\n }\n ],\n \"eft\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"institution\": \"string\",\n \"branch\": \"string\"\n }\n ],\n \"international\": [\n {\n \"account_id\": \"string\",\n \"bic\": \"string\",\n \"iban\": \"string\"\n }\n ],\n \"bacs\": [\n {\n \"account\": \"string\",\n \"account_id\": \"string\",\n \"sort_code\": \"string\"\n }\n ]\n },\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"balanceResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\"\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"products\": [\n {}\n ],\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"identityResponse\": {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": \"string\",\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n {}\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"subtype\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"item\": {\n \"available_products\": [\n {}\n ],\n \"billed_products\": [\n {}\n ],\n \"consent_expiration_time\": null,\n \"error\": null,\n \"institution_id\": \"string\",\n \"item_id\": \"string\",\n \"update_type\": \"string\",\n \"webhook\": \"string\"\n },\n \"request_id\": \"string\"\n },\n \"assetsReportResponse\": {\n \"report\": {\n \"asset_report_id\": \"string\",\n \"client_report_id\": \"string\",\n \"date_generated\": \"string\",\n \"days_requested\": 0,\n \"items\": [\n {\n \"accounts\": [\n {\n \"account_id\": \"string\",\n \"balances\": {\n \"available\": 0,\n \"current\": 0,\n \"iso_currency_code\": \"string\",\n \"limit\": null,\n \"unofficial_currency_code\": null\n },\n \"days_available\": 0,\n \"historical_balances\": [\n {\n \"current\": 0,\n \"date\": \"string\",\n \"iso_currency_code\": \"string\",\n \"unofficial_currency_code\": null\n }\n ],\n \"mask\": \"string\",\n \"name\": \"string\",\n \"official_name\": null,\n \"owners\": [\n {\n \"addresses\": [\n {\n \"data\": {\n \"city\": \"string\",\n \"country\": \"string\",\n \"postal_code\": \"string\",\n \"region\": \"string\",\n \"street\": \"string\"\n },\n \"primary\": true\n }\n ],\n \"emails\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ],\n \"names\": [\n \"string\"\n ],\n \"phone_numbers\": [\n {\n \"data\": \"string\",\n \"primary\": true,\n \"type\": \"string\"\n }\n ]\n }\n ],\n \"ownership_type\": null,\n \"subtype\": \"string\",\n \"transactions\": [\n {}\n ],\n \"type\": \"string\"\n }\n ],\n \"date_last_updated\": \"string\",\n \"institution_id\": \"string\",\n \"institution_name\": \"string\",\n \"item_id\": \"string\"\n }\n ],\n \"user\": {\n \"client_user_id\": \"string\",\n \"email\": \"string\",\n \"first_name\": \"string\",\n \"last_name\": \"string\",\n \"middle_name\": \"string\",\n \"phone_number\": \"string\",\n \"ssn\": \"string\"\n }\n },\n \"request_id\": \"string\",\n \"warnings\": [\n {}\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body⌘I