Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"original_app_user_id":"$RCAnonymousID:12345678-1234-1234-1234-123456789123",
"experiment_id":"prexpca1234abcd",
"experiment_variant":"b",
"offering_id":"experiment_offering_b",
"experiment_enrolled_at_ms":1658726378679,
"type":"EXPERIMENT_ENROLLMENT",
"id":"12345678-1234-1234-1234-123456789012"
Expand Down
3 changes: 2 additions & 1 deletion docs/integrations/webhooks/event-types-and-fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RevenueCat sends webhooks in response to events that occur in your app. Here the
| `REFUND_REVERSED` | A refund has been reversed. | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| `INVOICE_ISSUANCE` | A new invoice has been issued for the purchase. This event is sent when a new invoice is created for a subscription or non-renewing purchase that has not yet been paid. This event is only available for Web Billing purchases, and applies both to new purchases (via the checkout) and subscription renewals scheduled by the billing engine. | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
| `VIRTUAL_CURRENCY_TRANSACTION` | A virtual currency transaction had occurred, such as currency being granted from a purchase or removed due to a refund. For subscriptions that grant virtual currency, this event is sent for the entire subscription lifecycle (initial purchase, renewals, refunds, etc.) whenever there is an adjustment to be made to the currency balance. This event provides details about the virtual currency adjustment, including the amount, currency type, and source of the change. | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ |
| `EXPERIMENT_ENROLLMENT` | A customer was enrolled in an experiment. The webhook contains [fields unique to experiment enrollments](#experiment-enrollment-event-fields): the experiment id, the experiment variant and the enrollment timestamp. This event is not associated with a store. | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| `EXPERIMENT_ENROLLMENT` | A customer was enrolled in an experiment. The webhook contains [fields unique to experiment enrollments](#experiment-enrollment-event-fields): the experiment id, the experiment variant, the offering id of the variant, and the enrollment timestamp. This event is not associated with a store. | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

## Events Format

Expand Down Expand Up @@ -132,4 +132,5 @@ The following fields are specific to `VIRTUAL_CURRENCY_TRANSACTION` events:
| -------------------- | ------- | ----------------------------------------------------------------------------------------------------- |
| `experiment_id` | String | The ID of the experiment that the customer was enrolled in. |
| `experiment_variant` | String | The variant of the experiment that the customer was enrolled in. |
| `offering_id` | String | The offering ID of the variant the customer was enrolled in. |
| `enrolled_at_ms` | Integer | The time when the customer was enrolled in the experiment. Measured in milliseconds since Unix epoch. |