PT EN

Resumo

URL base: $CONSUMER_API

O objecto

amount_due_centsinteger (int64) · opcional
currencystring · opcional
accountsarray of object · opcional
Mostrar atributos filhos
tenant_idstring · opcional
account_idstring · opcional
account_numberstring · opcional
amount_due_centsinteger · opcional
currencystring · opcional
open_invoicesinteger · opcional
latest_readingobject · opcional
last_invoiceobject · opcional

The most recently issued invoice on the account; absent when none was issued

Mostrar atributos filhos
idstring · opcional
invoice_numberstring · opcional
total_centsinteger · opcional
balance_centsinteger · opcional
currencystring · opcional
statusstring · opcional
issued_atstring (date-time) · opcional
due_datestring (date-time) · opcional
consumption_seriesarray of SeriesPoint · opcional
Mostrar atributos filhos
datestring (date) · opcional
valuenumber · opcional
Operações
O objecto
{
  "amount_due_cents": 125000,
  "currency": "MZN",
  "accounts": [
    {
      "tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
      "account_id": "act_2JFioNDgIfvkgflk8RtcqhBaARP",
      "account_number": "ACC-2026-000142",
      "amount_due_cents": 125000,
      "currency": "MZN",
      "open_invoices": 1,
      "latest_reading": {},
      "last_invoice": {
        "id": "con_244XPeIpRs4LdYuX5O0xxWqvfEU",
        "invoice_number": "INV-2026-000142",
        "total_cents": 125000,
        "balance_cents": 125000,
        "currency": "MZN",
        "status": "active",
        "issued_at": "2026-11-19T09:30:00Z",
        "due_date": "2026-11-19T09:30:00Z"
      },
      "consumption_series": [
        {
          "date": "2026-11-19",
          "value": 13.42
        }
      ]
    }
  ]
}

Obter o resumo

Registos

GET /overview

Amount due, latest reading and consumption series per linked account

Returns a dashboard summary across every account linked to the caller: the total amount due, and per account the open invoice count and balance, the latest meter reading and a consumption series of up to the last 12 periods. Accounts in different tenants are included together.

Devolve

200 Overview

Mostrar atributos
amount_due_centsinteger (int64) · opcional
currencystring · opcional
accountsarray of object · opcional
Mostrar atributos filhos
tenant_idstring · opcional
account_idstring · opcional
account_numberstring · opcional
amount_due_centsinteger · opcional
currencystring · opcional
open_invoicesinteger · opcional
latest_readingobject · opcional
last_invoiceobject · opcional

The most recently issued invoice on the account; absent when none was issued

Mostrar atributos filhos
idstring · opcional
invoice_numberstring · opcional
total_centsinteger · opcional
balance_centsinteger · opcional
currencystring · opcional
statusstring · opcional
issued_atstring (date-time) · opcional
due_datestring (date-time) · opcional
consumption_seriesarray of SeriesPoint · opcional
Mostrar atributos filhos
datestring (date) · opcional
valuenumber · opcional
curl -X GET "$CONSUMER_API/overview" \
  -H "Authorization: Bearer sk_test_..."
Resposta 200
{
  "amount_due_cents": 125000,
  "currency": "MZN",
  "accounts": [
    {
      "tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
      "account_id": "act_2JFioNDgIfvkgflk8RtcqhBaARP",
      "account_number": "ACC-2026-000142",
      "amount_due_cents": 125000,
      "currency": "MZN",
      "open_invoices": 1,
      "latest_reading": {},
      "last_invoice": {
        "id": "con_244XPeIpRs4LdYuX5O0xxWqvfEU",
        "invoice_number": "INV-2026-000142",
        "total_cents": 125000,
        "balance_cents": 125000,
        "currency": "MZN",
        "status": "active",
        "issued_at": "2026-11-19T09:30:00Z",
        "due_date": "2026-11-19T09:30:00Z"
      },
      "consumption_series": [
        {
          "date": "2026-11-19",
          "value": 13.42
        }
      ]
    }
  ]
}