This commit is contained in:
seb
2026-10-22 12:30:04 +02:00
parent e83be2ca21
commit a27f507138
10 changed files with 596 additions and 3 deletions

View File

@@ -0,0 +1,38 @@
# `GET /v1/deletedentity`
Protected. Requires a valid session cookie (`credentials: 'include'`).
JTL-POS deleted entity synchronization
Returns deleted entities after lastChangedDeletedEntity cursor for the authenticated POS register.
## Query parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `lastChangedDeletedEntity` | no | string | Sequential ID cursor of last processed tombstone |
| `limit` | no | integer | Maximum number of deleted entities to return |
## Response `200`
Array of deleted entity objects for JTL-POS
```json
[
{
"entityId": "123",
"entityType": 1,
"lastChanged": 45
}
]
```
## Errors
| Status | Description |
|--------|-------------|
| 401 | Unauthorized |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._

View File

@@ -0,0 +1,52 @@
# `POST /v1/order`
Protected. Requires a valid session cookie (`credentials: 'include'`).
JTL-POS order upload
Imports orders from JTL-POS, creating order manifests, payments, and shipments with stock deductions.
## Query parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `mandantId` | no | string | |
## Body (JSON)
| Field | Required | Type | Description |
|-------|----------|------|-------------|
| `orders` | no | object[] | |
```json
{
"orders": [
{}
]
}
```
## Response `200`
Array of sync results per order
```json
[
{
"status": "OK",
"externalOrderId": "2",
"message": ""
}
]
```
## Errors
| Status | Description |
|--------|-------------|
| 401 | Unauthorized |
| 500 | Internal server error |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._