Category: eventCategory
This API captures events related to category views on the website or mobile app. It tracks when users browse product categories and records the metadata related to the interaction.
API Endpoint and Method
URL
Copy
https://rcdp-us-east-1.algonomy.com/callback/rest/events/{APP_API_KEY}/eventCategory
Example URL
Copy
https://rcdp-us-east-1.algonomy.com/callback/rest/events/BESQILOBZCGHVLZTCNTGJMYGQEARWVZVCUPYVUGNCZPJRSUDAR/eventCategory
HTTP Method
POST
Parameters
Parameter |
Type | Required or Optional |
Description |
---|---|---|---|
parentCategoryId | String | Optional |
Specifies the parent category ID, representing the ID of the category above the current one in the hierarchy. Example: "123" |
categoryId | String | Required |
Specifies the current category ID, representing the ID of the category where the event occurred. Example: "888" |
Request Body Schema
Copy
{
"eventData": {
"parentCategoryId": "String",
"categoryId": "String"
}
}
Example Request
Copy
{
"eventData": {
"parentCategoryId": "123",
"categoryId": "888"
}
}
Example Response
Copy
{
"message": "Category event captured successfully",
"statusCode": 200
}
HTTP Response Codes
Response Code |
Description |
---|---|
202 Accepted | The request has been received and validated, but processing is asynchronous and not yet complete. |