Location API
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/location/get |
Get last location |
POST |
/api/location/update |
Update location |
Get last location
GET /api/location/get
Get last location
Responses
200 — Location of the portable cash register.
Schema: LocationResponse
404 — Location not set
Schema: ErrorResponse
Location not found
Returned if the recent location is not found in the CHDÚ. Either the CHDÚ isn't indexed (in this case there is a hard search limit) or the location hasn't been set yet.
{
"resultCode": 506,
"error": "Location not found"
}
500 — An error occurred (for example CHDU got disconnected)
Schema: ErrorResponse
Update location
POST /api/location/update
Update cash register location
Request Body
Location data
Responses
500 — An error occurred...
default — Standard response
Schema: LocationResponse