List locations
/locationsLocations of the business, oldest first. Removed locations are not listed. See the Pagination guide.
Query parameters
limitintegerHow many items one page holds at most.
min 1 · max 100 · default 20
cursorstringnext_cursorof the previous page; omit it for the first page. See the Pagination guide.
Responses
Success
- 200 OKLocationPage
One page of locations.
2 fields
itemsarray of Location11 fields
idintegerThe location id; POS rules in Get the loyalty program refer to it in
location_ids.namestring | nulladdressstring | nulllatitudenumber | nulllongitudenumber | nullworking_timeobject | nullOpening hours by day, keys
monday…sundayin week order. A day that is missing has no hours set.nullwhen no hours are set at all.phonestring | nullimagestring | null · uriis_ecommercebooleanThe online shop rather than a physical location.
is_hidden_on_mapbooleanNot shown on the map in the Lynked app.
is_staff_onlybooleanOnly staff of the business use this location.
next_cursorstring | nullPass as
cursorto get the next page;nullon the last page.
Errors
- 401 UnauthorizedError
The API key is missing, invalid or revoked.
3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 403 ForbiddenError
The Public API is disabled for this business.
3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 422 Unprocessable EntityValidationError
The request is invalid;
errorslists the problems per field.4 fields
messagestringAll problems in one line.
errorsobjectRequest field path → its problems.
error_codestringundefinedfor validation errors for now; see Errors for the list of codes.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
- 429 Too Many RequestsRateLimitError
More than 120 requests per minute for this business.
HeadersRetry-AfterintegerSeconds to wait before the next request.
4 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
retry_afterintegerSeconds to wait before the next request; the same value as the
Retry-Afterheader.
- 500 Internal Server ErrorError
Something failed on Lynked's side. Retry later; if it persists, contact Lynked support with the
error_uid.3 fields
messagestringWhat went wrong. The text may change; use
error_codein your code.error_codestringMachine-readable code of the problem, for example
api_key_invalid; it does not change within v1. Every error has one:internal_server_erroron a 500,undefinedwhen the error has no specific code yet. See Errors for the list.error_uidstringIdentifier of this error in Lynked's logs. Quote it when you contact Lynked support.
curl 'https://api.lynked.ie/api/public/v1/locations' \
-H 'Authorization: Bearer lk_live_...'
HTTP/3 200 OK
Content-Type: application/json
{
"items": [
{
"id": 311,
"name": "Harbour Road",
"address": "1 Harbour Road",
"latitude": 53.2943,
"longitude": -6.1349,
"working_time": {
"monday": {
"is_open": true,
"is_all_day": false,
"from": "07:30",
"to": "22:00"
},
"sunday": {
"is_open": false,
"is_all_day": false,
"from": null,
"to": null
}
},
"phone": "+35312345678",
"image": "https://cdn.lynked.ie/locations/311.png",
"is_ecommerce": true,
"is_hidden_on_map": true,
"is_staff_only": true
}
],
"next_cursor": "string"
}