Mater Imperium Developers
Integrate with Mater Imperium fiscal solutions
Guides, API reference and credentials for outbound and inbound fiscal documents, tax assessment and filing automation.
The fiscal cycle, end to end
Pick the stage your integration works on.
- OutboundAuthorize, query and manage events of Brazilian electronic fiscal documents.NF-e · NFC-e · NFS-e · CT-e · CT-e OS · MDF-e · NFCom · NFAg · NF-e ABI
- InboundSync inbound documents and events and reconcile them with your ERP.NF-e · CT-e · NFS-e
- AssessAssess CBS and IBS with reconciliation across government, documents and ERP.Assisted Assessment · RTC Calculator
- AutomationAutomate validation, signing and transmission of your tax filings.RocketPVA (SPED) · REINF
Your first call in 3 steps
- 1Create an API keyIn IAM, generate a client_id and client_secret for your company, one per environment.
- 2Get a tokenExchange the credentials for an access token using the client_credentials grant.
- 3Make your first callSend the token in the Authorization header to authorize an NF-e.
# 2. Get a token
curl -X POST 'https://<api-host>/api/integration/auth/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials' \
-d 'client_id=SEU_CLIENT_ID' \
-d 'client_secret=SEU_CLIENT_SECRET'
# 3. Authorize an NF-e
curl -X POST 'https://<api-host>/api/integration/dfe/55/autorizacao' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-H 'Accept: application/vnd.materimperium.api.v1+json' \
-H 'Content-Type: application/json' \
-d @nfe.jsonSign in to see the UAT and Production hosts.