Get daily account balance limits
You can use the endpoint to get a range of the account's balance limits as calculated daily at 11:59PM in your time zone. You can define your own date range for the query or use the default range of 10 days prior to yesterday. You can query the account balance limits as far back as 515 days before the current date for the maximum range of 90 days.
Previous authorization with a basic access token is required to get access to this endpoint.
Account limits report file
In addition to using this endpoint, you can also schedule the account limits report file, which contains all consolidated account balances from the previous day.
Examples
Get an access token for use with basic authentication.
POST https://api-sandbox.pismolabs.io/passport/v2/s2s/access-token
Sending only the required parameter
GET <https://api-sandbox.pismolabs.io/balances-limits/v1/accounts/2412/daily-balances
>
In this example, if you provide only the accountId
in the request header, the response returns the list of balances for the last 10 days until one day before the request date. Here is the expected response:
{
"pages": 1,
"current_page": 1,
"per_page": 10,
"total_items": 10,
"items": [
{
"account_id": "2412",
"org_id": "08102A0B-D4F8-42A2-8B0E-2052D05577D7",
"ref_date": "2022-08-22",
"available_credit_limit": 2997.41,
"available_withdrawal_credit": 411.05,
"available_total_installment_credit": 455.45,
"available_savings_account_limit": 311.08
},
{
"account_id": "2412",
"org_id": "08102A0B-D4F8-42A2-8B0E-2052D05577D7",
"ref_date": "2022-08-21",
"available_credit_limit": 2997.41,
"available_withdrawal_credit": 411.05,
"available_total_installment_credit": 455.45,
"available_savings_account_limit": 311.08
},
{
"account_id": "2412",
"org_id": "08102A0B-D4F8-42A2-8B0E-2052D05577D7",
"ref_date": "2022-08-20",
"available_credit_limit": 2997.41,
"available_withdrawal_credit": 411.05,
"available_total_installment_credit": 455.45,
"available_savings_account_limit": 311.08
},
…
Sending all parameters
Provide all parameters in the header.
GET <https://api-sandbox.pismolabs.io/balances-limits/v1/accounts/2412/daily-balances?x-cid=Example_B&beginDate=2022-07-10&endDate=2022-08-15&perPage=20&page=1&x-caller=Authorizations_API
>
The response will look as follows.
{
"pages": 2,
"current_page": 1,
"per_page": 20,
"total_items": 37,
"items": [
{
"account_id": "2412",
"org_id": "08102A0B-D4F8-42A2-8B0E-2052D05577D7",
"ref_date": "2022-08-15",
"available_credit_limit": 2997.41,
"available_withdrawal_credit": 411.05,
"available_total_installment_credit": 455.45,
"available_savings_account_limit": 311.08
},
{
"account_id": "2412",
"org_id": "08102A0B-D4F8-42A2-8B0E-2052D05577D7",
"ref_date": "2022-08-14",
"available_credit_limit": 2997.41,
"available_withdrawal_credit": 411.05,
"available_total_installment_credit": 455.45,
"available_savings_account_limit": 311.08
},
…
Updated 10 months ago