TF Fiscal

NFCom Telecom

POST/api/nfcom/cancel

Cancel NFCom

Cancels an authorized NFCom (event 110111). Only NFCom documents issued through this platform can be cancelled: the access key is looked up in this account's records, and NFCom não encontrada is returned when it is not found. An NFCom already recorded as cancelled on the platform is rejected with an error without being submitted; the cancellation event is sent to the environment (production or test) in which the NFCom was issued.

Required headers

tokenstringstringToken of the issuing company
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

chNFCom*stringstringAccess key of the NFCom (44 digits)
xJust*stringstringCancellation justification (minimum 15 characters as required by the tax authority)
nProtstringstringNFCom authorization protocol (16 digits).

 * 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/cancel" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json