Skip to main content
GET/products-by-id/:custom_id/

Get product events

You can return all product events occurrences for a specific product.

AttributesTypeRequiredDescription
custom_idintegeryesA unique identifier for the product provided by the client.

Request​

curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/products-by-id/:custom_id/"

Response​

{
"count": 3,
"next": null,
"previous": null,
"results": [
{
"id": 386,
"client": 431,
"timestamp": "2018-03-02T16:38:39.413023Z",
"event_type": "order",
"custom_data": {}
},
{
"id": 385,
"client": 431,
"timestamp": "2018-03-02T16:38:34.682300Z",
"event_type": "liking",
"custom_data": {}
},
{
"id": 384,
"client": 431,
"timestamp": "2018-03-02T16:38:13.177923Z",
"event_type": "order",
"custom_data": {
"custom client": "json data"
}
}
]
}