Step 4 - Retrieve Balance details
Overview
After successful completion of the Balance Refresh job, you will be able to retrieve the most up-to-date information on the end user's bank balance.
Retrieve Identity Details
HTTP Request
Sandbox - GET https://api.sandbox.aerosync.com/v2/accounts/{{connectionId}}/balance
Production - GET https://api.aerosync.com/v2/accounts/{{connectionId}}/balance
Request Parameters
Parameter | Required? | Type | Description |
---|---|---|---|
connectionId | Yes | String | Aerosync-specific connectionId received from the SDK onSuccess |
Request and Response
GET https://api.sandbox.aerosync.com/v2/accounts/{{connectionId}}/balance
Authorization: Bearer {{token}}
{
"status": "success",
"statusCode": 200,
"account": {
"availableBalance": 3124.25,
"currentBalance": 3124.25,
"lastRefreshTimeStamp": "2023-01-23 18:07:25.815355",
"currency": "USD",
"userId": "fdd3007a951b436c81e46ffe2483ea3a",
"connectionId": "fdd3007a951b436c81e46ffe2483ea3a"
}
}
Updated about 1 month ago