TF Fiscal

Received Documents & DistDFe

POST/api/invoice/manifest

Send recipient manifestation event

Required headers

tokenstringstringCompany token
signstringstringMD5 signature: MD5(token + path + body + timestamp)
timestampstringstringUnix timestamp in seconds (5-minute window)

Fields

FieldTypeRequiredDescription
chavestringYesNF-e access key — 44 digits
cnpjstringYesRecipient CNPJ (the one manifesting) — 14 digits, unformatted. Must be a company registered under the token
tipo_eventointYesEvent code: 210200, 210210, 210220 or 210240
justificativastringConditionalRequired for 210220 and 210240; 15–255 characters after trimming leading and trailing spaces. Ignored for 210200 and 210210
Sequence (nSeqEvento): a recipient manifestation event can be registered only once for the same combination (cnpj + chave + tipo_evento), so the sequence is always 1. A record is saved and success: true is returned only when the tax authority returns 135 or 573 (duplicate event, treated as success); any other result returns success: false with the tax authority's reason in message. When the same combination is sent again after a successful registration, the endpoint does not send it to the tax authority; it returns success: true with the registered record (same fields as the first registration), so the request can be retried safely.

Response fields

idstringstringInternal ObjectId of the manifestation record (used in /get_xml)
chavestringstringAccess key of the manifested NF-e
cnpjstringstringRecipient CNPJ that manifested
tipo_eventointintEvent code sent (210200/210210/210220/210240)
desc_eventostringstringEvent textual description (tax authority original wording)
nProtstringstringtax authority protocol number — event receipt
cStatintinttax authority status code.
xMotivostringstringtax authority descriptive return message
nSeqEventointintEvent sequence, always 1
xml_urlstringstringPublic download URL of the procEvento XML (signed and protocoled)

Common errors

MessageCause
Digite a chave da nota de 44 dígitos / 请输入44位发票密钥chave is missing or does not have 44 digits
Informe o cnpj / 请传入cnpjcnpj was not sent
Informe o tipo_evento (210200, 210210, 210220 ou 210240) / ...tipo_evento was not sent
tipo_evento inválido. Use 210200, 210210, 210220 ou 210240tipo_evento is not one of the four values
justificativa é obrigatória para eventos 210220 e 210240justificativa was not sent for 210220 or 210240
justificativa deve ter no mínimo 15 caracteres / no máximo 255 caracteresThe length of justificativa is not between 15 and 255
empresa com CNPJ ... não encontrada para este tokenThe CNPJ is not a company registered under the token
Rejection reason returned by the tax authority (for example Rejeicao: ...)The tax authority did not register the event; see the cStat codes under "Recipient manifestation"

Examples

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