---
updatedAt: 2025-08-22T06:02:57.000Z
agentTools:
  projectIndex: https://developer-docs.rivo.io/llms.txt
---

# referral_invite/created

Sent to a friend when they are invited to join the program through the referral widget

## Event Type

```
referral_invite/created
```

***

## Webhook Payload

```json
{
  "id": 18,
  "event_type": "referral_invite/created",
  "shop_id": 79418982695,
  "shopify_domain": "devstore.myshopify.com",
  "event_attributes": {
    "advocate_name": "Bernie OrderTestTwo",
    "reward_name": "5% Off Coupon",
    "friend_email": "bernie+ordertest02@rivo.io",
    "customer_id": 8033849901351,
    "customer_email": "peter+ordertest10@rivo.io",
    "customer_phone_number": null
  }
}

 
```

***

## Payload Fields

| Field        | Type    | Description                                       |
| ------------ | ------- | ------------------------------------------------- |
| `id`         | Integer | Referral Invite ID                                |
| `event_type` | String  | Always `referral_invite/created` for this webhook |