Price Groups
Prerequisites
access_token
from Headless API AuthenticationcultureCode
, e.g.en-US
(string)
Get Price Groups
Optional Parameters
maxItems
, limits the number of results returned. in PaginationnextPagingToken
, required to fetch the next page. Read more in Paginationfilters-*,
used for filtering for valid price groups based on price group criteria.
Request
Response
Error Handling
Error Response Example
Filtering Valid Price Groups
To get the valid price groups for a context, this endpoint supports giving it a set of properties prefixed with filters-
. This will make the API only return price groups that are valid according to the criteria set up for them.
The API will map any parameters prefixed filters-
to a dictionary of properties, sent to the GetPriceGroups
pipeline, in the following way.
The parameter name will be mapped to the key in the dictionary, with the filters-
part of the name stripped off. The parameter value will be mapped to the value in the dictionary.
In the above example, we are calling the API with a filters-member
query parameter.
The key
will be member
and the value
will be member@gmail.com
See the guide on extending price group criteria for more details on how to use the properties in a pipeline task.
Related Articles
Last updated