Generate DC-e

Authorize a DC-e with the /dce/autorizar endpoint and see request and response examples.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

The xml field in the response contains the complete signed DC-e document. It is shown abbreviated in documentation for readability.

Body Params
ide
object

DC-e identification. Provide the emitter's state using either uf (abbreviation) or cUF (numeric IBGE code)

emit
object
required

Emitter (sender) information — the person or company shipping the package

dest
object
required

Recipient information

produtos
array of objects
required
length between 1 and 999

List of declared products (min 1, max 999)

produtos*
string
required

Product description (1-120 chars). Avoid special characters like apostrophes

string
required

NCM code (Nomenclatura Comum do Mercosul). 2 digits for chapter or 8 digits for full code, no dots. SEFAZ validates against MDIC table. If you don't know the NCM code, you can use the Classify HS code endpoint to look it up from a product description

string
required

Product quantity (up to 11 integer digits, 0-4 decimal places)

string
required

Unit price (up to 11 integer digits, 0-4 decimal places). Use dot as decimal separator

string
required

Total product value (qCom x vUnCom). Exactly 2 decimal places. Max per item R$100,000. Total DC-e max R$200,000

transp
object
required

Transport information

string

Additional information for the DC-e (1-5000 chars)

Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json