TF Fiscal

NF-e Invoices

POST/api/invoice/refresh

Refresh invoice status

Queries the current NF-e status at the tax authority and updates the local record. Useful when issuance remained in processing or contingency.

Required headers

tokenstringstringIssuing company token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

uuid*stringstringUUID of the NF-e to query

 * Required field.

Response fields (data)

motivostringstringStatus description returned by the tax authority
statusstringstringUpdated invoice status, e.g.
nfeintintNF-e number
serieintintNF-e series
chavestringstring44-digit access key
If the previous refresh took place less than one hour earlier, the tax authority is not queried and the locally recorded status is returned. The tax authority limits the number of queries; when the limit is reached the API returns an error and the call should be retried after one hour. When there is no local access key and the tax authority has no record of the invoice either, the API returns Nota não existe, inutilize o número; the number should then be invalidated through /api/invoice/invalid.

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