Skip to content

section

One published section of the current channel's active theme.

Arguments

ArgumentTypeDescription
idID!Section IRI, e.g. /api/shop/sections/3.

Node fields

Identical to sections.

Best practices

  • Pass the IRI form, not the bare number. id is /api/shop/sections/3; a plain 3 does not resolve.
  • A section that is switched off, or belongs to a theme the channel no longer runs, does not resolve here — it is not part of the storefront surface, so the query answers with an error rather than a hidden record.
  • Use translations for a language switcher that keeps a shopper on the same block.

Permissions

Public. Requires only the storefront key.

Released under the MIT License.