ga_send_refund
Send refund events to Google Analytics 4 to record full or partial ecommerce refunds. Reference the original transaction_id; include item quantities for partial refunds.
Instructions
Send a refund event to Google Analytics.
Ecommerce event for full or partial refunds. Omit 'items' for a full refund; include them (with quantities) for a partial refund. Use the same transaction_id as the original 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": {
"transaction_id": "<transaction_id>"
},
"name": "ga_send_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Refunded items (only for partial refunds) | |
| value | No | Refunded amount | |
| user_id | No | ||
| currency | No | Currency code | |
| client_id | No | ||
| transaction_id | Yes | Transaction ID of the original purchase | |
| user_properties | No | User properties (e.g., {subscription_tier: {value: "premium"}}) |