- Products
- Create product
Products
Create product
Create product
POST
Authentication
x-enterprise-key
required
string
Enterprise key with this route’s permission. See Authentication.
x-organization-id
required
string
ID of the organization (issuing company) the operation applies to.
Body
application/json
cProd
required
string
The product’s internal code.
xProd
required
string
Description.
NCM
required
string
NCM code (8 digits).
cEAN
string
GTIN
uCom
required
string
Commercial unit.
orig
required
integer
Origin of the goods (NF-e table).
vUnCom
number
Default unit price.
Responses
| Status | Description |
|---|---|
201 | Product created. |
400 | Invalid body (missing required field, wrong format, or field not allowed). |
401 | Credential missing, invalid, or expired. |
curl -X POST "https://api.treeunfe.com.br/api/v1/products" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"cProd": "6654",
"xProd": "PLACA DE IDENTIFICACAO",
"NCM": "83100000",
"cEAN": "SEM GTIN",
"uCom": "UN",
"orig": 0,
"vUnCom": 0
}'
curl -X POST "https://api.treeunfe.com.br/api/v1/products" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-H "Content-Type: application/json" \
-d '{
"cProd": "6654",
"xProd": "PLACA DE IDENTIFICACAO",
"NCM": "83100000",
"cEAN": "SEM GTIN",
"uCom": "UN",
"orig": 0,
"vUnCom": 0
}'