Example 0: Obtain OAuth2 Token (JavaScript/Node.js)#
Before making API requests, you need to obtain a JWT token via the OAuth2 client_credentials flow:This example shows how to fetch retail information and use it to create an order:Example 2: Create and Query Order (JavaScript/Node.js)#
Example 3: Invoice Upload (Python)#
๐ Important Validations#
CNPJ#
Must contain exactly 14 numeric digits
Will be automatically validated by the API
Expected format: numbers only (no dots, slashes, or hyphens)
Monetary Values#
Use period (.) as decimal separator
Dates#
Format: YYYY-MM-DD (ISO 8601)
Files#
Invoices: PDF or image format
Modified atย 2026-03-16 14:55:50