TF Fiscal

NFCom Telecom

POST/api/nfcom/consult

Consult 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

tokenstringstringToken of the issuing company
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

chNFCom*stringstringAccess key of the NFCom (44 digits)
tpAmbintintEnvironment to consult: 1=production, 2=test.

 * 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