TF Fiscal
Documentation

CT-e

Cancel service disagreement

Registers event 610111, cancelling a service disagreement registered by this company.

DELETE/openapi/v2/empresas/{empresaId}/cte/{chaveAcesso}/desacordo/{protocoloEvento}

Requires the token, timestamp and sign signature headers, see Authentication.

No body; sign with the empty string. Only 610110 events registered by this company can be cancelled; protocoloEvento is the protocol of that event (10017045).

Parameters

Path parameters

  • empresaIdstringrequired

    Company (carrier) identifier returned at registration.

    Example: 1934811222334455
  • chaveAcessostringrequired

    44-digit access key of the CT-e issued by another company.

    Example: 35260940673061000134570010000000011000000010
  • protocoloEventostringrequired

    Protocol number (protocolo) of the event to cancel, returned when the event was registered or in the event list.

    Example: 135260000000099

Responses

200

Event registered with SEFAZ. The event object is returned synchronously.

  • chaveAcessostring

    44-digit access key of the CT-e the event was linked to.

  • tipostring

    Event type.

    Values:CancelamentoCartaCorrecaoComprovanteEntregaCancelamentoComprovanteEntregaInsucessoEntregaCancelamentoInsucessoEntregaPrestacaoDesacordoCancelamentoPrestacaoDesacordoEpec
  • codigostring

    SEFAZ event code (tpEvento): 110111, 110110, 110113, 110180, 110181, 110190, 110191, 610110, 610111.

  • sequenciainteger

    Sequence number of the event within its type (the correction letter auto-increments).

  • statusstring

    cStat returned by SEFAZ; 135 means the event was registered and linked.

  • motivostring

    xMotivo returned by SEFAZ.

  • protocolostring

    Event protocol number; use it as protocoloEvento to cancel the event.

  • datastring

    Event registration date and time, ISO-8601 in UTC.

  • linkXmlstring

    Download link of the event XML (procEvento). See File download.

Errors

CodeHTTP
10003000404

empresaId not found.

10017043400

SEFAZ rejected the event; mensagem carries the cStat and the reason.

10017045400

The event referenced by protocoloEvento was not found on this document.