# Repzo API - Price List Item

OpenAPI specification for Repzo Price List Item endpoints.

**Version:** 1.0.0

## Overview

### Base URLs

- \*\*\*\*: `https://sv.api.repzo.me`

## Authentication

No authentication required.

## Endpoints

### `/pricelistitem`

#### GET /pricelistitem

**Summary:** Find price list items

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `params` | query | object | No | Query parameters for filtering price list items |

##### Responses

**200** - A list of price list items

Content-Type: `application/json`

---

#### POST /pricelistitem

**Summary:** Create a price list item

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**201** - Price list item created

Content-Type: `application/json`

---

### `/pricelistitem/{id}`

#### GET /pricelistitem/{id}

**Summary:** Get a price list item by ID

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Responses

**200** - Price list item details

Content-Type: `application/json`

---

#### PUT /pricelistitem/{id}

**Summary:** Update a price list item

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**200** - Price list item updated

Content-Type: `application/json`

---

#### DELETE /pricelistitem/{id}

**Summary:** Remove a price list item

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | No description |

##### Responses

**200** - Price list item removed

Content-Type: `application/json`

---

## Data Models

### PriceListItemFindResult

Result of finding price list items

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `data` | array | No | No description |

| `total_result` | number | No | Total number of price list items |

| `current_count` | number | No | Count of price list items in current page |

| `total_pages` | number | No | Total number of pages |

| `current_page` | number | No | Current page number |

| `per_page` | number | No | Number of price list items per page |

| `first_page_url` | string | No | URL for the first page |

| `last_page_url` | string | No | URL for the last page |

| `next_page_url` | string | No | URL for the next page |

| `prev_page_url` | string | No | URL for the previous page |

| `path` | string | No | Base URL path |

### PriceListItemSchema

Price list item schema

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Unique identifier for the price list item |

| `product_id` | string | No | ID of the product |

| `variant_id` | string | No | ID of the variant |

| `pricelist_id` | string | No | ID of the price list |

| `price` | number | No | Price value |

| `disabled` | boolean | No | Whether the price list item is disabled |

| `integration_meta` | object | No | Integration metadata |

| `company_namespace` | array | No | Company namespaces |

| `createdAt` | string | No | Creation timestamp |

| `updatedAt` | string | No | Last update timestamp |

| `__v` | number | No | Version number |

### ProductReference

Reference to a product

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Product ID |

| `name` | string | No | Product name |

| `category` | string | No | Product category |

| `active` | boolean | No | Whether the product is active |

| `sku` | string | No | Product SKU |

| `barcode` | string | No | Product barcode |

### VariantReference

Reference to a variant

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Variant ID |

| `name` | string | No | Variant name |

| `product` | string | No | Product ID |

| `sku` | string | No | Variant SKU |

| `barcode` | string | No | Variant barcode |

### PriceListReference

Reference to a price list

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Price list ID |

| `name` | string | No | Price list name |

### PriceListItemCreateBody

Body for creating a price list item

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `product_id` | string | Yes | ID of the product |

| `variant_id` | string | Yes | ID of the variant |

| `pricelist_id` | string | Yes | ID of the price list |

| `price` | number | Yes | Price value |

| `integration_meta` | object | No | Integration metadata |

| `disabled` | boolean | No | Whether the price list item is disabled |

| `company_namespace` | array | No | Company namespaces |

### PriceListItemCreateResult

Result of creating a price list item

### PriceListItemGetResult

Result of getting a price list item

### PriceListItemUpdateBody

Body for updating a price list item

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `product_id` | string | No | ID of the product |

| `variant_id` | string | No | ID of the variant |

| `pricelist_id` | string | No | ID of the price list |

| `price` | number | No | Price value |

| `integration_meta` | object | No | Integration metadata |

| `disabled` | boolean | No | Whether the price list item is disabled |

| `company_namespace` | array | No | Company namespaces |

| `_id` | string | No | Unique identifier for the price list item |

| `createdAt` | string | No | Creation timestamp |

| `updatedAt` | string | No | Last update timestamp |

| `__v` | number | No | Version number |

### PriceListItemUpdateResult

Result of updating a price list item

### PriceListItemRemoveResult

Result of removing a price list item

## TypeScript Usage

See [pricelist-item-examples.md](./pricelist-item-examples.md) for detailed TypeScript usage examples.
