Confirmar a classificação de um produto (loop de validação)
curl --request POST \
--url https://api.engineapi.com.br/v1/fiscal/classification/confirm \
--header 'Content-Type: application/json' \
--data '
{
"issuerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ean": "<string>",
"ncm": "<string>",
"cest": "<string>"
}
'import requests
url = "https://api.engineapi.com.br/v1/fiscal/classification/confirm"
payload = {
"issuerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ean": "<string>",
"ncm": "<string>",
"cest": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
issuerId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
ean: '<string>',
ncm: '<string>',
cest: '<string>'
})
};
fetch('https://api.engineapi.com.br/v1/fiscal/classification/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engineapi.com.br/v1/fiscal/classification/confirm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'issuerId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'ean' => '<string>',
'ncm' => '<string>',
'cest' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.engineapi.com.br/v1/fiscal/classification/confirm"
payload := strings.NewReader("{\n \"issuerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"ean\": \"<string>\",\n \"ncm\": \"<string>\",\n \"cest\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engineapi.com.br/v1/fiscal/classification/confirm")
.header("Content-Type", "application/json")
.body("{\n \"issuerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"ean\": \"<string>\",\n \"ncm\": \"<string>\",\n \"cest\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engineapi.com.br/v1/fiscal/classification/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"issuerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"ean\": \"<string>\",\n \"ncm\": \"<string>\",\n \"cest\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyCérebro Fiscal
Confirmar a classificação de um produto (loop de validação)
Confirma que o NCM está correto para esta empresa (sobe a confiança). Fica escopado ao issuer (não altera o catálogo global). Revisão é opcional. A precedência de contador (BR-22 — revisão feita por papel de contador sempre vence outras fontes) é derivada do papel autenticado, não do body.
POST
/
v1
/
fiscal
/
classification
/
confirm
Confirmar a classificação de um produto (loop de validação)
curl --request POST \
--url https://api.engineapi.com.br/v1/fiscal/classification/confirm \
--header 'Content-Type: application/json' \
--data '
{
"issuerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ean": "<string>",
"ncm": "<string>",
"cest": "<string>"
}
'import requests
url = "https://api.engineapi.com.br/v1/fiscal/classification/confirm"
payload = {
"issuerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ean": "<string>",
"ncm": "<string>",
"cest": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
issuerId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
ean: '<string>',
ncm: '<string>',
cest: '<string>'
})
};
fetch('https://api.engineapi.com.br/v1/fiscal/classification/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engineapi.com.br/v1/fiscal/classification/confirm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'issuerId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'ean' => '<string>',
'ncm' => '<string>',
'cest' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.engineapi.com.br/v1/fiscal/classification/confirm"
payload := strings.NewReader("{\n \"issuerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"ean\": \"<string>\",\n \"ncm\": \"<string>\",\n \"cest\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.engineapi.com.br/v1/fiscal/classification/confirm")
.header("Content-Type", "application/json")
.body("{\n \"issuerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"ean\": \"<string>\",\n \"ncm\": \"<string>\",\n \"cest\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engineapi.com.br/v1/fiscal/classification/confirm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"issuerId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"ean\": \"<string>\",\n \"ncm\": \"<string>\",\n \"cest\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Response
201
Classificação confirmada (override do issuer).
⌘I