Queries
372 root queries.
aiChatEnabledWhether the AI chat editor is usable for the ACTIVE org (env key + org toggle + plan gate).
aiChatSessionOne chat session with its messages (own org only).
aiChatSessionsRecent chat sessions of the active org, newest first.
aiSkillsMerchant-facing build/redesign skills (for the chat '/' command menu).
aiArtifactPer-user AI client artifact (e.g. the draw-first mockup HTML + version history) — value is an opaque string, null when absent. Scoped to the caller's org+user.
workspaceCheckpointsWorkspace revert points for a run (or the caller's store), newest-first.
apiKeysList the current org's API keys (no secrets).
availableApiKeyScopesThe scope catalog the create form offers.
apiKeyContextResolve the calling key's org + scopes + store(s). Any valid key may call it.
audienceContactsPaginated leads for a store (search by email/name, optional list/status filter).
audienceContactaudienceContactByCustomerMarketing lead linked to a commerce customer (customer_id pointer, falling back to email match). Null when the customer has no marketing presence.
audienceListsaudienceSegmentsaudienceSegmentPreviewLive match count for an ad-hoc condition (segment builder preview).
suppressionscustomAttributescontactPropertyKeyscontactSourcesactivityFeedcampaignsPaginated, sortable campaigns for a store (optional status filter).
campaigncampaignByFriendlyIdResolve a campaign by its per-org friendly number.
cartRecoverySettingsabandonedCartsabandonedCartStatscartRecoveryMessagesabandonedCartItemspreviewCartRecoveryEmailcartRecoveryLinkrecoverCartproductCategoriesproductCategoryproductsproductproductByBarcodeproductForStoreproductStoresproductStoreOverridesfavoriteProductsrecentlyPurchasedProductstopSellingProductsvalidateBundleStockproductReindexRunPoll a reindex run by id for live progress.
latestProductReindexRunThe active org's most recent reindex run (to show last result on page load).
productReviewscontentTypescontentTypecontentRecordscontentRecordpublicContentTypespublicContentRecordspublicContentRecordcustomerscustomercustomerByEmailcustomerByCodecustomer360ViewcustomerRfmAnalysisrfmSegmentDistributionupcomingBirthdaystopCustomersatRiskCustomersallDebtTransactionsGet all debt transactions for an organization
customersWithDebtGet customers with outstanding debt
customerCreditInfoGet customer credit/debt info for POS
customerGroupscustomerGroupallLoyaltyTransactionsGet all loyalty point transactions for an organization
loyaltyTransactionsGet loyalty point transactions for a customer
expiringPointsGet expiring points for a customer
loyaltyBalanceGet loyalty point balance for customer
pointsHistoryGet points history for customer (simple list, no pagination)
rfmSegmentRulesGet all RFM segment rules for organization
rfmSegmentRuleGet single RFM segment rule by ID
customerTierscustomerTiermyWishlistList wishlist items for the current authed customer OR the supplied anon session_token.
attributeattributesattributesBySetattributesByGroupattributeOptionsproductAttributesForRulesattributeSetattributeSetsattributeSetStructureattributeGroupsemailSendersemailDomainsemailDomainDnsCurrent vs suggested SPF/DKIM/DMARC DNS records for a sending domain.
emailSuppressionsemailSendQueueemailTemplatesemailTemplatetemplateByFriendlyIdResolve a template by its per-org human-facing number.
renderEmailTemplatePreviewemailTemplateSampleDataREAL store data for preview/test rendering: {contact, store, order{items[]}, cart{items[]}, shipping, coupon, products[]} built from the latest order, live cart, active coupon and newest products. Sections missing from an empty store are omitted — the client falls back to canned examples.
emailProductFeedPreviewResolve a product feed to real products for the builder's feed-driven widgets.
emailProductsByIdsResolve manually-picked product ids to real products for the builder widgets.
analyticsOverviewHeadline email metrics for the period with previous-period comparison + daily trend.
deliverabilityReportDelivery / bounce / complaint rates, broken down by recipient ISP/domain.
revenueReportRevenue attributed to campaigns vs flows over the period.
growthReportContact-list growth (new / unsubscribed / bounced) over the period.
contactActivityUnified email + web event timeline for a lead (newest first).
emailEventStatsEmail event counts for a store over the last N days (event_type → count).
emailEventsAdmin listing of raw email events, newest first, with optional filters.
customEventsAdmin listing of custom/web (marketing) events, newest first, with optional filters.
eventCatalogAll track events known for a store: standard catalog ∪ org custom definitions ∪ events actually observed in marketing_events.
metricMappingThe roles, their current per-store mapping, and the events available to assign — drives the Mapped Metrics screen.
conversionMetricsUser-defined conversion metrics for the store.
evaluateConversionMetricCompute a conversion metric's current value over the last sinceDays (0 = all time).
plansAll plan definitions (platform admin).
platformAccountsEvery shop-owning account + counts/caps/role/status (platform admin).
planA single plan by id (platform admin).
platformOrganizationsEvery org with its plan + owner (platform admin, cross-org).
myOrganizationUsageThe active org's plan + current usage (any org member).
productFeedsList product feeds for the active org, optionally scoped to one store.
productFeedproductFeedRunsGeneration history (run log) for one feed, newest first.
productFeedDefaultTemplateThe embedded default Liquid template for a channel/format — seeds the editor.
cashBookscashBooktransactionstransactionflowsflowflowByFriendlyIdflowEnrollmentsflowNodeEmailContentMost recent send event for one (node, contact) within a flow (analytics drill-down).
emailSendLogLook up a single recorded flow send event by its send_id within a flow.
flowExecutionLogsNewest-first per-run execution history for a flow (live + test runs).
formsformformSubmissionsformSubmissionstorefrontFormPublic: form render data by public id (active only).
storefrontFormConfigPublic: status-agnostic form render config by public id (any status).
inventoryinventorySummarystockMovementslowStockItemsexportInventoryCSVsupplierssupplierpurchaseOrderspurchaseOrderstockTransfersstockTransferstockAdjustmentsstockAdjustmentwarehouseZoneswarehouseZoneinventoryDocumentsinventoryDocumentcatalogRulesList catalog rules (org-scoped, paginated). `store_id` narrows to rules that target that store — matches both unscoped rules (apply to all stores) and rules whose `store_ids` JSONB array contains the given id.
catalogRuleGet one catalog rule.
promotionsGet paginated promotions
promotionGet a single promotion
salesRulesGet all sales rules
salesRuleGet a single sales rule
salesRuleCouponsGet coupons for a rule
validateCouponValidate a coupon code
couponStatisticsGet coupon statistics for a rule
publicProductBlocksResolve every active product block for a storefront position. `product_slug` is the PDP/category anchor (drives same-as matching); `cart_product_ids` anchors cart/checkout blocks. Blocks that resolve to zero products are omitted.
productBlocksList product blocks (org-scoped, paginated).
productBlockGet one product block.
productBlockPreviewPreview the products a block configuration would match for an anchor product (includes drafts). Used by the admin editor's live preview pane.
productBlockAnalyticsPer-block view/click totals over the last `days` (default 30).
notificationsnotificationUnreadCountstoreDomainsstoreDomainstoreByDomainisSubdomainAvailableorganizationsorganizationstoresstoremyStoresavailableStoreSubdomainwarehouseswarehousemyWarehousesaddressesaddressvietnamProvincesvietnamProvincevietnamWardsvietnamWardcountriesregionsByCountrysubRegionscurrenciescurrencyexchangeRatespaymentMethodsGet all registered payment methods.
storePaymentMethodsGet available payment methods for a specific store.
availablePaymentMethodsGet available payment methods for a quote. Filters by store availability AND quote-specific conditions (e.g., credit limit for debt).
testStripeConnectionVerify Stripe credentials configured for a store by calling Account.retrieve(). Returns the account display name on success, or surfaces the Stripe API error so admin can fix bad keys.
orderPaymentTransactionsStep-by-step payment event log for an order (the Shopify-style payment timeline): intent created → succeeded/failed/canceled → refunds → raw webhooks. Sourced from the append-only payment_transactions ledger.
storePaymentTransactionsStore-wide payment event log (admin observability): every ledger row across all orders for a store — intents, succeeded/failed/canceled, refunds, disputes/chargebacks, 3DS challenges, and raw webhooks. Filterable by event type, status, and date range; paginated.
personalizationTemplatespersonalizationTemplatepersonalizationRulespersonalizationRuleproductPersonalizationpersonalizationApplyRunPoll a bulk-apply run for progress.
latestPersonalizationApplyRunThe org's most recent bulk-apply run (for the admin page on load).
currentShiftGet current open shift for user
shiftSummaryGet shift summary
shiftHistoryGet shift history
dashboardStatssalesByDatetopProductsReporttopCustomersReportsalesByStoresalesByEmployeesalesByPaymentMethodsalesByChannelslowMovingProductsinventoryReportcustomerAnalyticsfinanceSnapshotcreditMemoorderCreditMemoscreditMemosinvoiceorderInvoicesinvoicesorderorderByNumberordersmyOrdersorderReceiptorderCompletionStatusorderCommentsorderCustomerCommentsmyCartguestCartquoteheldOrdersgenerateVietQRshipmentorderShipmentsshipmentsshippingCarriersGet all registered shipping carriers.
storeShippingCarriersGet available shipping carriers for a specific store.
availableShippingRatesGet available shipping rates for a quote. Calculates rates based on cart contents and delivery address.
productTaxClassescustomerTaxClassestaxClasstaxRatestaxRatetaxRulestaxRuletaxConfigurationcalculateProductTaxtrackingDestinationsList a store's tracking destinations (credentials masked).
trackingDestinationA single destination by id.
trackingDeliveriesPaginated server-side delivery log for a destination (newest first).
trackingEventTypesThe canonical-event catalog for the event picker.
trackingPlatformsThe supported-platform catalog for the add-destination form.
publicTrackingConfigPublic per-store tracking config for the storefront runtime (no secrets).
myShopsmeusersuserrolesrolepermissionspermissionwebhooksList a store's webhooks (secrets masked).
webhookA single webhook by id.
webhookDeliveriesPaginated delivery log for a webhook (newest first).
webhookEventTypesThe supported event-type catalog for the create-form picker.
blogPostsGet paginated blog posts for admin
blogPostGet a single blog post by ID or slug
publishedBlogPostsGet published posts for storefront (public)
featuredBlogPostsGet featured posts for storefront
recentBlogPostsGet recent posts for storefront
blogCategoriesGet all blog categories for a store
blogCategoryTreeGet category tree (hierarchical)
blogCategoryGet a single blog category
blogTagsGet all blog tags for a store
blogCommentsGet comments for a post
pendingBlogCommentsGet comments for moderation. `status` is nullable — when omitted, all statuses are returned (used by the All tab).
blogCommentCountsGet comment counts for moderation dashboard
storeCollectionsGet all collections for a store
storeCollectionGet a single collection by ID or slug
previewCollectionProductsPreview products matching collection conditions (for builder UI)
storeCollectionsByIdsGet multiple collections by IDs (for PageBuilder widgets)
previewCollectionGet a collection by ID for preview/public (no auth)
previewCollectionsGet all active collections for a store (no auth)
previewCollectionProductsListGet products from a collection for preview/public (no auth)
storeMediaGet paginated media for a store
storeMediaByIdGet a single media item by ID
storeMediaFoldersGet available folders for a store
storeFontsGet all custom fonts for a store
storeFontByIdGet a single font by ID
storeFontFamiliesGet distinct font family names for a store
storeFontsCssGet combined CSS for all store fonts
previewStoreFontsCssGet combined CSS for all store fonts for SSR preview (no auth)
storeMenusGet all menus for a store
storeMenuGet a specific menu by ID
storeMenuByHandleGet a menu by handle
menuItemsGet menu items for a menu
menuItemGet a specific menu item
previewMenuByHandleGet menu by handle for preview/public storefront (no auth)
previewStoreMenusGet list of menus for a store (no auth)
browseCollectionsBrowse collections for Resource Browser
browseProductsBrowse products for Resource Browser
browsePagesBrowse pages for Resource Browser
browseBlogCategoriesBrowse blog categories for Resource Browser
browseBlogPostsBrowse blog posts for Resource Browser
storePagesGet all pages for a store
storePageGet a single page by ID
storePageBySlugFind a page by type and slug
storeHomePageGet the home page for a store
storeGlobalSectionsGet all global sections for a store
storeGlobalSectionGet a specific global section
storeBySlugGet store by slug for public pages (no auth)
publishedPageGet published page for public storefront (no auth)
publishedGlobalSectionsGet published global sections for public storefront (no auth)
publicActiveThemeGet active theme for public storefront (no auth)
storefrontMeGet the currently authenticated customer profile
publicShopPublic store branding + SEO defaults — populated into Liquid's `shop.*` context. Anonymous read.
storefrontCartGet the active storefront cart for this session. Returns a freshly-created empty quote when there's nothing yet.
storefrontShippingRatesReal shipping rates for the session's cart, computed from the store's enabled carriers + selling country. Session-verified (no auth). ShippingRate is defined in shipping.graphql.
storefrontMyOrdersAuthed customer's order history. Auth required (Bearer token).
storefrontMyAddressesAuthed customer's saved address book.
storefrontMyAddressSingle saved address by ID (must belong to the authed customer).
_publicShopAnchorPlaceholder anchor — gqlgen needs at least one stub here when we close the previous extend with `}` early.
publicProductGet a single product by slug for public storefront
publicSearchProductsSearch products in a store's catalog with optional filters + facets.
publicCollectionGet a collection by slug for public storefront
publicCollectionsGet all active collections for a store (public)
publishedPageByTypeGet a published page by type
publicBlogPostGet a published blog post by store slug and post slug
publicBlogPostsList published blog posts with optional category / tag / pagination filters
publicBlogTagsList blog tags for the storefront sidebar / filter chips
publicBlogCategoriesList blog categories for the storefront navigation
publicCollectionProductsPaginated products inside a published collection with optional filter + facets.
publicRelatedProductsRelated products for a PDP — same category / collection, exclude self
publicTopReviewsTop approved reviews across all products in a store, for the homepage testimonials section. Ordered by rating DESC, then recency DESC.
publicMenuResolve a menu by handle for the storefront header / footer
publicMenusAll menus for a store, fully hydrated — the storefront fetches every menu in one round-trip instead of one query per handle
storefrontOrderByNumberGet order by number for storefront confirmation page
storeThemesGet all themes for a store
storeThemeGet a single theme by ID
activeThemeGet the active theme for a store
presetThemesGet available preset themes
themeTemplatesGet pre-built theme templates (Shopify-style picker). Filterable by industry/style.
themeSectionsGet sections for a theme
themeAssetsGet assets for a theme
themeFilesList files in a theme, optionally narrowed by path prefix / content type. Set include_inherited=true to also return files inherited from the parent theme (each file's `source` field then tells you which).
themeFileRead a single theme file by path. By default returns only files owned by this theme; pass include_inherited=true to fall back to the parent theme when the path is not owned locally.
publicThemeFilesStorefront-public list of files for the active theme of a store. No auth required. Inheritance is always applied — public callers always see resolved content.
publicThemeFileStorefront-public read of a single theme file by path. No auth required. Inheritance is always applied.
publicResolvedThemeStorefront-public single-round-trip read of the entire theme (metadata + resolved file tree + etag). The frontend Liquid renderer consumes this directly.
themeVersionsList the most recent snapshots of a theme (newest first).
themeVersionLook up a snapshot by id (admin / diff view).
validateThemeSettingsValidate settings_data against the theme's settings_schema.
validateThemePreviewTokenPublic: resolve an opaque preview token into the theme/page it grants access to. Returns null when the token is missing, expired, or revoked. Storefront uses this to swap `?preview_token=…` for an internal theme_id. NO AUTH — the token itself is the credential.
publicResolvedThemePreviewPublic: same shape as publicResolvedTheme but selects the theme the preview token grants access to instead of the store's live theme. Returns null on missing/expired/revoked token. Single round-trip: token validation + bundle fetch are atomic so the storefront can't race a token expiry. NO AUTH — the token IS the credential.
publicTranslationsstoreTranslationswidgetTemplateResolve widget template for a store with inheritance
defaultWidgetTemplateGet the default template for a widget type
supportedWidgetTypesGet all widget types that support template customization
storeWidgetTemplatesList all custom templates for a store
themeWidgetTemplatesList all templates for a theme
