Sales Points

Point-of-sale location management and geographic exploration

List sale points

get
/sales-points

Returns all sale points owned by the authenticated merchant.

Roles: Association, Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Query parameters
pageintegerOptional
limitintegerOptional
childManagerstringOptional

SuperManager: filter by child manager ID

Responses
200

Sale point list

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

get
/sales-points

Create a sale point

post
/sales-points

Creates a new point-of-sale location for the merchant.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Body
namestringRequired
citystringOptional
countrystringOptional
streetstringOptional
latnumberOptional
lngnumberOptional
zipCodestringOptional
logoUrlstringOptional
childManagerstringOptional

SuperManager: create under a specific child manager

Responses
200

Sale point created

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

post
/sales-points

Get a sale point

get
/sales-points/{id}

Returns details of a sale point by ID.

Roles: Manager, SuperManager, SuperAdmin

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Path parameters
idstringRequired
Responses
200

Sale point details

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

get
/sales-points/{id}

Update a sale point

put
/sales-points/{id}

Updates one or more fields of a sale point.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Path parameters
idstringRequired
Body
namestringOptional
citystringOptional
countrystringOptional
streetstringOptional
latnumberOptional
lngnumberOptional
zipCodestringOptional
logoUrlstringOptional
Responses
200

Sale point updated

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

put
/sales-points/{id}

Delete a sale point

delete
/sales-points/{id}

Permanently removes a sale point.

Roles: Manager, SuperManager

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Path parameters
idstringRequired
Responses
200

Sale point deleted

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

dataanyOptional

Response payload

delete
/sales-points/{id}

Explore nearby sale points

get
/sales-points/explore

Returns sale points near the given GPS coordinates. Used by the customer-facing map.

Roles: Authenticated users

Authorizations
AuthorizationstringRequired

JWT token obtained from /auth/login or /auth/login/manager. Include as Authorization: Bearer <token>.

Query parameters
longitudenumberRequired

Longitude of the search center

latitudenumberRequired

Latitude of the search center

distancenumberOptional

Search radius in meters (optional)

Responses
200

Nearby sale points

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

get
/sales-points/explore

Locate sale points (public)

get
/sales-points/locate-sales-points

Public endpoint that returns nearby Lyzi-enabled merchant locations. No authentication required.

Responses
200

Sale point locations

application/json
successbooleanOptional

Whether the request succeeded

statusintegerOptional

HTTP status code

get
/sales-points/locate-sales-points
200

Sale point locations

Last updated