POST
/api/nfcom/consultConsult NFCom status
Consults the current status of the NFCom in the national environment from the access key. Whenever the tax authority returns a response, success is true; the actual NFCom status is given by cStat. This endpoint does not update the status stored on the platform. An NFCom issued through this platform is consulted in the environment in which it was issued; any other access key is consulted in the environment given by tpAmb in the request (the access key itself does not identify the environment), and in the production environment when tpAmb is omitted.
Required headers
tokenstring | string | Token of the issuing company |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
chNFCom*string | string | Access key of the NFCom (44 digits) |
tpAmbint | int | Environment to consult: 1=production, 2=test.Applies only to access keys not issued through this platform. Default: 1 |
* Required field.
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X POST "https://api.tffiscal.com/api/nfcom/consult" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"chNFCom": "35260712345678000199620010000000011012345675"
}
{
"success": true,
"message": "Consulta realizada",
"cStat": "100",
"xMotivo": "Autorizado o uso da NFCom",
"nProt": "3532600001234567"
}