Dealers
Describes the Dealers API handler in Optimizely Configured Commerce.
HTTP Verb – GET
URL – /api/v1/dealers
Description – Returns a collection of dealers
Base – HandlerBase<GetDealerCollectionParameter, GetDealerCollectionResult>
Handlers –
Order | Handler | Description |
---|---|---|
500 | GetCoordinates | Sets Latitude, Longitude and Radius properties in the result object. |
600 | GetDealersCount | Retrieves dealers count using DealerRepository. The dealers count is stored in the TotalCount property in the result object. |
700 | GetDealers | If DealerId parameter has a value, retrieves a dealers by DealersId parameter. Otherwise retrieves a dealers using DealerRepository by coordinates. The dealers are stored in the DealerDtos property in the result object. |
800 | CreateGetDealerResults | Retrieves HtmlContent for each dealer. Copy custom properties to each dealer object. Create GetDealerResults from DealerDtos and stored it in the GetDealerResults property in the result object. Also find DistanceUnitOfMeasure and stored it in the DistanceUnitOfMeasure property in the result object. |
HTTP Verb – GET
URL – /api/v1/dealers/{dealerId}
Description – Returns a single dealer record
Base – HandlerBase<GetDealerParameter, GetDealerResult>
Handlers –
Order | Handler | Description |
---|---|---|
500 | GetDealer | Retrieves a dealer by DealerId parameter using GetDealerCollectionHandler handler chain. The dealer is stored in the Dealer property in the result object. |
Updated over 1 year ago