Skip to main content
Version: 0.1.0

ProductCatalog

No description

type ProductCatalog {
products(
forUserID: UUID
): [ProductCatalogSection!]!
previewSubscription(
forUserID: UUID!
subscriptionCart: SubscriptionCart!
): SubscriptionPurchasePreview!
}

Fields

ProductCatalog.products ● [ProductCatalogSection!]! non-null object

Shows all available products in the catalog. When no user is specified, it shows all available products. When a user is specified, the response can be enriched with information from their current subscription (if one exists).

ProductCatalog.products.forUserID ● UUID scalar

ProductCatalog.previewSubscription ● SubscriptionPurchasePreview! non-null object

Returns a preview of the new invoice that would result from modifying the user's existing subscription based on the subscriptionCart.

This query should be checked before attempting purchaseSubscription with the same cart.

ProductCatalog.previewSubscription.forUserID ● UUID! non-null scalar
ProductCatalog.previewSubscription.subscriptionCart ● SubscriptionCart! non-null input

Returned by

productCatalog query