Companies

Retrieve invoicing statistics per company

Return one company_stats row per company of the account that your credential reads, with invoices_count, total_invoiced and last_invoice.

  • Period is date_from/date_to (YYYY-MM-DD, inclusive); default is the current calendar year.
  • Not paginated: has_more is always false. A bad date or range returns 422 invalid_param_value.
get/accounts/{account}/companies/stats

Request

  • Base URL: https://api.factuarea.com/v1
  • URL: https://api.factuarea.com/v1/accounts/{account}/companies/stats
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

accountstring uuid required

Public identifier (UUID v7) of your account. Get it from GET /v1/me (data.account.id).

Query parameters

date_fromstring date

Start of the period, by issue date (YYYY-MM-DD, inclusive); without it, January 1 of the year of date_to or of the current year.

date_tostring date

End of the period, by issue date (YYYY-MM-DD, inclusive, not before date_from); without it, December 31 of the year of date_from or of the current year.

Headers

Factuarea-Versionstring date
Example:2026-06-01

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Response

AccountNifStatsListV1Resource

has_moreboolean required

Always false: the whole list is returned in one response.

next_cursorstring nullable required

Always null: there is no next page.

Example response

{
  "data": [
    {
      "object": "company_stats",
      "company_id": "01931b3e-7c4a-7f2e-9a8b-4d6e7f8a9b0c",
      "tax_id": "B12345674",
      "name": "Talleres García SL",
      "invoices_count": 3,
      "total_invoiced": "363.00",
      "last_invoice": {
        "number": "F-2026-003",
        "issued_on": "2026-09-20",
        "total": "121.00"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.