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.

Your first call in 3 steps

  1. 1Create an API keyIn IAM, generate a client_id and client_secret for your company, one per environment.
  2. 2Get a tokenExchange the credentials for an access token using the client_credentials grant.
  3. 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.json

Sign in to see the UAT and Production hosts.