Skip to main content

Get Portal Storefront

GET 

/api/admin/portal/storefront

Get the storefront layout's menu tabs and footer, as the merchant configured them. Shown to buyers only while the portal (or the buyer's store) uses the storefront layout; they are kept when the layout is switched back to app.

Required scope: customers:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Every menu tab, dropdown entry and footer link carries a link object: type is one of catalog (the whole catalog), category (id = category id), brand (id = brand id), tag (value = tag name; id = tag id, optional), page (value = info page slug: lower-case letters, numbers and dashes), portal (value = one of home, catalog, brands, wishlist, quick-order, special-order-list, lists, quotes, orders, invoices, returns, my-company) or url (value = an https://, http://, mailto: or tel: address; new_tab opens it in a new tab). Buyers only see links they can follow: a category or brand outside their catalog, or a page their account can't open, is hidden for them. A tag link shows only while that tag is published as a collection (Appearance → Catalog display → Collections) and opens the collection under the tag's current name; a page link only while the info page is published, and on the signed-out sign-in pages only when the page is public.

In this read, each link also has target_label (e.g. Category · Hubs) and warning: missing_target (no target chosen), deleted_target (the category or brand is archived or deleted — buyers don't see it) or unpublished_target (the tag is not published as a collection, or the info page is a draft or deleted — buyers don't see it). A link to a published buyers-only info page also has note = buyers_only: the signed-out sign-in pages leave it out. A tag link's target_label names the tag it opens now, after a rename. A tab with auto_children = brands or categories lists every brand or category the buyer's catalog includes, A–Z, instead of children. limits gives the maximum counts.

Requires a staff bearer token with portal management permission.

Request​

Responses​

OK

Response Headers
    Content-Type