xcladeDocs
Storefront GraphQL

Schema Reference

Complete index of all 53 Queries and 45 Mutations across the 22 xclade Storefront & B2B GraphQL domains

Storefront GraphQL Schema Reference

Every operation below is compiled into your store's Go gqlgen binary and served from POST /graphql. For Merchant Admin operations (POST /admin/graphql), see Merchant Admin GraphQL.


Queries (53)

Catalog, Variants, Brands & Reviews (19)

Query SignatureAccessDescription
products(limit: Int = 50, offset: Int = 0, filter: ProductFilterInput, order: ProductOrderInput, pricing_context: PricingContextInput): ProductConnection!Public (cached)List & search products with sales-channel scoping and contextual B2C/B2B variant pricing.
product(id: ID!, pricing_context: PricingContextInput): ProductPublic (cached)Fetch a single product by ID.
productByHandle(handle: String!, pricing_context: PricingContextInput): ProductPublic (cached)Fetch a single product by URL slug (handle).
productVariants(limit: Int = 50, offset: Int = 0, filter: ProductVariantFilterInput, pricing_context: PricingContextInput): ProductVariantConnection!Public (cached)Search variants directly by SKU, product ID, or query text (ideal for B2B quick-order).
productVariant(id: ID!, pricing_context: PricingContextInput): ProductVariantPublic (cached)Fetch a single product variant by ID.
collections(limit: Int = 50, offset: Int = 0, filter: CollectionFilterInput, order: CollectionOrderInput, pricing_context: PricingContextInput): ProductCollectionConnection!Public (cached)List merchandising collections.
collection(id: ID!, pricing_context: PricingContextInput): ProductCollectionPublic (cached)Fetch a collection by ID.
collectionByHandle(handle: String!, pricing_context: PricingContextInput): ProductCollectionPublic (cached)Fetch a collection by URL handle.
productCategories(limit: Int = 50, offset: Int = 0, filter: ProductCategoryFilterInput, order: ProductCategoryOrderInput, pricing_context: PricingContextInput): ProductCategoryConnection!Public (cached)List hierarchical product categories (mpath, parent_category, category_children).
productCategory(id: ID!, include_descendants_tree: Boolean, include_ancestors_tree: Boolean, pricing_context: PricingContextInput): ProductCategoryPublic (cached)Fetch a category by ID with optional ancestor/descendant tree expansion.
productCategoryByHandle(handle: String!, include_descendants_tree: Boolean, include_ancestors_tree: Boolean, pricing_context: PricingContextInput): ProductCategoryPublic (cached)Fetch a category by URL handle.
productTags(limit: Int = 50, offset: Int = 0, filter: ProductTagFilterInput): ProductTagConnection!PublicList product tags.
productTag(id: ID!): ProductTagPublicFetch a product tag by ID.
productTypes(limit: Int = 50, offset: Int = 0, filter: ProductTypeFilterInput): ProductTypeConnection!PublicList product taxonomy types.
productType(id: ID!): ProductTypePublicFetch a product type by ID.
brands(limit: Int = 50, offset: Int = 0, filter: BrandFilterInput): BrandConnection!Public (cached)List product brands.
brand(id: ID!): BrandPublic (cached)Fetch a brand by ID.
reviews(limit: Int = 10, offset: Int = 0, filter: ReviewFilterInput, order: ReviewOrderInput): ReviewConnection!PublicList product reviews (storefront callers see approved reviews).
review(id: ID!): ReviewPublicFetch a single review by ID.

Regions, Currencies, Locales, Promotions & Site Settings (10)

