Balances

Returns list of energy account balances available under the authorised consent

Balance Endpoints

get/v1/energy/balances

The Balance model

Retrieves an balances object.

Attributes

Expand all
balances
arrayrequired
Show child attributes
Show child attributes
Response
{
    "balances": [
        {
            "account_id": "448b17f8-1937-4f41-8664-da1dfae7ec16",
            "arrangement_id": "arr678",
            "balance": "242.89",
            "fiskil_id": "energy_balance_abcdef",
            "institution_id": "140"
        }
    ],
    "links": {
        "next": "https://api.fiskil.com/v1/accounts?page[after]=x",
        "prev": "https://api.fiskil.com/v1/accounts?page[before]=x"
    }
}
GET

/v1/energy/balance

List all Account Balances

Returns list of energy account balances available under the authorised consent

Parameters

end_user_idstringrequired

A unique identifier for the End User object.

page[before]string

When the page[before] is specified, backwards pagination is achieved

page[after]string

When the page[after] is specified, forwards pagination is achieved

page[size]integer

When the page[size] is specified, no more than page[size] resources will be included in the response's data field. This parameter is set to a sensible default, which varies depending on the endpoint.

Request
GET/v1/energy/balance
curl --request GET \
     --url https://api.fiskil.com/v1/v1/energy/balances?end_user_id={end_user_id}&page[before]={page[before]}&page[after]={page[after]}&page[size]={page[size]} \
     --header 'Authorization: Bearer {access_token}' \
     --header 'accept: application/json; charset=UTF-8' \
     --header 'content-type: application/json; charset=UTF-8' 
Response
{
    "balances": [
        {
            "account_id": "448b17f8-1937-4f41-8664-da1dfae7ec16",
            "arrangement_id": "arr678",
            "balance": "242.89",
            "fiskil_id": "energy_balance_abcdef",
            "institution_id": "140"
        }
    ],
    "links": {
        "next": "https://api.fiskil.com/v1/accounts?page[after]=x",
        "prev": "https://api.fiskil.com/v1/accounts?page[before]=x"
    }
}

Was this page helpful?