Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GraphQL query examples for stores, products, and product versions
query { stores { id name status slug supportEmail website prodEnabled createdAt updatedAt } }
query($storeId: ID!) { store(id: $storeId) { id name status onetimeProducts { id name prices status } subscriptionProducts { id name billingPeriod prices status } } }
{ "storeId": "STO_3bVzrkD0FJjFdZNLk8Ualx" }
query($storeId: String!) { onetimeProducts( filter: { storeId: { eq: $storeId } status: { eq: "active" } } limit: 20 offset: 0 ) { id name description prices status version media successUrl metadata createdAt updatedAt } onetimeProductsCount( filter: { storeId: { eq: $storeId } } ) }
const result = await client.graphql.query<{ onetimeProducts: Array<{ id: string; name: string; prices: Record<string, { amount: string; taxCategory: string }>; status: string; }>; onetimeProductsCount: number; }>({ query: `query($storeId: String!) { onetimeProducts(filter: { storeId: { eq: $storeId }, status: { eq: "active" } }, limit: 20) { id name prices status } onetimeProductsCount(filter: { storeId: { eq: $storeId } }) }`, variables: { storeId: "STO_3bVzrkD0FJjFdZNLk8Ualx" }, });
query($storeId: String!) { subscriptionProducts(filter: { storeId: { eq: $storeId } }) { id name description billingPeriod prices status version media metadata createdAt updatedAt } subscriptionProductsCount(filter: { storeId: { eq: $storeId } }) }
query($productId: String!) { onetimeProductVersions(filter: { productId: { eq: $productId } }) { id versionNumber name description prices media createdAt } }
query($productId: String!) { subscriptionProductVersions(filter: { productId: { eq: $productId } }) { id versionNumber name billingPeriod prices metadata createdAt } }
{ "productId": "PROD_4cWAslE1GKkGeaOMl9Vbmy" }
query { merchants { id email status createdAt } merchantsCount }
query($id: ID!) { merchant(id: $id) { id email status createdAt updatedAt } }
Was this page helpful?