purchases_revenue
Retrieve purchase revenue analytics over time for a specific product. Choose day, hour, week, or month and set the reporting length to monitor sales trends.
Instructions
Get revenue 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_revenue"
}
}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 |