API Reference
The full interactive API reference is available at:
https://e-invoicing-staging.vercel.app/v1/docs
It is powered by Swagger UI and documents every endpoint with live request/response examples you can execute directly in the browser.
What's covered
| Category | Endpoints |
|---|---|
| Authentication | Login, refresh, password reset, team member auth, FIRS OAuth |
| Tenants | Create, list, update, activate, suspend, delete |
| Onboarding | Status tracking, credential upload, activation links |
| API Keys | Generate, list, revoke, rotate |
| ERP Sync | Configure and retrieve ERP integration settings |
| Webhooks | Generate webhook URL, test delivery |
| Team | Invite, manage, and remove team members |
| Business Settings | View and update business profile |
| Event Routing | Configure the invoice processing pipeline per tenant |
| Sandbox | Test transform, validate, and full pipeline runs |
| Admin Config | FIRS data dictionary, supported ERPs, event/action reference |
Base URL
https://e-invoicing-staging.vercel.app
Authentication
All requests require one of three headers depending on the operation — see Authentication for full details.
| Header | Used for |
|---|---|
x-api-key | Tenant API calls (ERP integrations, team actions) |
Authorization: Bearer <token> | Team member sessions (JWT from /v1/auth/) |
x-admin-key | Platform admin operations |