# Repzo API - Price List

OpenAPI specification for Repzo Price List endpoints.

**Version:** 1.0.0

## Overview

### Base URLs

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

## Authentication

No authentication required.

## Endpoints

### `/pricelist`

#### GET /pricelist

**Summary:** Find price lists

##### Parameters

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

| `params` | query | object | No | Query parameters for filtering price lists |

##### Responses

**200** - A list of price lists

Content-Type: `application/json`

---

#### POST /pricelist

**Summary:** Create a price list

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**201** - Price list created

Content-Type: `application/json`

---

### `/pricelist/{id}`

#### GET /pricelist/{id}

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

##### Parameters

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

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

##### Responses

**200** - Price list details

Content-Type: `application/json`

---

#### PUT /pricelist/{id}

**Summary:** Update a price list

##### Parameters

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

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

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**200** - Price list updated

Content-Type: `application/json`

---

#### DELETE /pricelist/{id}

**Summary:** Remove a price list

##### Parameters

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

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

##### Responses

**200** - Price list removed

Content-Type: `application/json`

---

## Data Models

### PriceListFindResult

Result of finding price lists

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

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

| `total_result` | number | No | Total number of price lists |

| `current_count` | number | No | Count of price lists 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 lists 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 |

### PriceListSchema

Price list schema

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

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

| `name` | string | No | Name of the price list |

| `createdby` | object | No | Creator information |

| `disabled` | boolean | No | Whether the price list 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 |

### PriceListCreateBody

Body for creating a price list

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

| `name` | string | Yes | Name of the price list |

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

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

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

### PriceListCreateResult

Result of creating a price list

### PriceListGetResult

Result of getting a price list

### PriceListUpdateBody

Body for updating a price list

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

| `name` | string | No | Name of the price list |

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

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

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

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

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

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

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

### PriceListUpdateResult

Result of updating a price list

### PriceListRemoveResult

Result of removing a price list

## TypeScript Usage

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