Sales Points
JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
SuperManager: filter by child manager ID
Sale point list
Whether the request succeeded
HTTP status code
Unauthorized
GET /api/next/sales-points HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": [
{
"_id": "text",
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}
]
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
SuperManager: create under a specific child manager
Sale point created
Whether the request succeeded
HTTP status code
Unauthorized
Validation error
POST /api/next/sales-points HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text",
"childManager": "text"
}{
"success": true,
"status": 1,
"data": {
"_id": "text",
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Sale point details
Whether the request succeeded
HTTP status code
Unauthorized
Not found
GET /api/next/sales-points/{id} HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": {
"_id": "text",
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Sale point updated
Whether the request succeeded
HTTP status code
Unauthorized
PUT /api/next/sales-points/{id} HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 112
{
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}{
"success": true,
"status": 1,
"data": {
"_id": "text",
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Sale point deleted
Whether the request succeeded
HTTP status code
Response payload
Unauthorized
DELETE /api/next/sales-points/{id} HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": null
}JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.
Longitude of the search center
Latitude of the search center
Search radius in meters (optional)
Nearby sale points
Whether the request succeeded
HTTP status code
Unauthorized
Validation error — longitude and latitude are required
GET /api/next/sales-points/explore?longitude=1&latitude=1 HTTP/1.1
Host: api.lyzi.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"status": 1,
"data": [
{
"_id": "text",
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}
]
}Sale point locations
Whether the request succeeded
HTTP status code
GET /api/next/sales-points/locate-sales-points HTTP/1.1
Host: api.lyzi.fr
Accept: */*
Sale point locations
{
"success": true,
"status": 1,
"data": [
{
"_id": "text",
"name": "text",
"city": "text",
"country": "text",
"street": "text",
"lat": 1,
"lng": 1,
"zipCode": "text",
"logoUrl": "text"
}
]
}Last updated