Area: Optimizely B2B Commerce

Realtime Pricing API handlers

Recommended reading 


URL: /api/v1/realtimepricing

Description: Gets the specified real time pricing parameter.

Base: HandlerBase<GetRealtimePricingParameter, GetRealtimePricingResult>


Order Handler Description
500 ValidateContext Retrieves product settings by GetProductSettingsHandler. Validates CanSeeProducts and CanSeePrices settings, if one of them equals "false", returns an error.
600 GetDisplayablePriceParameters Store ProductPriceParameters property from the parameter object to DisplayableProductPriceParameters property on the result object. If DisplayableProductPriceParameters property doesn't contain any parameter, returns an error.
700 GetPricingResults Retrieves a pricingServiceResults using the RealTimePricing engine. If the pricingServiceResults contains any results, they are transformed into a collection of ProductPriceDto objects. The result is stored in the RealTimePricingResults property on the result object.
Do you find this information helpful? Please log in to provide feedback.

Last updated: Dec 11, 2020

Recommended reading