Skip to content

getCustomerPricing

const getCustomerPricing: (productId, namespace, locale?, opts?) => Promise<CustomerPricingAdoptData | null>

Defined in: @storesynk/react/dist/runtime.d.ts:68

The customer-pricing discovery data for a product (the dedicated CUSTOMER_PRICING query - shop refs + the product’s collection ids in ONE request), normalized to the shape the server transform and client adoption both consume. The server only ever renders the ANONYMOUS prompt state from it (login personalization is hydration-only). Cached per product+namespace+locale, like getVolumeDiscounts. Null when the product wasn’t found.

string

string

I18nState | null

FetchOptions

Promise<CustomerPricingAdoptData | null>