Files
dashback/docs/api/routes/v1/customergroup.md
2026-10-27 06:48:30 +00:00

41 lines
978 B
Markdown

# `GET /v1/customergroup`
Protected. Requires a valid session cookie (`credentials: 'include'`).
JTL-POS customer group synchronization
Returns customer groups modified after lastChangedCustomerGroup cursor for the authenticated POS register, excluding 'Lieferanten'.
## Query parameters
| Param | Required | Type | Description |
|-------|----------|------|-------------|
| `lastChangedCustomerGroup` | no | string | Sequential ID cursor of last synced customer group entry (`posterminalsyncqueue.id`) |
| `limit` | no | integer | Maximum number of customer groups to return |
## Response `200`
Array of customer group objects for JTL-POS
```json
[
{
"customerGroupId": "1",
"name": "Endkunden",
"standard": "1",
"discountPercent": "0.000000",
"lastChanged": "12"
}
]
```
## Errors
| Status | Description |
|--------|-------------|
| 401 | Unauthorized |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._