TF Fiscal

DC-e Content Declaration

POST/api/dce/cancel

Cancel DC-e

Cancels an authorized DC-e (event 110111). Requires that the DC-e has been authorized (has a protocol) and is not yet canceled. Each DC-e allows a single cancellation.

Required headers

tokenstringstringToken of the issuing company
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

chDCe*stringstringDC-e access key (44 digits)
xJust*stringstringCancellation justification (minimum 15 characters as required by the tax authority)
nProtstringstringAuthorization protocol.

 * Required field.

In case of rejection, the response returns success=false, and the cStat/xMotivo of the refusal.

Examples

# sign = md5(token + path + body + timestamp)
# Template generated from the endpoint path; replace the placeholders
curl -X POST "https://api.tffiscal.com/api/dce/cancel" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json