fire_billing_event
Fire a billing event when acting on a sponsored result. Call at each funnel stage (context, shortlist, recommendation, or purchase).
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": {
"token": "<token>",
"event_type": "<event_type>"
},
"name": "fire_billing_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Bid token from sponsored_search results that authorizes billing | |
| event_type | Yes | Stage of engagement: context_inclusion (shown), shortlist (saved), recommendation (mentioned), or purchase (bought) | |
| order_value | No | Final order value in USD (used for purchase event to calculate affiliate fee) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | ||
| brand_id | No | ||
| timestamp | No | ISO 8601 timestamp of billing event | |
| charge_usd | No | Amount charged for this event | |
| event_type | No | ||
| product_id | No | ||
| receipt_id | No | Unique billing receipt identifier | |
| campaign_id | No |