Skip to main content
By default, the Store API returns only the primary resource attributes to keep responses fast and lightweight. Use the expand parameter to expand related resources inline.

Including Relations

Pass a comma-separated list of relation names via the expand query parameter:

Response Format

Without expand, relation fields are omitted from the response:
With ?expand=variants,media, the related resources are embedded:

Available Relations by Resource

Products

RelationDescription
variantsAll purchasable variants
default_variantThe default variant
mediaAll product media (images and videos across all variants)
primary_mediaThe main product image
option_typesOption types (e.g., Size, Color)
categoriesCategories this product belongs to
custom_fieldsPublic custom fields (structured metadata)
prior_pricePrevious price history (for showing strikethrough)

Categories

RelationDescription
parentParent category
ancestorsAll ancestor categories (for breadcrumbs)
childrenDirect child categories
custom_fieldsPublic custom fields (structured metadata)

Countries

RelationDescription
statesStates/provinces within the country

Collections with Includes

The expand parameter also works on collection endpoints:

Nested Includes

Use dot notation to include nested relations:
Only include relations you actually need. Each included relation requires additional database queries, so requesting unnecessary relations will slow down the response.