TF Fiscal

CT-e Transport

POST/api/cte/cancel

Cancel CT-e

Cancels an authorized CT-e (event 110111). Requires that the CT-e has been authorized (has a protocol) and is not yet cancelled. Only CT-e documents issued through this platform can be cancelled.

Required headers

tokenstringstringToken of the issuing company
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

chCTe*stringstringAccess key of the CT-e (44 digits)
xJust*stringstringCancellation justification (minimum 15 characters as required by the tax authority)
nProtstringstringAuthorization protocol.

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