Track a transaction
referralhero_track_transactionWRITE: record a purchase/transaction for a subscriber (amount required) so revenue-based rewards and reports count it (not idempotent unless a transaction_id is reused). The subscriber is identified by the campaign's unique identifier. POST /lists/{uuid}/subscribers/add_transactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Campaign (list) uuid, the 12-character id starting with MF (see referralhero_list_campaigns). | |
| No | Subscriber email (when email is the campaign's unique identifier). | ||
| amount | Yes | Amount of the transaction. | |
| confirm | Yes | Must be true: the user has approved this change. It can unlock rewards and make ReferralHero email or text the subscriber or referrer (automations). | |
| product_id | No | Product id (for product-based rewards). | |
| phone_number | No | Subscriber phone number (when phone is the unique identifier). | |
| reward_value | No | A reward value to attach to the transaction. | |
| lifetime_spend | No | The subscriber's total lifetime spend. | |
| transaction_id | No | Your unique transaction id. | |
| crypto_wallet_address | No | Wallet address (when it is the unique identifier). | |
| other_identifier_value | No | Custom identifier value (when a custom id is the unique identifier). |