> For the complete documentation index, see [llms.txt](https://docs.venuzle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.venuzle.com/manager-api/internal-endpoints/partner/inventory-products.md).

# Inventory products

## Get inventory products

<mark style="color:blue;">`GET`</mark> `/api/internal/v1/partners/:partner_id/inventory-products`

#### Path Parameters

| Name        | Type    | Description            |
| ----------- | ------- | ---------------------- |
| partner\_id | integer | The ID of the partner. |

#### Query Parameters

| Name      | Type    | Description                         |
| --------- | ------- | ----------------------------------- |
| page      | integer | The page number.                    |
| per\_page | integer | How many items to returns per page. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Create a new inventory product

<mark style="color:green;">`POST`</mark> `/api/internal/v1/partners/:partner_id/inventory-products`

#### Path Parameters

| Name        | Type    | Description            |
| ----------- | ------- | ---------------------- |
| partner\_id | integer | The ID of the partner. |

#### Request Body

| Name                  | Type    | Description                                                                                                             |
| --------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------- |
| facility\_ids         | integer | The IDs of the facilities in which the inventory product will be available.                                             |
| name                  | string  | The name of the product.                                                                                                |
| short\_name           | string  | The short name of the product.                                                                                          |
| description           | string  | The description of the product.                                                                                         |
| max\_available\_units | string  | The number of max available units for the product.                                                                      |
| accounting\_code      | string  | The accounting code of the product.                                                                                     |
| bookable\_online      | boolean | Indicate if the product will be bookable online or not.                                                                 |
| min\_booking\_mins    | number  | Indicate the minimum amount of time a product must be booked.                                                           |
| max\_booking\_mins    | number  | Indicate the maximum amount of time a product can be booked.                                                            |
| lead\_mins            | number  | Indicate for how many minutes before a booking the product will not be available.                                       |
| follow\_up\_mins      | number  | Indicate for how many minutes after the booking ended the inventory product will not be available for another booking.  |
| vat\_id               | integer | The ID of the VAT that should be applied to the price.                                                                  |
| amount                | number  | The price of the inventory product.                                                                                     |
| form                  | string  | The price form. Allowed values: `net` and `gross`.                                                                      |
| billing\_type         | string  | Indicate if the product should have a fixed price or it should be billed per hour. Allowed values: `fixed` and `hourly` |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Get a specific inventory product

<mark style="color:blue;">`GET`</mark> `/api/internal/v1/partners/:partner_id/inventory-products/:inventory_product_id`

#### Path Parameters

| Name                   | Type    | Description                      |
| ---------------------- | ------- | -------------------------------- |
| partner\_id            | integer | The ID of the partner.           |
| inventory\_product\_id | integer | The ID of the inventory product. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Update inventory product

<mark style="color:orange;">`PUT`</mark> `/api/internal/v1/partners/:partner_id/inventory-products/:inventory_product_id`

#### Path Parameters

| Name                   | Type    | Description                      |
| ---------------------- | ------- | -------------------------------- |
| partner\_id            | integer | The ID of the partner.           |
| inventory\_product\_id | integer | The ID of the inventory product. |

#### Request Body

| Name                  | Type    | Description                                                                                                                 |
| --------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------- |
| facility\_ids         | array   | The ids of the facilities in which the inventory product will be available.                                                 |
| name                  | string  |                                                                                                                             |
| short\_name           | string  |                                                                                                                             |
| description           | string  |                                                                                                                             |
| max\_available\_units | number  |                                                                                                                             |
| accounting\_code      | string  |                                                                                                                             |
| bookable\_online      | boolean |                                                                                                                             |
| max\_booking\_mins    | number  |                                                                                                                             |
| min\_booking\_mins    | number  |                                                                                                                             |
| lead\_mins            | number  |                                                                                                                             |
| follow\_up\_mins      | number  |                                                                                                                             |
| form                  | string  | The price form. Allowed values: `gross` and `net`.                                                                          |
| billing\_type         | string  | Indicates if the product should have a fixed price or if it should be billed per hour. Allowed values: `fixed` or `hourly`. |
| amount                | integer | The price of the inventory product.                                                                                         |
| vat\_id               | integer | The ID of the VAT that should be applied for the product price.                                                             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Delete inventory product

<mark style="color:red;">`DELETE`</mark> `/api/internal/v1/partners/:partner_id/inventory-products/:inventory_product_id`

#### Path Parameters

| Name                   | Type    | Description                      |
| ---------------------- | ------- | -------------------------------- |
| partner\_id            | integer | The ID of the partner.           |
| inventory\_product\_id | integer | The ID of the inventory product. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
