GraphQL

Install mageb2b/pricesystem-graph-ql when a headless storefront or integration needs calculated Price System values through Magento GraphQL.

Queries

Query Context
pricesystemFinalPrice Explicit customer, group, quantity, date and website input
pricesystemMultiSkuPrice The same explicit context for several SKUs
pricesystemMyFinalPrice Authenticated customer's context
pricesystemMyMultiSkuPrice Authenticated customer's context for several SKUs
pricesystemContextFinalPrice Current storefront context
pricesystemContextMultiSkuPrice Current storefront context for several SKUs

Multi-SKU results include the SKU, final price and applicable quantity tiers.

Use the My queries with a customer token. Use the context queries when the storefront session should determine the customer or guest group. Explicit customer or group inputs should be protected as integration data and must not be exposed as an unrestricted public price lookup.

Advanced Config has a separate GraphQL package for resolved selection rules and formulas. Each pricing product also has its own optional GraphQL package for reading stored records.