For the complete documentation index, see llms.txt. This page is also available as Markdown.

List the tenant's stores for the service screens

List every store of the tenant, inactive stores included and marked by isActive, so the service screens can name a store the caller holds no permission at: the destination picker of post-serviceorders-move, which needs no permission at the destination, the storeUids filter of serviceorders-search-tenant, and the store that owns a service order found there. It is granted to a user holding SERVICE_ORDER or SERVICE_STORE_CONFIG at the tenant, at an organization or at any one store, or SERVICE_CONFIG, which is held at the tenant only. A tenant-wide ADMIN grant counts as every permission. A caller holding none of them, a user with no role assignments included, is refused with a 403. Each item carries the store's uid, its name, its organization and whether it is active, and nothing else of the store. The list names stores and never says where the caller may work: that is read from the caller's own permissions, and get-tenants-stores stays the list of the stores the caller holds any permission at. The list is not paged: the tenant's list of stores bounds it. It is ordered by store name, with the storeUid as the tiebreaker.

Required permissions: SERVICE_ORDER, SERVICE_STORE_CONFIG, SERVICE_CONFIG

get
/tenants/{tenantUid}/serviceorders/stores
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
get/tenants/{tenantUid}/serviceorders/stores
GET /v2/tenants/{tenantUid}/serviceorders/stores HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Example response

{
  "items": [
    {
      "storeUid": "text",
      "name": "text",
      "organizationUid": "text",
      "isActive": true
    }
  ]
}

Last updated

Was this helpful?