Collectors
JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Filter by child manager ID (SuperManager only)
List of collectors
Whether the request succeeded
HTTP status code
Unauthorized
GET /api/next/collectors/list HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": [
{
"_id": "text",
"identifier": "text",
"name": "text",
"active": true,
"salePoint": "text",
"uuid": "text",
"cashiers": [
"text"
]
}
]
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Collector ID
Collector details
Whether the request succeeded
HTTP status code
Unauthorized
Not found
GET /api/next/collectors/{id} HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": {
"_id": "text",
"identifier": "text",
"name": "text",
"active": true,
"salePoint": "text",
"uuid": "text",
"cashiers": [
"text"
]
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Human-readable register identifier
ID of the parent sale point
UUID from the Lyzi ProScan app QR code
SuperManager: assign to a specific child manager
Collector added
Whether the request succeeded
HTTP status code
Unauthorized
Validation error
POST /api/next/collectors/add HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"identifier": "text",
"salePoint": "text",
"uuid": "text",
"childManager": "text"
}{
"success": true,
"status": 1,
"data": {
"_id": "text",
"identifier": "text",
"name": "text",
"active": true,
"salePoint": "text",
"uuid": "text",
"cashiers": [
"text"
]
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Collector identifier (UUID-BRANDNAME-COMPANYNAME-GEN format)
Operating system (iOS/Android)
FCM push notification token
Collector authenticated, updated collector object returned
Whether the request succeeded
HTTP status code
Unauthorized
Collector not found
Validation error
POST /api/next/collectors/controlcollector HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"identifier": "text",
"os": "text",
"osVersion": "text",
"deviceModel": "text",
"deviceToken": "text"
}{
"success": true,
"status": 1,
"data": {
"_id": "text",
"identifier": "text",
"name": "text",
"active": true,
"salePoint": "text",
"uuid": "text",
"cashiers": [
"text"
]
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Collector ID
List of cashier user IDs
Collector updated
Whether the request succeeded
HTTP status code
Unauthorized
Validation error
PUT /api/next/collectors/update/{id} HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"name": "text",
"active": true,
"cashiers": [
"text"
]
}{
"success": true,
"status": 1,
"data": {
"_id": "text",
"identifier": "text",
"name": "text",
"active": true,
"salePoint": "text",
"uuid": "text",
"cashiers": [
"text"
]
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Sale point ID
Collectors for the sale point
Whether the request succeeded
HTTP status code
Unauthorized
GET /api/next/collectors/salepoint/{id} HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": [
{
"_id": "text",
"identifier": "text",
"name": "text",
"active": true,
"salePoint": "text",
"uuid": "text",
"cashiers": [
"text"
]
}
]
}Last updated