FiskilFiskilFiskil DocsFiskil Docs
Log InSign Up
GuidesAPI ReferenceChangelog

Mobile menu

HomeFiskilFiskil
Log InSign Up
Introduction

Getting Started

AuthenticationErrorsPagination

CORE RESOURCES

Linking Accounts

BANKING API

ENERGY API

IDENTITY

Energy Balances

Get energy account balances from the Fiskil API.

AI Actions

The Energy Balances endpoint allows you to retrieve the current balance information for an end user's energy accounts.

Endpoints

MethodEndpointDescription
GET/v1/energy-balancesGet balances for energy accounts

The Energy Balance Model

AttributeTypeDescription
account_idstringID of the energy account
balancenumberCurrent balance (positive = credit, negative = owing)
currencystringCurrency code (AUD)
as_ofstringTimestamp when balance was last updated

Example Response

{
  "account_id": "energy_acc_123",
  "balance": -245.50,
  "currency": "AUD",
  "as_of": "2023-01-15T10:30:00Z"
}

Get Energy Balances

Retrieve balance information for an end user's energy accounts.

GET https://api.fiskil.com/v1/energy-balances

Query Parameters

ParameterTypeRequiredDescription
end_user_idstringYesThe ID of the end user
account_idstringNoFilter by specific account ID

Example Request

curl --request GET \
  --url 'https://api.fiskil.com/v1/energy-balances?end_user_id=482c0e2b-5866-46b1-b795-220b7bba45b5' \
  --header 'Authorization: Bearer {access_token}' \
  --header 'accept: application/json; charset=UTF-8'
const response = await fetch(
  'https://api.fiskil.com/v1/energy-balances?end_user_id=482c0e2b-5866-46b1-b795-220b7bba45b5',
  {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer {access_token}',
      'accept': 'application/json; charset=UTF-8'
    }
  }
);

const balances = await response.json();
import requests

response = requests.get(
    'https://api.fiskil.com/v1/energy-balances',
    params={'end_user_id': '482c0e2b-5866-46b1-b795-220b7bba45b5'},
    headers={
        'Authorization': 'Bearer {access_token}',
        'accept': 'application/json; charset=UTF-8'
    }
)

balances = response.json()

Example Response

{
  "data": [
    {
      "account_id": "energy_acc_123",
      "balance": -245.50,
      "currency": "AUD",
      "as_of": "2023-01-15T10:30:00Z"
    }
  ]
}

Understanding Energy Balances

  • Negative balance: Amount owing to the energy retailer
  • Positive balance: Credit on the account
  • Zero balance: Account is paid in full

Related Endpoints

  • Energy Accounts - Get account details
  • Billing - Get billing information
  • Invoices - Get invoice data

Was this page helpful?

Energy AccountsErrors

On this page

EndpointsThe Energy Balance ModelExample ResponseGet Energy BalancesQuery ParametersExample RequestExample ResponseUnderstanding Energy BalancesRelated Endpoints