Skip to content
Esc
↑↓navigate↵open⌘Jpreview

v1ProductSlugs

Get product slugs

QUERYv1ProductSlugs
Arguments
perPageInt

Page size (default 100, max 1000)

pageInt

Page number (1-based, default 1)

localeString!required

Locale for translated slugs (e.g. en, sv). Required

marketSlugString!required

Market slug used to scope which products are listed. Required

storeGroupSlugString!required

Store group slug used to scope which products are listed. Required

onlyActiveBoolean!required

When true, only slugs for active products are returned

hasActiveVariantsBoolean

When true, only products with an active variants are matched

Returns

Product slug with optional variant group slug

Try it
Server
Bodyapplication/json
Request
curl -X POST 'https://graphql.enad.io/{app_id}/graphql' \
  -H 'Content-Type: application/json' \
  -d '{
  "query": "query V1ProductSlugs($perPage: Int, $page: Int, $locale: String!, $marketSlug: String!, $storeGroupSlug: String!, $onlyActive: Boolean!, $hasActiveVariants: Boolean) {\n  v1ProductSlugs(perPage: $perPage, page: $page, locale: $locale, marketSlug: $marketSlug, storeGroupSlug: $storeGroupSlug, onlyActive: $onlyActive, hasActiveVariants: $hasActiveVariants) {\n    slug\n    variantGroupSlug\n    translatedSlugs {\n      locale\n      value\n    }\n  }\n}",
  "variables": {
    "perPage": 0,
    "page": 0,
    "locale": "string",
    "marketSlug": "string",
    "storeGroupSlug": "string",
    "onlyActive": true,
    "hasActiveVariants": true
  }
}'
Response
{
  "data": {
    "v1ProductSlugs": [
      {
        "slug": "string",
        "variantGroupSlug": "string",
        "translatedSlugs": [
          {
            "locale": "string",
            "value": "string"
          }
        ]
      }
    ]
  }
}