## New license

`POST`  https://api.ticketbaiws.eus/licencias/

This method creates a new license

**PARAMETERS**

- `plan` (integer, required): ID of the plan to apply to the license. Ejemplo: `3`
- `cantidad` (integer, required): Number of licenses to create. Ejemplo: `1`
- `meses_anos` (integer, required): Number of months or years to subscribe for. Ejemplo: `1`
- `modalidad` (string, required): License renewal period (mensual = monthly, anual = yearly) Ejemplo: `mensual`

**POST** `https://api.ticketbaiws.eus/licencias/`

```bash
$ curl --request POST \
     --url https://api.ticketbaiws.eus/licencias/ \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'Token: xxx' \
     --header 'Nif: 00000014Z'
	 --data '
{
    "plan": 3,
    "cantidad": 3,
    "meses_anos": 1,
	"modalidad": "mensual"
}'
```

Respuesta:

```json
HTTP/1.1 200 OK
{
	"result": "OK",
	"return": {
        "ids_licencias": ["999","999","9999"]
    },
	"msg": null
}
```

Fuente: https://ticketbaiws.eus/en/licencias-post/
