53 lines
892 B
Markdown
53 lines
892 B
Markdown
# `POST /v1/order`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
JTL-POS order upload
|
|
|
|
Imports orders from JTL-POS, creating order and retoure manifests, payments, and shipments with stock adjustments.
|
|
|
|
## 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`._
|