List best selling products by company

Main product list based on best selling items for a company

Request
query Parameters
customerId
integer <int32>

Customer internal id. Checks for specific customer bound prices if provided.

companyId
integer <int32>

Company internal id. Checks for specific company bound prices if provided.

fromDate
required
string <date-time>

Orders from this date will only be included in the calculation.

statusSeed
required
string

Accepts a comma separated string of Status internal ids. Lookup references in ListStatuses.

pricelistSeed
string

A comma separated list of PriceList internal ids to use, if any. PriceLists supplied must be valid, either from the application's public priceList or any customer or company priceLists or any valid client priceLists. For clients configured to use priceListSeed exclusively in the API only the supplied priceLists will be used. If this is not configured, the supplied priceLists will be appended to the valid priceLists. If none is supplied, the default value for the application will be used in combination with any customer or company priceLists. This applies to both configurations.

size
string

Number of items to display. Default is 50.

cultureCode
string

Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application.

currencyId
string

Specifies in which currency to display prices. Uses Storm internal ids. If none is supplied, value is resolved from Application.

asVariants
string

Specifies if the output should be grouped as products or as variants. Default is false which returns a list of products. Set to true if variants are wanted.

salesAreaId
string

Specifies the SalesArea to use. Uses Storm internal ids. If none is supplied, primary SalesArea on Application will be used.

Responses
200

Success

500

Internal Server Error

get/ProductService.svc/rest/ListBestSellingProductsByCompany
Response samples
{
  • "ItemCount": 0,
  • "Items": [
    ]
}