CPA Conversion Event Schema
Overview
Event fired when a user completes a CPA-eligible action (signup, purchase, trial start, etc.). This records the final billing event for the serve_token.Required Fields
| Field | Type | Description |
|---|---|---|
event_type | string | Always cpa_conversion |
serve_token | string | Token linking exposure → click → conversion |
conversion_id | string | Unique identifier for this conversion |
conversion_type | string | Enum: signup, purchase, trial_start, demo_request, download, custom |
wallet_id | string | Wallet to apply the final CPA charge |
brand_agent_id | string | Brand agent associated with the conversion |
pricing.unit | string | Must be CPA |
pricing.amount_cents | integer | Final CPA charge (in cents) |
timestamp | string | ISO 8601 timestamp for the conversion |
Optional Fields
| Field | Type | Description |
|---|---|---|
order_value_cents | integer | Optional purchase value in cents |
currency | string | Currency for order value (ISO 4217) |
conversion_metadata | object | Advertiser-side metadata (user/order/product IDs) |
ext | object | Vendor extensions |
Pricing Object
| Field | Type | Description |
|---|---|---|
unit | string | Always CPA |
amount_cents | integer | Final charge in cents |
Conversion Metadata Object
| Field | Type | Description |
|---|---|---|
user_id | string | Advertiser user identifier |
order_id | string | Order or transaction ID |
product_ids | string[] | List of product IDs linked to this conversion |
Example
Validation Rules
pricing.amount_centsmust be an integer ≥ 0conversion_typemust match the defined enumorder_value_cents, when present, must be ≥ 0timestampmust be ISO 8601 formatted