Skip to main content

Get Catalog Landing Header

GET 

/api/portal/catalog/landing

Return the header to show above a brand, category or collection view of the catalog. Send exactly one of brand, category or tag; none or more than one returns 422.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

Response fields:

  • type: brand, category or collection.
  • id: the brand, category or tag id.
  • title: the heading to show (a brand's portal name, a category's name, or a collection's title).
  • name: the underlying name (a collection's tag name, to pass as tag to List Catalog Products).
  • description_html: the merchant's description rendered from Markdown and sanitised, or null (brands and collections only).
  • image_url: the brand logo or category image, or null.
  • assets_url: a brand's outbound "Brand assets" link, or null.
  • default_sort: the sort a collection's view starts on (name, price_asc, price_desc, newest), or null.
  • breadcrumb: a category's ancestors as {id, name}, root first; empty otherwise.

Returns 404 when the account cannot see the subject: a brand or category with no product in the account's catalog, or a tag that is not a published collection. Nothing about the subject is returned then.

Authentication: Requires a portal Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type