Platform & integrations
SSO
2 endpoints
SSO — Automatic Login via Token
https://api.tffiscal.com
Headers: sign, timestamp, token60 seconds — single useSSO (Single Sign-On) allows the integrator's ERP to generate a direct access link to TFiscal for the user, already authenticated in the corresponding company and in the desired language — without requiring them to enter credentials.
- The ERP calls
POST /api/sso/create_ticketsending the company token. - TFiscal returns a
redirectUrlcontaining a single-use opaque ticket. - The ERP redirects the user's browser to that URL.
- The page consumes the ticket and the user logs in automatically on the company panel.
Restrictions and Security
Ticket characteristics
| Characteristic | Value |
|---|---|
| Validity | 60 seconds after generation |
| Usage | Single use — once consumed, cannot be reused |
| Rate limit | Ticket creation is subject to the call rate limit of the token (configured by TF for each integrator) · 60 consumptions/minute per IP |
| Storage | Expired tickets are removed automatically by the platform |
Navigation restrictions
Users logged in via SSO have access only to the corresponding
company screens (/invoice/company/*) and to the accountant management screen (/invoice/accountant-requests). Attempts to access other areas
(reseller panels, general reports, administration) are automatically redirected to
the company panel.
Session after login
After exchanging the ticket for a JWT, the user has a normal TFiscal session (JWT valid for 365 days, same as traditional login). The 60 seconds are only the window between generating the ticket and opening the link — afterwards the user remains logged in normally until they sign out.
create_ticket must be called
exclusively server-side by the ERP. Never call this endpoint
directly from the browser — that would expose the company token in the front-end.