Skip to content

Get Section

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

Endpoint

MethodPathPurpose
GET/api/shop/sections/{id}Get a section

Path parameters

ParameterDescription
idSection ID.

Response fields

Identical to List sections.

Best practices

  • A 404 here does not always mean the section was deleted. A section that is switched off, or belongs to a theme the channel no longer runs, is not part of the storefront surface and answers 404 the same way.
  • Read every locale from translations when building a language switcher that keeps the shopper on the same block.

Errors

StatusWhen
404No published section with this ID in the current channel's active theme.

Permissions

Public. Requires only the storefront key.

Released under the MIT License.