- Produtos
- Cadastrar produto
Produtos
Cadastrar produto
Cadastrar produto
POST
Autenticação
x-enterprise-key
required
string
Chave Enterprise com a permissão desta rota. Veja Autenticação.
x-organization-id
required
string
ID da organization (empresa emitente) em que a operação é feita.
Body
application/json
cProd
required
string
Código interno do produto.
xProd
required
string
Descrição.
NCM
required
string
NCM (8 dígitos).
cEAN
string
GTIN
uCom
required
string
Unidade comercial.
orig
required
integer
Origem da mercadoria (tabela da NF-e).
vUnCom
number
Valor unitário padrão.
Respostas
| Status | Descrição |
|---|---|
201 | Produto criado. |
400 | Body inválido (campo obrigatório ausente, formato incorreto ou campo não permitido). |
401 | Credencial ausente, inválida ou expirada. |
curl -X POST "https://api.treeunfe.com.br/api/v1/products" \
-H "x-enterprise-key: SUA_ENTERPRISE_KEY" \
-H "x-organization-id: ID_DA_ORGANIZATION" \
-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: SUA_ENTERPRISE_KEY" \
-H "x-organization-id: ID_DA_ORGANIZATION" \
-H "Content-Type: application/json" \
-d '{
"cProd": "6654",
"xProd": "PLACA DE IDENTIFICACAO",
"NCM": "83100000",
"cEAN": "SEM GTIN",
"uCom": "UN",
"orig": 0,
"vUnCom": 0
}'