integration_invoicing_activity
Determine if a company invoices through Storno and how many invoices it issued in the last 30 days to qualify for benefits.
Instructions
Check whether a fiscal code (CUI/CIF) invoices through Storno, and how many invoices it issued recently. Built for platforms that give their users a benefit for invoicing here, so it is NOT authenticated with your user token — the credential is a shared integration key, configured server-side as INTEGRATION_API_KEY. Returns only { active, invoicesLast30d, windowDays, invoicesInWindow }: no company name, no amounts, no clients. Counts issued outgoing invoices only — drafts, cancelled and rejected ones do not count, so a company cannot earn a benefit by issuing and voiding. Returns active: false for an unknown fiscal code and for a suspended organization alike. If the server has no key configured the endpoint answers 404 ("not enabled"), and a wrong key answers 401.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cui | Yes | Fiscal code to look up. Written however you have it — "RO12345678", "12345678", spaced or dotted are all accepted | |
| window | No | How many days back to count, 1-365 (default 30). The 30-day figure is reported as invoicesLast30d regardless | |
| integrationKey | No | The shared integration key. Falls back to the STORNO_INTEGRATION_KEY environment variable when omitted |