Record conversion
create_conversionManually record a conversion (a sale to credit to an affiliate). Like any tracked sale, a live one notifies the merchant's team and emails the affiliate it credits. Requires an Ultimate or Scale plan key with write access. Test keys record test data and email nobody.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Sale amount (positive, major units, e.g. 49.99) | |
| clickId | No | Originating click id, when known | |
| orderId | No | Your order reference; duplicates are rejected | |
| currency | No | 3-letter ISO code; defaults to the campaign currency | |
| campaignId | Yes | The campaign the sale belongs to | |
| affiliateId | Yes | The affiliate to credit | |
| customerName | No | Buyer name, shown on the commissions page | |
| customerEmail | No | Buyer email (enables fraud checks) | |
| conversionType | No | Defaults to one_time | |
| parentConversionId | No | For recurring: the original conversion id |