Query SignatureAccessDescription
locales: [Locale!]!Public (cached · 60m)List active store translation locales (code, name).
currencies(limit: Int = 50, offset: Int = 0, filter: CurrencyFilterInput): CurrencyConnection!Public (cached · 60m)List supported ISO-4217 currencies.
currency(code: ID!): CurrencyPublic (cached · 60m)Fetch a currency by 3-letter ISO code (e.g. "usd").
regions(limit: Int = 50, offset: Int = 0, filter: RegionFilterInput): RegionConnection!Public (cached · 30m)List commerce regions with countries, currencies, and enabled providers.
region(id: ID!): RegionPublic (cached · 30m)Fetch a region by ID.
siteSettings: SiteSettings!Public (cached · 1m)Fetch storefront CMS brand theme, hero sliders, navigation menus, and SEO settings.
promotions(limit: Int = 50, offset: Int = 0, filter: PromotionFilterInput): PromotionConnection!Admin / Active PublicList promotions and application methods.
promotion(id: ID!): PromotionAdmin / Active PublicFetch a promotion by ID.
campaigns(limit: Int = 50, offset: Int = 0, filter: CampaignFilterInput): CampaignConnection!Store AdminList marketing campaigns and budgets.
campaign(id: ID!): CampaignStore AdminFetch a marketing campaign by ID.

Carts, Verification, Shipping & Payments (8)

Query SignatureAccessDescription
cart(id: ID!): CartCart Holder / CustomerFetch a cart with line items, taxes, promotions, B2B approvals, and totals.
activeCustomerCart: CartAuthenticated CustomerRetrieve the caller's most recent uncompleted cart.
cartIdrabbitStatus(cart_id: ID!): CartIdrabbitStatus!Cart Holder / CustomerInspect pre-checkout ID Rabbit age (21+) & identity verification state for a cart.
shippingOptions(cart_id: ID!, is_return: Boolean, limit: Int = 50, offset: Int = 0): ShippingOptionConnection!Cart Holder / CustomerList eligible outbound or return shipping options for a cart.
calculateShippingOption(shipping_option_id: ID!, cart_id: ID!, data: JSON): CalculatedShippingOption!Cart Holder / CustomerQuote live carrier pricing for a calculated shipping option.
paymentCollection(id: ID!): PaymentCollectionOwner / Store AdminFetch a payment collection with sessions and payments.
paymentProviders(region_id: ID!, limit: Int = 50, offset: Int = 0): PaymentProviderConnection!PublicList active payment providers & public client SDK configs for a region.
authorizenetConfig: AuthorizenetPublicConfig!PublicPublic Authorize.Net Accept.js credentials (api_login_id, public_client_key, environment).

Identity, Customers, Orders & Returns (10)

Query SignatureAccessDescription
authStatus: AuthStatus!Public (never cached)Inspect resolved authentication state (authenticated, actor_type, user, customer).
me: UserStore AdminFetch the currently authenticated store admin user.
customer(id: ID): CustomerCustomer / Store AdminFetch authenticated customer when id is omitted, or customer by id (self/admin).
customers(limit: Int = 50, offset: Int = 0, filter: CustomerFilterInput, order: CustomerOrderInput): CustomerConnection!Store AdminList and search customer accounts.
orders(limit: Int = 20, offset: Int = 0, filter: OrderFilterInput, order: OrderOrderInput): OrderConnection!Customer / B2B Admin / Store AdminList orders (automatically scoped to customer, B2B company, or store).
order(id: ID!): OrderOwner / B2B Admin / Store AdminFetch a single order with items, fulfillments, summary, and transactions.
returns(limit: Int = 20, offset: Int = 0, filter: ReturnFilterInput): ReturnConnection!Customer / Store AdminList RMA order returns.
return(id: ID!): ReturnOwner / B2B Admin / Store AdminFetch a single order return by ID.
returnReasons(limit: Int = 50, offset: Int = 0, filter: ReturnReasonFilterInput): ReturnReasonConnection!PublicList customer return reasons.
returnReason(id: ID!): ReturnReasonPublicFetch a return reason by ID.

B2B Wholesale (Companies, Quotes & Approvals) (6)

