# Bind plates to a product

`POST https://api.parklio.com/v2/products/{id}/bind-licenses`

Lets whitelisted license plates open this product. When an LPR camera in the product's **zone** reads a bound plate on the way **in**, and the plate is on an active [lot whitelist](/api/endpoints/lot-whitelist-create) entry, Parklio opens the first bound product that's online and closed.

`license_ids` are the `license_id` values returned by [Create lot whitelist entries](/api/endpoints/lot-whitelist-create). Unknown ids are ignored silently: check with [`GET /v2/products/{id}/bound-licenses`](/api/endpoints/products-find-all-binds). See the [Plate-based access](/guides/plate-based-access) guide.

**Auth:** `Authorization: Bearer <token>`

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The product's `id`. |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `license_ids` | number[] | yes |  |

```json
{
  "license_ids": [
    1,
    2,
    3
  ]
}
```

## Responses

### 200 — Bind success

```json
{
  "success": true,
  "message": "Bind success"
}
```

### 401 — Account user is not logged in and they should log in again.

```json
{
  "success": false,
  "errors": [
    {
      "code": 1,
      "message": "Unauthorized access."
    }
  ]
}
```

### 403 — User does not have permission to access requested resource.

```json
{
  "success": false,
  "errors": [
    {
      "code": 4,
      "message": "No permission."
    }
  ]
}
```

### 404 — Resource that has been requested does not exist. User should not try to repeat this request.

```json
{
  "success": false,
  "errors": [
    {
      "code": 6,
      "message": "Resource not found."
    }
  ]
}
```

### 422 — Some of the provided request parameters are missing or are invalid. User should add/change them according to response message.

```json
{
  "success": false,
  "errors": [
    {
      "code": 23,
      "message": "Validation error",
      "field": "field"
    }
  ]
}
```

