younifyd
Menu

List the brands

List the brands

GET/v1/brands

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the List the brands action (under brands).
  3. Fill in the fields below, then reference the result from later steps as {{listTheBrands.response.data}}.

Request

Query parameters

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

shopKeystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `countryCode` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

countryCodestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `shopKey` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `shopKey` and `countryCode`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

pageinteger

The number of the page to retrieve. The combined value of `page * perPage` must not exceed `500000`, which is the maximum number of items that can be returned. _Note: This parameter is mutually exclusive with `offset` and `limit`._

Default 1

perPageinteger

The number of items to retrieve per page. The combined value of `page * perPage` must not exceed `500000`, which is the maximum number of items that can be returned. _Note: This parameter is mutually exclusive with `offset` and `limit`._

Default 100

offsetinteger

The offset of the first item to return. The combined value of `offset + limit` must not exceed `500000`, which is the maximum number of items that can be returned. _Note: This parameter is mutually exclusive with `page` and `perPage`._

Default 0

limitinteger

The combined value of `offset + limit` must not exceed `500000`, which is the maximum number of items that can be returned. _Note: This parameter is mutually exclusive with `page` and `perPage`._

Default 100

idsarray<integer>

Restrict results to brands that match the specified comma-separated list of IDs. _Note: This parameter ignores any pagination option. Additionally, this filter always takes precedence over any other, meaning that when it is set then it's the only considered filter._

slugsarray<string>

Restrict results to brands that match the specified comma-separated list of slugs. _Note: This parameter ignores any pagination option._

witharray<string>

Include additional data in the response. The following table describes all the possible parameters that can be used: Parameter | Description --- | --- customData | Include the custom data associated with the brand. customData:key() | Include custom data of brand with empty object. customData:key(keyA\|...) | Include custom data of brand with only the specified keys.

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

X-Shop-Keystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `X-Country-Code` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Country-Codestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `X-Shop-Key` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `X-Shop-Key` and `X-Country-Code`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

Response

Returns 200 with an object. Read it in later steps with {{listTheBrands.response.data.<field>}}.

paginationoneOf
entitiesarray<object>
idintegerrequired

A unique numeric identifier for the brand.

slugstringrequired

A unique, human-readable identifier automatically generated based on the brand name, typically used in URLs.

namestringrequired

The name of the brand.

externalReferencestringrequired

A client-defined external reference to integrate the brand with third-party systems.

groupstringrequired

The group to which the brand belongs.

isActivebooleanrequired

Flag indicating whether the brand is active or not.

logoHashstringrequired

The hash used to generate the URL for the brand's logo.

createdAtstringrequired

A date string formatted as RFC 3339.

updatedAtstringrequired

A date string formatted as RFC 3339.

indexedAtstringrequired

A date string formatted as RFC 3339.

customDataobjectrequired

Additional data relevant for the brand.

json
{
  "pagination": null,
  "entities": [
    {
      "id": 0,
      "slug": "string",
      "name": "string",
      "externalReference": "string",
      "group": "string",
      "isActive": false,
      "logoHash": "string",
      "createdAt": "2023-01-26T09:30:15Z",
      "updatedAt": "2023-01-26T09:30:15Z",
      "indexedAt": "2023-01-26T09:30:15Z",
      "customData": {}
    }
  ]
}

Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?
List the brands — SCAYLE Storefront — Documentation