GET
/api/company/get_listList distributor companies
Lists issuing companies tied to the distributor (b2b) account, with pagination. Parameters via query string. The companies listed are those created with this distributor token (the distributor token recorded at registration equals the token header). Each item includes the company's own token; the fields have the same meaning as in /api/company/get_detail (without tax categories).
Required headers
tokenstring | string | Distributor token (b2b — the account must have isb2b=true) |
signstring | string | MD5 signature (path includes the query string) |
timestampstring | string | Unix timestamp in seconds |
Query string
page*int | int | Page number (≥ 1) |
page_*int | int | Page size (1–20) |
* 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_list" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/company/get_list?page=1&page_size=10
{
"success": true,
"data": {
"companys": [
{
"company_id": 10234,
"invoice_type": "simples_nacional",
"token": "3f9a1c7e5b2d4f6a8c0e1b3d5f7a9c2e",
"cnpj": "12345678000199",
"name": "Empresa Exemplo LTDA",
"ie": "123456789",
"unit": "matriz",
"email": "contato@empresa.com",
"cep": "01001000",
"address": "Rua Exemplo",
"house_number": "100",
"town": "Centro",
"city": "São Paulo",
"state": "SP",
"cert_file": "",
"cert_pwd": "********",
"serie": 1,
"number": 142
}
],
"page": 1,
"total": 8,
"total_pages": 1
}
}