Skip to main content
POST
/
v1
/
energy
/
customer
/
{customerId}
/
accounts
/
invoices
Error
A valid request URL is required to generate request examples
{
  "data": {
    "invoices": [
      {
        "accountId": "019a09f5-f0bf-7341-91e4-919f1a028b08",
        "invoiceNumber": "125",
        "issueDate": "2025-10-01",
        "dueDate": "2025-16-01",
        "period": {
          "endDate": "2025-09-30",
          "startDate": "2025-07-01"
        },
        "invoiceAmount": "120.00",
        "gstAmount": "12.00",
        "payOnTimeDiscount": {
          "gstAmount": "0.10",
          "discountAmount": "1.00",
          "date": "2025-16-01"
        },
        "balanceAtIssue": "0.00",
        "servicePoints": [
          "019a09f9-7a2d-7591-94dd-695bf62c70c9"
        ],
        "electricity": {
          "totalGst": "12.00",
          "totalGenerationCredits": "0.00",
          "totalOnceOffCharges": "0.00",
          "totalOnceOffDiscounts": "0.00",
          "totalUsageCharges": "120.00"
        },
        "paymentStatus": "NOT_PAID"
      }
    ]
  },
  "meta": {
    "totalRecords": 1,
    "totalPages": 1
  },
  "links": {
    "first": "page=1&page-size=25&oldest-date=2023-04-24",
    "last": "page=4&page-size=25&oldest-date=2023-04-24",
    "next": "page=3&page-size=25&oldest-date=2023-04-24",
    "prev": "page=1&page-size=25&oldest-date=2023-04-24"
  }
}

Authorizations

Authorization
string
header
required

The Fiskil Data Provider will include a self-signed JWT as a Bearer token in the Authorization header. You should verify this JWT using the JWKS URL you can find for your Data Provider instance in the Fiskil Console. To verify the JWT you must:

  • Verify the signature
  • Ensure the token has not expired by checking the exp claim
  • The sub and iss claims are your data provider subdomain
  • The aud claim is the URI of the resource being requested (excluding any query parameters)
  • The jti value is unique For further detail on security and authentication refer to our Authentication documentation

Path Parameters

customerId
string
required

Unique ID of a customer. This ID must not change for the lifecycle of the customer

Query Parameters

newest-date
string

Constrain the request to records with effective date at or before this date. If absent defaults to current date. Format is aligned to DateString common type

oldest-date
string

Constrain the request to records with effective date at or after this date. If absent defaults to newest-date minus 24 months. Format is aligned to DateString common type

page
integer

Page of results to request (standard pagination)

page-size
integer

Page size to request. Default is 25 (standard pagination)

Body

application/json

Request payload containing list of specific Accounts to obtain data for

data
object
required

Response

List of invoices for the queried accounts

data
object
required

URL Query parameters to obtain different pages of the response. Fiskil will combine these with the rest of the request URL to build full link URLs in the final response.

Example:
{
"first": "page=1&page-size=25&oldest-date=2023-04-24",
"last": "page=4&page-size=25&oldest-date=2023-04-24",
"next": "page=3&page-size=25&oldest-date=2023-04-24",
"prev": "page=1&page-size=25&oldest-date=2023-04-24"
}
meta
object
required
Example:
{ "totalRecords": 150, "totalPages": 6 }