SmartGare
API referenceEndpoints

Search fee invoices for the finance register

**Required permission:** `billing.fee-invoice:read`

GET/billing/v1/fee-invoices/search

Required permission: billing.fee-invoice:read

AuthorizationBearer <token>

In: header

Query Parameters

status?string

Invoice lifecycle status: ISSUED or SETTLED.

q?string

Free-text match, case-insensitive, across invoice number, addressee name, unit name and agreement reference.

issued_from?string

Inclusive lower bound on issued_at.

Formatdate-time
issued_to?string

Inclusive upper bound on issued_at.

Formatdate-time
settled_from?string

Inclusive lower bound on settled_at; only settled invoices match.

Formatdate-time
settled_to?string

Inclusive upper bound on settled_at; only settled invoices match.

Formatdate-time
settlement_means?string

How the invoice was settled: CASH or BANK_TRANSFER.

sort?string

issued (default): newest issued first. settled: newest settled first. Ties by invoice number, highest first.

limit?integer

Page size, default 50, max 100.

Formatint32
offset?integer

Zero-based offset into the ordered result.

Formatint32

Response Body

*/*

curl -X GET "https://example.com/billing/v1/fee-invoices/search"
{  "amount_total": 0,  "currency": "string",  "items": [    {      "addressee_name": "string",      "agreement_id": "string",      "agreement_reference": "string",      "amount": 0,      "currency": "string",      "due_on": "2019-08-24",      "fee_kind_label": "string",      "id": "string",      "invoice_number": "string",      "issued_at": "2019-08-24T14:15:22Z",      "occupant_id": "string",      "period_end": "2019-08-24",      "period_start": "2019-08-24",      "settled_at": "2019-08-24T14:15:22Z",      "settlement_means": "string",      "status": "string",      "unit_id": "string",      "unit_name": "string"    }  ],  "total": 0}