purchases_quantity
Retrieve purchase quantity analytics over time by specifying product ID and period length. Choose daily, hourly, weekly, or monthly granularity.
Instructions
Get purchase quantity analytics over time.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"length": "<length>"
},
"name": "purchases_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| apiKey | No | Braze REST API key | |
| app_id | No | ||
| length | Yes | Number of days | |
| ending_at | No | ||
| product_id | Yes | Product ID | |
| restEndpoint | No | Braze REST endpoint URL |