Core Resources
Banking Api
Energy Api
Common api
Returns the invoices for all accounts.
Invoice Endpoints
Retrieves an Invoice object.
{
"invoices": [
{
"account_charges": {
"total_charges": "150.00",
"total_discounts": "20.00",
"total_gst": "5.00"
},
"account_id": "A123",
"balance_at_issue": "100.00",
"due_date": "2023-09-30",
"electricity": {
"other_charges": [
{
"amount": "5.00",
"description": "Environmental charges",
"type": "NETWORK"
}
],
"total_generation_credits": "20.00",
"total_gst": "2.00",
"total_once_off_charges": "6.00",
"total_once_off_discounts": "4.00",
"total_usage_charges": "120.00"
},
"fiskil_id": "energy_invoice_abcdef",
"gas": {
"other_charges": [
{
"amount": "5.00",
"description": "Environmental charges",
"type": "NETWORK"
}
],
"total_generation_credits": "15.00",
"total_gst": "1.50",
"total_once_off_charges": "5.00",
"total_once_off_discounts": "3.00",
"total_usage_charges": "100.00"
},
"gst_amount": "10.00",
"institution_id": "140",
"invoice_amount": "120.00",
"invoice_number": "INV123456",
"issue_date": "2023-09-15",
"pay_on_time_discount": {
"date": "2023-09-20",
"discount_amount": "10.00",
"gst_amount": "1.00"
},
"payment_status": "PAID",
"period": {
"end_date": "2023-09-30",
"start_date": "2023-09-01"
},
"service_points": [
"SP123",
"SP124"
]
}
],
"links": {
"next": "https://api.fiskil.com/v1/accounts?page[after]=x",
"prev": "https://api.fiskil.com/v1/accounts?page[before]=x"
}
}
/v1/energy/invoice
Returns the invoices for all accounts.
A unique identifier for the End User object.
(Optional) Account ID as returned by the Accounts API to fetch invoices for. If unset, invoices for all accounts will be returned
(Optional) Service point ID as returned by the Service Points API to fetch invoices for. If unset, invoices for all service points will be returned.
(Optional) Invoice Number for a specific invoice to fetch.
When the page[before] is specified, backwards pagination is achieved
When the page[after] is specified, forwards pagination is achieved
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.
curl --request GET \
--url https://api.fiskil.com/v1/v1/energy/invoice?end_user_id={end_user_id}&account_id={account_id}&service_point_id={service_point_id}&invoice_number={invoice_number}&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'
{
"invoices": [
{
"account_charges": {
"total_charges": "150.00",
"total_discounts": "20.00",
"total_gst": "5.00"
},
"account_id": "A123",
"balance_at_issue": "100.00",
"due_date": "2023-09-30",
"electricity": {
"other_charges": [
{
"amount": "5.00",
"description": "Environmental charges",
"type": "NETWORK"
}
],
"total_generation_credits": "20.00",
"total_gst": "2.00",
"total_once_off_charges": "6.00",
"total_once_off_discounts": "4.00",
"total_usage_charges": "120.00"
},
"fiskil_id": "energy_invoice_abcdef",
"gas": {
"other_charges": [
{
"amount": "5.00",
"description": "Environmental charges",
"type": "NETWORK"
}
],
"total_generation_credits": "15.00",
"total_gst": "1.50",
"total_once_off_charges": "5.00",
"total_once_off_discounts": "3.00",
"total_usage_charges": "100.00"
},
"gst_amount": "10.00",
"institution_id": "140",
"invoice_amount": "120.00",
"invoice_number": "INV123456",
"issue_date": "2023-09-15",
"pay_on_time_discount": {
"date": "2023-09-20",
"discount_amount": "10.00",
"gst_amount": "1.00"
},
"payment_status": "PAID",
"period": {
"end_date": "2023-09-30",
"start_date": "2023-09-01"
},
"service_points": [
"SP123",
"SP124"
]
}
],
"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?