Skip to content

Get Balance

Request URL

POST /public/customer/plaid/get-accounts-balance

Snippet Examples

javascript

const axios = require('axios');
const config = {
  method: 'POST',
  url: '${CONNECTFI_BASE_URL}/public/customer/plaid/get-accounts-balance',
  headers: {
    'Content-Type': "application/json",
    'x-connectfi-jwtoken': "A long random string token received from /public/customer/payment/link request"
  },
};

let result;
try {
  result = await axios.request(config);
  if (result.status === 200) {
    console.log(JSON.stringify(result.data));
  }
} catch (err) {
  console.log({
    errCode: err.code,
    responseStatus: err.response && err.response.status,
    data: err.response && JSON.stringify(err.response.data)
  });
}

cURL

curl --location "CONNECTFI_BASE_URL/public/customer/plaid/get-accounts-balance"  --header "Content-Type: application/json" --header "x-connectfi-jwtoken: A long random string token received from /public/customer/payment/link request" 

Successful Response Examples

200 SUCCESSFUL RESPONSE

HEADERS

Header Value
Content-Type application/json
x-connectfi-jwtoken A long random string token received from /public/customer/payment/link request

REQUEST BODY

none

RESPONSE BODY

{
    "code": "0",
    "data": {
        "achAccounts": [
            {
                "account_id": "ZQwkm4RRvNHlgRywXl6WiLoWdARodQCe6zRvD",
                "balances": {
                    "available": 100,
                    "current": 110,
                    "iso_currency_code": "USD",
                    "limit": null,
                    "unofficial_currency_code": null
                },
                "mask": "0000",
                "name": "Plaid Checking",
                "official_name": "Plaid Gold Standard 0% Interest Checking",
                "persistent_account_id": "8cfb8beb89b774ee43b090625f0d61d0814322b43bff984eaf60386e",
                "subtype": "checking",
                "type": "depository",
                "routing": "011401533",
                "wire_routing": "021000021",
                "account": "1111222233330000"
            },
            {
                "account_id": "Mr9nK8XXpAsVKbJnZVQofxkmyRwkyBuLJzl5V",
                "balances": {
                    "available": 200,
                    "current": 210,
                    "iso_currency_code": "USD",
                    "limit": null,
                    "unofficial_currency_code": null
                },
                "mask": "1111",
                "name": "Plaid Saving",
                "official_name": "Plaid Silver Standard 0.1% Interest Saving",
                "persistent_account_id": "211a4e5d8361a3afb7a3886362198c7306e00a313b5aa944c20d34b6",
                "subtype": "savings",
                "type": "depository",
                "routing": "011401533",
                "wire_routing": "021000021",
                "account": "1111222233331111"
            }
        ]
    },
    "requestId": "9a3eaf7050ca11efb9c8eca582d34911"
}