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

Billing

Get billing information from the Fiskil API.

AI Actions

The Billing endpoint provides billing transaction history for energy accounts.

Endpoints

MethodEndpointDescription
GET/v1/billingGet billing data for an end user

The Billing Model

AttributeTypeDescription
account_idstringID of the energy account
transaction_idstringUnique billing transaction ID
typestringTransaction type (USAGE, PAYMENT, ADJUSTMENT)
amountnumberTransaction amount
currencystringCurrency code
datestringTransaction date
descriptionstringDescription of the transaction

Example Response

{
  "account_id": "energy_acc_123",
  "transaction_id": "bill_txn_456",
  "type": "USAGE",
  "amount": -185.50,
  "currency": "AUD",
  "date": "2023-01-15",
  "description": "Electricity usage charges - December 2022"
}

Get Billing Data

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

GET https://api.fiskil.com/v1/billing

Query Parameters

ParameterTypeRequiredDescription
end_user_idstringYesThe ID of the end user
account_idstringNoFilter by specific account ID
from_datestringNoStart date (YYYY-MM-DD)
to_datestringNoEnd date (YYYY-MM-DD)
page[size]integerNoNumber of results (max 1000)
page[after]stringNoCursor for pagination

Example Request

curl --request GET \
  --url 'https://api.fiskil.com/v1/billing?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/billing?end_user_id=482c0e2b-5866-46b1-b795-220b7bba45b5',
  {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer {access_token}',
      'accept': 'application/json; charset=UTF-8'
    }
  }
);

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

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

billing = response.json()

Example Response

{
  "data": [
    {
      "account_id": "energy_acc_123",
      "transaction_id": "bill_txn_456",
      "type": "USAGE",
      "amount": -185.50,
      "currency": "AUD",
      "date": "2023-01-15",
      "description": "Electricity usage charges - December 2022"
    },
    {
      "account_id": "energy_acc_123",
      "transaction_id": "bill_txn_457",
      "type": "PAYMENT",
      "amount": 200.00,
      "currency": "AUD",
      "date": "2023-01-20",
      "description": "Payment received - Thank you"
    }
  ],
  "links": {
    "next": "https://api.fiskil.com/v1/billing?end_user_id=482c0e2b-5866-46b1-b795-220b7bba45b5&page[after]=abc123"
  }
}

Transaction Types

TypeDescription
USAGEEnergy usage charges
PAYMENTPayment received
ADJUSTMENTBilling adjustment or credit
FEEFees and charges
CONCESSIONConcession discount applied

Related Endpoints

  • Energy Accounts - Get account details
  • Energy Balances - Get current balance
  • Invoices - Get invoice documents

Was this page helpful?

BalanceConcessions

On this page

EndpointsThe Billing ModelExample ResponseGet Billing DataQuery ParametersExample RequestExample ResponseTransaction TypesRelated Endpoints