u
This commit is contained in:
34
docs/api/routes/v1/category.md
Normal file
34
docs/api/routes/v1/category.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# `GET /v1/category`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
JTL-POS category synchronization
|
||||
|
||||
Returns category hierarchy modified after lastChangedCategory cursor for the authenticated POS register.
|
||||
|
||||
## Query parameters
|
||||
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `lastChangedCategory` | no | string | Unix timestamp cursor of last category sync |
|
||||
| `limit` | no | integer | Maximum number of categories to return |
|
||||
|
||||
## Response `200`
|
||||
|
||||
Array of category objects for JTL-POS
|
||||
|
||||
```json
|
||||
[
|
||||
{}
|
||||
]
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 401 | Unauthorized |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
34
docs/api/routes/v1/product.md
Normal file
34
docs/api/routes/v1/product.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# `GET /v1/product`
|
||||
|
||||
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
||||
|
||||
JTL-POS product catalog synchronization
|
||||
|
||||
Returns product catalog with prices, stock, variants, and image hashes modified after lastChangedProduct cursor.
|
||||
|
||||
## Query parameters
|
||||
|
||||
| Param | Required | Type | Description |
|
||||
|-------|----------|------|-------------|
|
||||
| `lastChangedProduct` | no | string | Unix timestamp cursor of last product sync |
|
||||
| `limit` | no | integer | Maximum number of products to return |
|
||||
|
||||
## Response `200`
|
||||
|
||||
Array of product objects for JTL-POS
|
||||
|
||||
```json
|
||||
[
|
||||
{}
|
||||
]
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
| Status | Description |
|
||||
|--------|-------------|
|
||||
| 401 | Unauthorized |
|
||||
|
||||
---
|
||||
|
||||
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._
|
||||
Reference in New Issue
Block a user