TF Fiscal

NF3-e Electricity

POST/api/nf3e/cancel

Cancel NF3e

Cancels an authorized NF3e (event 110111). Only NF3e documents issued through this platform can be cancelled: the access key is looked up in this account's records, and NF3e não encontrada is returned when it is not found. An NF3e 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 NF3e was issued.

Required headers

tokenstringstringToken of the issuing company
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

chNF3e*stringstringAccess key of the NF3e (44 digits)
xJust*stringstringCancellation justification (minimum 15 characters as required by the tax authority)
nProtstringstringNF3e 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/nf3e/cancel" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json