Segment
Send Referalli's referral, commission and payout events to a Segment source as identify and track calls, with your own write key.
Connect a Segment source with its write key, and Referalli sends identify and track calls through Segment's HTTP Tracking API. From there they reach every destination you've connected in Segment.
Events
Referalli event | Segment track event | userId |
|---|---|---|
| Referral Created | The customer ( |
| Commission Earned | The partner |
| Commission Reversed | The partner |
| Commission Settled | The partner |
| Payout Sent / Payout Failed | The partner |
| Partner Applied / Enrolled / Approved | The partner |
Track properties: the event's fields (as in webhooks) plus
eventId. Amounts stay in integer minor units (amountMinor) with theircurrency.Customers: a customer is identified under the id you attributed them with, usually your own user id, with the traits
referredByPartnerIdandreferallyReferralId.Partners: a partner is identified under their
externalRefwhen they have one (your own user id for them), otherwise asreferally_partner_<id>. Their traits areemail,name,referallyPartnerIdandreferallyPartnerStatus.
Every message has a unique messageId, so Segment deduplicates retries.
Connect
In Segment, add an HTTP API source (or use an existing server source) and copy its write key.
In Referalli, open Settings → Integrations → Segment, paste the key, and pick the events to send (all by default).
Click Test connection. It sends a
Referalli Connection Testtrack event; check the source's debugger in Segment. Segment accepts any key at the API, so the debugger is the real check.
API
Call | Body | Notes |
|---|---|---|
|
|
|
| none |
|
| none | Disconnects; queued messages are dropped. |
| none | Recent batches and their status, with retry. |
Messages are sent in batches of up to 100 per connection. A failed batch is retried with exponential backoff for 3 days, and a 429 waits as long as Retry-After asks.