Skip to content

Stores API

Physical stores, their hours and time zones. All requests need a secret key; see REST API for keys, errors and limits.

List stores, newest first, with their screen counts

GET /v1/locations

Parameters

NameInTypeDescription
cursorquerystring
limitqueryinteger
sortByquery"createdAt"
sortDirquery"asc" | "desc"
Terminal window
curl -X GET https://api.loomieo.com/v1/locations \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
locationsrequiredlist of object
paginationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: rate_limited

Add a store

POST /v1/locations

Add a store (owner)

Body

NameTypeDescription
namerequiredstring1 to 120 characters
timeZonerequiredstringIANA time zone, e.g. Europe/Stockholm. 1 to 64 characters
addressobjectdefault {}
alertEmailslist of emailWho gets offline alerts; empty sends them to the organization's owners. up to 5 items
offlineAlertMinutesinteger or nullEmail when a screen here has been silent this many minutes of opening hours (S-15); null is off.
openingHoursobjectOpening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them. default {}
siteIdidThe site (market) whose language, currency and listings it uses; the organization's first site when omitted.
sleepOutsideHoursbooleanScreens here go dark outside the opening hours (when any are set). default false
themeIdid or null
Terminal window
curl -X POST https://api.loomieo.com/v1/locations \
-H "Authorization: Bearer $LUMIEO_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…","timeZone":"…"}'

Response 200

NameTypeDescription
locationrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 402: plan_limit_reached
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: site_not_found, theme_not_found
  • 422: validation_failed
  • 429: rate_limited

Delete a store

DELETE /v1/locations/{id}

Delete a store (owner): ?moveScreensTo=<store id> moves its screens, ?removeScreens=true removes them

Parameters

NameInTypeDescription
idrequiredpathid
moveScreensToqueryidAnother store to move this store's screens to.
removeScreensquery"true" | "false"true removes this store's screens (their tokens stop working).
Terminal window
curl -X DELETE https://api.loomieo.com/v1/locations/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
locationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found
  • 409: location_last, screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited

One store

GET /v1/locations/{id}

Parameters

NameInTypeDescription
idrequiredpathid
Terminal window
curl -X GET https://api.loomieo.com/v1/locations/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
locationrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: location_not_found
  • 422: validation_failed
  • 429: rate_limited

Update a store

PATCH /v1/locations/{id}

Update a store (owner); its screens pick up a new time zone, site language or opening hours

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
addressobject
alertEmailslist of emailWho gets offline alerts; empty sends them to the organization's owners. up to 5 items
namestring1 to 120 characters
offlineAlertMinutesinteger or nullEmail when a screen here has been silent this many minutes of opening hours (S-15); null is off.
openingHoursobjectOpening intervals per weekday, HH:MM in the location's time zone. With sleepOutsideHours, its screens go dark outside them.
siteIdid
sleepOutsideHoursboolean
themeIdid or null
timeZonestringIANA time zone, e.g. Europe/Stockholm. 1 to 64 characters
Terminal window
curl -X PATCH https://api.loomieo.com/v1/locations/:id \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
locationrequiredobject
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: location_not_found, site_not_found, theme_not_found
  • 409: screen_group_limit_reached
  • 422: validation_failed
  • 429: rate_limited

Set what a store's screens show

PUT /v1/locations/{id}/assignment

Set what a store's screens show; a group or screen of their own still wins, and it beats the site and everyone. All null: clear it

Parameters

NameInTypeDescription
idrequiredpathid

Body

NameTypeDescription
fallbackPlaylistIdid or nullPlays when the main playlist is empty or none is set; cached on the screen.
layoutIdid or nullPlays this layout (zones, each with its playlist, and overlays) instead of a playlist (S-13).
playlistIdid or null
Terminal window
curl -X PUT https://api.loomieo.com/v1/locations/:id/assignment \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
assignmentrequiredobject or nullWhat the target now shows; null once cleared.
Errors
  • 400: bad_request
  • 401: auth_unauthenticated
  • 403: auth_csrf_rejected, forbidden, out_of_scope
  • 404: layout_not_found, location_not_found, playlist_not_found
  • 422: validation_failed
  • 429: rate_limited