Loading...
Area: Episerver B2B Commerce

Dealers API handler

Recommended reading 

HTTP Verb: GET

URL: /api/v1/dealers

Description: Returns a collection of dealers

Base: HandlerBase<GetDealerCollectionParameter, GetDealerCollectionResult>

Handlers:

Order Handler

Description

500 GetDealerCollectionHandler Gets a collection of the dealers.
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 GetDealerHandler Gets a dealer for the matching dealerId, if an exception occurs a General Failure error result is returned.
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.
Do you find this information helpful? Please log in to provide feedback.

Last updated: Dec 11, 2020

Recommended reading