Query SignatureAccessDescription
myCompany: CompanyAuthenticated CustomerFetch the B2B Company of the authenticated buyer (null for B2C shoppers).
company(id: ID!): CompanyCompany Member / Store AdminFetch a B2B company by ID.
companies(limit: Int = 20, offset: Int = 0, filter: CompanyFilterInput, order: CompanyOrderInput): CompanyConnection!B2B Customer / Store AdminList B2B companies (scoped to caller's company unless Store Admin).
quotes(limit: Int = 20, offset: Int = 0, filter: QuoteFilterInput): QuoteConnection!Customer / Store AdminList B2B RFQ quotes.
quote(id: ID!): QuoteOwner / B2B Admin / Store AdminFetch a single B2B quote with draft_order, order_change, and messages.
approvals(limit: Int = 20, offset: Int = 0, filter: ApprovalFilterInput): ApprovalConnection!B2B Member / Store AdminList B2B cart approval requests.

Mutations (45)

Authentication & Customer Accounts (10)

Mutation SignatureAccessDescription
login(email: String!, password: String!, actor_type: ActorType): AuthToken!PublicAuthenticate customer or user and issue a signed JWT bearer token.
requestEmailOtp(email: String!, actor_type: ActorType): PasswordResetResult!PublicSend a single-use 6-digit sign-in OTP code to the account's email address.
verifyEmailOtp(email: String!, code: String!, actor_type: ActorType): AuthToken!PublicExchange a valid 6-digit email OTP code for a signed JWT bearer token.
requestPasswordReset(email: String!, actor_type: ActorType): PasswordResetResult!PublicTrigger password reset email for a customer or admin user.
resetPassword(token: String!, password: String!, email: String, actor_type: ActorType): PasswordResetResult!PublicComplete password reset using a reset token.
createCustomer(input: CreateCustomerInput!): Customer!PublicRegister a B2C customer or B2B corporate buyer (when company_name is set).
updateCustomer(id: ID, input: UpdateCustomerInput!): Customer!Customer / Store AdminUpdate customer profile fields.
addCustomerAddress(input: CustomerAddressInput!): CustomerAddress!Authenticated CustomerAdd a saved shipping/billing address.
updateCustomerAddress(address_id: ID!, input: CustomerAddressInput!): CustomerAddress!Authenticated CustomerUpdate an existing customer address.
deleteCustomerAddress(address_id: ID!): DeleteResult!Authenticated CustomerDelete a saved customer address.

Carts, Verification, Checkout & Payments (17)

Mutation SignatureAccessDescription
createCart(input: CreateCartInput!): Cart!Public / CustomerCreate a new cart (auto-linked to authenticated customer & B2B company).
updateCart(id: ID!, input: UpdateCartInput!): Cart!Cart Holder / CustomerUpdate cart region, email, addresses, locale, or metadata.
deleteCart(id: ID!): DeleteResult!Cart Holder / CustomerDelete an uncompleted cart.
addCartLineItem(cart_id: ID!, input: AddCartLineItemInput!): Cart!Cart Holder / CustomerAdd a variant and quantity to a cart.
addCartLineItemsBulk(cart_id: ID!, items: [AddCartLineItemInput!]!): Cart!Cart Holder / CustomerAdd multiple variants to a cart atomically (ideal for B2B CSV/quick-order).
updateCartLineItem(cart_id: ID!, line_id: ID!, input: UpdateCartLineItemInput!): Cart!Cart Holder / CustomerUpdate line item quantity or metadata.
removeCartLineItem(cart_id: ID!, line_id: ID!): Cart!Cart Holder / CustomerRemove a line item from a cart.
addCartShippingMethod(cart_id: ID!, input: AddCartShippingMethodInput!): Cart!Cart Holder / CustomerAttach a ShippingOption to a cart.
addCartPromotions(cart_id: ID!, promo_codes: [String!]!): Cart!Cart Holder / CustomerApply one or more promo codes to a cart.
removeCartPromotions(cart_id: ID!, promo_codes: [String!]!): Cart!Cart Holder / CustomerRemove promo codes from a cart.
calculateCartTaxes(cart_id: ID!): Cart!Cart Holder / CustomerExplicitly recalculate item and shipping tax lines.
updateCartCustomer(cart_id: ID!): Cart!Authenticated CustomerBind an anonymous guest cart to the authenticated customer.
createCartIdrabbitSession(cart_id: ID!, redirect_url: String): CartIdrabbitSessionResult!Cart Holder / CustomerCreate or resume an ID Rabbit hosted identity/21+ verification session for a cart.
createPaymentCollection(cart_id: ID!): PaymentCollection!Cart Holder / CustomerCreate or retrieve the PaymentCollection for a cart.
refreshPaymentCollection(cart_id: ID!): PaymentCollection!Cart Holder / CustomerSync payment collection amount after cart total changes.
initializePaymentSession(payment_collection_id: ID!, input: InitializePaymentSessionInput!): PaymentCollection!Cart Holder / CustomerInitialize a gateway PaymentSession (e.g. Stripe PaymentIntent, Authorize.Net).
completeCart(cart_id: ID!): Order!Cart Holder / CustomerAuthorize payment, verify ID Rabbit & B2B approvals/limits, reserve stock, and place Order.

Orders, Returns & Reviews (6)

Mutation SignatureAccessDescription
requestOrderTransfer(order_id: ID!, description: String): Order!Customer / Store AdminRequest transferring order ownership to another customer.
acceptOrderTransfer(order_id: ID!, token: String!): Order!Token Holder / CustomerAccept an order transfer using its verification token.
declineOrderTransfer(order_id: ID!, token: String!): Order!Token Holder / CustomerDecline a pending order transfer.
cancelOrderTransfer(order_id: ID!): Order!Requester / Store AdminCancel a pending order transfer request.
requestReturn(order_id: ID!, items: [ReturnItemInput!]!, location_id: String, return_shipping: ReturnShippingInput, note: String, receive_now: Boolean): Return!Owner / B2B Admin / Store AdminSubmit an RMA return request for order items.
createReview(input: CreateReviewInput!): Review!Public / CustomerSubmit a customer product review (created in pending moderation status).

B2B Companies, Employees, Quotes & Approvals (12)

Mutation SignatureAccessDescription
requestQuote(cart_id: ID!): Quote!Authenticated CustomerConvert an active cart into a negotiable B2B RFQ Quote.
createQuoteMessage(quote_id: ID!, text: String!, item_id: String): QuoteMessage!Owner / B2B Admin / Store AdminPost a message on a quote negotiation thread.
acceptQuote(id: ID!): Quote!Owner / B2B Company AdminAccept a merchant's quoted pricing (pending_customer → accepted).
rejectQuote(id: ID!): Quote!Owner / B2B Admin / Store AdminReject a B2B quote proposal.
inviteEmployee(input: InviteEmployeeInput!): Employee!B2B Company Admin / Store AdminInvite an employee to a B2B company with role & spending limit.
updateEmployee(id: ID!, input: UpdateEmployeeInput!): Employee!B2B Company Admin / Store AdminUpdate an employee's spending_limit or is_admin flag.
removeEmployee(id: ID!): DeleteResult!B2B Company Admin / Store AdminRemove an employee from a B2B company.
updateCompany(id: ID, input: UpdateCompanyInput!): Company!B2B Company Admin / Store AdminUpdate B2B company details and spending-limit reset cadence.
updateCompanyStatus(id: ID!, status: CompanyStatus!): Company!Store AdminApprove, reject, or set pending status on a B2B company.
updateApprovalSettings(id: ID!, input: UpdateApprovalSettingsInput!): ApprovalSettings!B2B Company Admin / Store AdminToggle requires_admin_approval and requires_sales_manager_approval.
createCartApprovals(cart_id: ID!): Cart!Authenticated B2B CustomerSubmit a cart for required B2B admin / sales manager approvals.
updateApproval(id: ID!, status: ApprovalStatusType!): Approval!B2B Admin / Store AdminApprove or reject a pending B2B cart Approval.

On this page