customerPlpBanner
Kept only for buyer-app versions released before the app read the storefront theme (D-116): they still call it. The Home CMS is retired (D-115/D-116); current apps read customerStorefrontPage. Remove once those versions are retired.
Requires a customer (portal or buyer app) session.
Returns the PLP_BANNER for the given category slug. Falls back to a banner with no categorySlug (global) when no per-category row exists. Null when neither is authored.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CustomerPlpBanner($categorySlug: String!) {
customerPlpBanner(categorySlug: $categorySlug) {
title
href
imageUrl
kind
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CustomerPlpBanner($categorySlug: String!) {\n customerPlpBanner(categorySlug: $categorySlug) {\n title\n href\n imageUrl\n kind\n }\n}",
"variables": {
"categorySlug": "string"
}
}
EOF
Variables:
{
"categorySlug": "string"
}
Response:
{
"data": {
"customerPlpBanner": {
"title": "string",
"href": "string",
"imageUrl": "string",
"kind": "BRAND_PREMIX"
}
}
}
customerPlpBanner(
categorySlug: String!
): InfoStripSection @deprecated
Arguments
customerPlpBanner.categorySlug ● String! non-null scalar
The slug of the category.
Type
InfoStripSection object
A static information banner at the top of the home screen, drawn as one image.