List Invoices

GET https://backend.localbusiness.pro/api/v1/invoices

Returns a paginated list of invoices for the authenticated business, sorted by creation date (newest first).

Header Parameters

X-Public-Key string required

Your business public key. Used to identify which business is making the request.

X-Timestamp string required

Current Unix timestamp in seconds. Requests older than 5 minutes are rejected.

X-Signature string required

HMAC-SHA256 signature of the signing string: {timestamp}\n{METHOD}\n{path}\n{body}, using your private key as the secret.

Query Parameters

page integer

Page number (1-indexed).

per_page integer

Items per page (max 100). Default: 25.

status string

Filter by invoice status (e.g., draft, sent, viewed, paid, overdue, voided).

Responses

200 Paginated list of invoices.
{
  "invoices": [
    {
      "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "invoice_number": "INV-00078",
      "title": "HVAC System Installation - Final Payment",
      "status": "sent",
      "subtotal": "8750.00",
      "discount_type": null,
      "discount_value": null,
      "tax_rate": "8.25",
      "tax_amount": "721.88",
      "total_amount": "9471.88",
      "paid_amount": "0.00",
      "due_at": "2026-04-01T00:00:00.000000Z",
      "issued_at": "2026-03-01T00:00:00.000000Z",
      "sent_at": "2026-03-01T12:30:00.000000Z",
      "paid_at": null,
      "created_at": "2026-03-01T10:00:00.000000Z",
      "updated_at": "2026-03-01T12:30:00.000000Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 25,
    "total_items": 78,
    "total_pages": 4
  }
}
401 Missing credentials, expired timestamp, or invalid signature.
{
  "error": "Invalid API credentials",
  "code": "INVALID_CREDENTIALS"
}
403 Business account exists but is not active.
{
  "error": "Business account is not active",
  "code": "ACCOUNT_INACTIVE"
}
429 Rate limit exceeded (60 requests/minute per key).
{
  "message": "Too Many Attempts."
}