## List companies

`GET`  https://api.ticketbaiws.eus/empresas/

This method returns the list of registered companies

**GET methods accept the parameters either in the body as a JSON payload or as a query string in the URL, as shown in the cURL example.**

**PARAMETERS**

- `id_licencia` (string, optional): To get the companies of a specific license. Ejemplo: `999`
- `nif` (string, optional): To get the details of a specific company. Ejemplo: `B01000012`

**GET** `https://api.ticketbaiws.eus/empresas/`

```bash
$ curl --request GET \
     --url https://api.ticketbaiws.eus/empresas/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '{"id_licencia": "999","nif":"B01000012"}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
	"result": "OK",
	"return": [
        {
            "id": "999"
            "id_licencia": "999",
            "epigrafe": "",
            "nombre_social": "Empresa de ejemplo S.L.",
            "nombre_comercial": "Neumáticos Pepe",
            "nif": "B01000012",
            "direccion": "Calle de ejemplo 123",
            "poblacion": "Vitoria-Gasteiz",
            "provincia": "Álava",
            "cp": "28080",
            "email": "info@ejemplo.com",
            "web": "www.ejemplo.com",
            "diputacion": 1,
            "token": "xxx",
            "token_test": "xxx"
      },
      {
            "id": "999"
            "id_licencia": "999",
            "epigrafe": "",
            "nombre_social": "Empresa de ejemplo S.L.",
            "nombre_comercial": "Neumáticos Pepe",
            "nif": "B01000012",
            "direccion": "Calle de ejemplo 123",
            "poblacion": "Vitoria-Gasteiz",
            "provincia": "Álava",
            "cp": "28080",
            "email": "info@ejemplo.com",
            "web": "www.ejemplo.com",
            "diputacion": 2,
            "token": "xxx",
            "token_test": "xxx"
      }
	],
	"msg": null
}
```

Fuente: https://ticketbaiws.eus/en/empresas-get/
