Skip to content

catalogQuery

Wok edited this page Dec 12, 2023 · 1 revision
query catalogQuery(
    $productNamespace:String!,
    $offerId:String!,
    $locale:String,
    $country:String!,
    $includeSubItems:Boolean!) {
    Catalog {
        catalogOffer(namespace: $productNamespace, id: $offerId, locale: $locale) {
            title
            id
            namespace
            description
            effectiveDate
            expiryDate
            isCodeRedemptionOnly
            keyImages {
                type
                url
            }
            seller {
                id
                name
            }
            productSlug
            urlSlug
            url
            tags {
                id
            }
            items {
                id
                namespace
            }
            customAttributes {
                key
                value
            }
            developerDisplayName
            publisherDisplayName
            categories {
                path
            }
            catalogNs {
                parent,
                store,
                mappings(pageType: "productHome") {
                    pageSlug
                    pageType
                }
            }
            offerMappings {
                pageSlug
                pageType
            }
            price(country: $country) {
                totalPrice {
                    discountPrice
                    originalPrice
                    voucherDiscount
                    discount
                    currencyCode
                    currencyInfo {
                        decimals
                    }
                    fmtPrice(locale: $locale) {
                        originalPrice
                        discountPrice
                        intermediatePrice
                    }
                }
                lineOffers {
                    appliedRules {
                        id
                        endDate
                        discountSetting {
                            discountType
                        }
                    }
                }
            }
        },
        offerSubItems(namespace: $productNamespace, id: $offerId) @include(if: $includeSubItems) {
            namespace
            id
            releaseInfo {
                appId
                platform
            }
        }
    }
}
Clone this wiki locally