TF Fiscal

Companies

GET/api/company/get_cep_detail

Look up address by CEP

Resolves a Brazilian CEP (ZIP code) returning UF, IBGE municipality code and address data. Useful for filling in company and customer addresses. Requires a distributor (b2b) account.

Required headers

tokenstringstringDistributor token (b2b — the account must have isb2b=true)
signstringstringMD5 signature (path includes the query string)
timestampstringstringUnix timestamp in seconds

Query string

cep*stringstringBrazilian CEP (8 digits, with or without dash)

 * Required field.

Examples

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