Track Payment
track_paymentTrack payment events to link transactions to visitors for accurate revenue attribution and conversion tracking.
Instructions
Track a payment event for revenue attribution. Links payments to visitors for conversion tracking.
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": {
"amount": "<amount>",
"currency": "<currency>",
"transaction_id": "<transaction_id>"
},
"name": "track_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Customer name | |
| No | Customer email | ||
| amount | Yes | Payment amount (>= 0) | |
| renewal | No | Whether this is a subscription renewal (default: false) | |
| currency | Yes | Currency code in uppercase (e.g. USD, EUR) | |
| refunded | No | Whether this payment was refunded (default: false) | |
| timestamp | No | Payment timestamp in ISO 8601 format (defaults to now) | |
| customer_id | No | Customer ID in your system | |
| is_free_trial | No | Whether this is a free trial (default: false, auto-set if amount is 0) | |
| transaction_id | Yes | Unique transaction identifier | |
| datafast_visitor_id | No | DataFast visitor ID for attribution |