Get product groups tied to a reward
Get information about all product groups created in relation to a specific reward.
Path parameters
The unique ID of the reward.
Query parameters
The number of records to return in API response.
⚠️ We recommended adjust the batch size based on processing time. Depending on the response time of the request. Default value of 100 records is used if count parameter is not set.
The number of records from a collection to skip. Default value of 0 is used when parameter offset is not set.
Name of the sorting parameter. You can sort by any of the first level parameters from the resource response. Response is sorted by the specified field.
Direction of sorting the response list.
Parameter identify type of the relation between reward and product | product group | product brand.
Headers
The unique ID of the language code by ISO 639-1.
Response
OK
Example response
{
"data": {
"product_groups": [
{
"product_group_id": "8fd73167342d06899c4c015320",
"name": "Accessories",
"parent_product_group_id": "83d1d11ea3884a5d33253fe214",
"parent_external_id": "678",
"code": "567829",
"external_id": "953",
"store_id": "83d1d11ea3884a5d33253fe214",
"partner_id": "86e05affc7a7abefcd513ab400",
"last_change": "2021-04-16 15:55:44.33538",
"state": 1,
"reward_product_relation_types": [
"condition",
"bonus"
]
}
],
"total_items": 1
}
}