## Edit company data

`PUT`  https://api.ticketbaiws.eus/empresas/{NIF}/

This method updates a company record

**PARAMETERS**

- `nombre_social` (string, optional (*)): Company's registered (legal) name. Ejemplo: `Empresa de ejemplo S.L.`
- `nombre_comercial` (string, optional (*)): Company's trade name. Ejemplo: `Neumáticos Pepe`
- `direccion` (string, optional (*)): Company's registered address. Ejemplo: `Calle de ejemplo 123`
- `poblacion` (string, optional (*)): Company's registered town/city. Ejemplo: `Vitoria-Gasteiz`
- `provincia` (string, optional (*)): Company's registered province. Ejemplo: `Álava`
- `cp` (string, optional (*)): Company's registered postal code. Ejemplo: `01001`
- `email` (string, optional (*)): Company's contact email. Ejemplo: `info@ejemplo.com`
- `web` (string, optional (*)): Company's website address. Ejemplo: `www.ejemplo.com`
- `epigrafe` (string, optional (*)): IAE activity code. Ejemplo: `301800`
- `autorenovacion` (string, optional (*)): Auto-renewal of the associated license. Ejemplo: `true`
- `spfe` (boolean, optional (*)): Submission to the SPFE (Spanish public B2B e-invoicing platform) of the AEAT (Spanish Tax Agency), for B2B electronic invoicing under the Ley Crea y Crece. **true**  enables it from that day on, **false**  disables it. See [SPFE methods](https://ticketbaiws.eus/en/spfe-recibidas-get/) Ejemplo: `true`
- `sii` (boolean, optional (*)): Submission of the issued invoices book to the SII (Immediate Supply of Information) of the AEAT (Spanish Tax Agency), for companies in the common VAT territory (their invoices are no longer sent to Verifactu). **true**  enables it from that day on, **false**  disables it. See [GET sii-envios](https://ticketbaiws.eus/en/sii-envios-get/) Ejemplo: `true`

(*) Send only the parameters you want to change

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

```bash
$ curl --request PUT \
     --url https://api.ticketbaiws.eus/empresas/B01010101/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '
{
    "nombre_social": "Empresa de ejemplo S.L.",
    "nombre_comercial": "Neumáticos Pepe",
    "direccion": "Calle de ejemplo 123",
    "poblacion": "Vitoria-Gasteiz",
    "provincia": "Álava",
    "cp": "28080",
    "email": "info@ejemplo.com",
    "web": "www.ejemplo.com",
    "epigrafe" : "301800",
    "autorenovacion" : true
}'
```

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",
        "token": "xxx",
        "token_test": "xxx",
        "autorenovacion" : true
    },
	"msg": null
}
```

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