TF Fiscal

NFS-e Service Invoices

GET/api/nfse/get_list

List NFS-e (paginated)

Lists the NFS-e of the company of the token, paginated, newest issuance first. Parameters are passed via query string (not in the body). The time filter is optional and applies only when both start_create_time and end_create_time are sent; if only one is sent, it is ignored. The list contains only successfully issued NFS-e; failed requests do not create records.

Required headers

tokenstringstringIssuing company token
signstringstringMD5 signature (path includes the query string)
timestampstringstringUnix timestamp in seconds

Query string

page*intintPage number (≥ 1)
page_size*intintPage size (1–50)
start_create_timelonglongStart of the issuance time, Unix timestamp in milliseconds.
end_create_timelonglongEnd of the issuance time, Unix timestamp in milliseconds, inclusive.
statusstringstringFilter by status: "autorizada" or "cancelada"

 * Required field.

chave: the 50-digit access key for the national system; equal to codigo_verificacao for São Paulo. number: the DPS number for the national system; the NFS-e number assigned by the municipality for São Paulo. The chave parameter of cancel, get_danfse and get_xml accepts codigo_verificacao or, for NFS-e of the national system, the 50-digit access key chave.

Common errors

MessageCause
O número da página deve ser maior que 0 / 页码必须大于 0page missing or less than 1
O tamanho da página deve estar entre 1 e 50 / 页大小必须在 1~50 之间page_size outside 1–50
A data inicial não pode ser maior que a final / 开始时间不能大于结束时间start_create_time greater than end_create_time

Examples

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