Commerce+ Query service

Commerce+ introduces a new Query service. A simple API is provided for you to use.

API Endpoints

The Version 2 OpenAPI specification is supported for Queries in Commerce+. For the full REST API specification, see Query Service REST endpoints.

Version 2 storefront APIs

Type V2 API endpoint URL V2 API parameters Examples
Categories /search/resources​​​​​​​​​​​​​​​​​​​​​​​/api/v2/categories Required:
  • storeId - operating store of the operation
Optional:
  • id - internal catgroup id
  • identifier - category external identifier
  • catalogId - sales catalog for the operation
  • langId - language for the operation
  • contractId - entitled contract in session from the shopper
  • parentId​​ - parent category id
  • depthAndLimit - sets the maximum number of records to return at each layer. It uses a comma separated list of values. So depthAndLimit=-1,-1 returns all (-1) possible values in the first layer and 2nd layer of categories. For example, with 5 layers of subcategories (with all categories returned at each layer), use the following notation:

    depthAndLimit=-1,-1,-1,-1,-1
  • The field parameter can be used to define an explicit list of fields to be returned in the response, e.g. field=id,name,description,identifier,seo
Products /search/resources​​​​​​​​​​​​​​​​​​​​​/api/v2/products Required:
  • storeId - operating store of the operation
Optional:
  • id - internal catentry id
  • catalogId - sales catalog for the operation
  • langId - language of the operation
  • categoryId - parent category ​​id
  • currency - currency for display price
  • associationType​ - type of merchandising association to be included in the search result
  • searchTerm - for text searching
  • contractId - entitled contract in session from the shopper
  • offset, limit - for requests that support paging: when categoryId, term are used; lookup by id or identifier does not require paging

Limitations

  • The Commerce+ Query service does not currently support request parameters related to entitlement, or search rules for any API.
  • Search Term Association is not supported in this release.