Referral
A Referral is a Contact, Customer, or Partner sending a Lead to a Startup, with any reward it earns.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
reward | money | What the referrer earns. | |
rewardKind | string | What the referrer earns: earlier access, or cash, which pays only after Live. |
Object
{
"$id": "https: //api.sb/ patentpad.com/ referrals/ referral_1",
"$type": "Referral",
"reward": {
"amount": 499,
"currency": "USD"
},
"rewardKind": "access"
}Relationships
- A Referral earns one Commission: the Commission a Partner’s Referral earns on the revenue it brings, self-serve or through a Deal.
earns, inversereferral. - A Referral is made by one Party: the Party who sends a Referral earns its reward.
madeBy, inversereferrals. - A Referral refers one Lead: each Referral sends one Lead to the Startup.
refers, inversereferredBy. - A Referral sources many Deals: the Deals a Referral opened; when one is won, its revenue earns the Partner’s Commission.
sources, inversesourcedBy.
Verbs
createCreates a Referral.POST /{namespace}/referralsgetReturns one Referral by id.GET /{namespace}/referrals/{id}listReturns Referrals, newest first, one page at a time.GET /{namespace}/referralsupdateChanges the given properties of a Referral.PATCH /{namespace}/referrals/{id}deleteDeletes a Referral; its history is kept.DELETE /{namespace}/referrals/{id}
Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.
| Operation | owner | admin | member | viewer |
|---|---|---|---|---|
Referral.create | Yes | Yes | Yes | No |
Referral.get | Yes | Yes | Yes | Yes |
Referral.list | Yes | Yes | Yes | Yes |
Referral.update | Yes | Yes | Yes | No |
Referral.delete | Yes | Yes | Yes | No |
Call it
Add a referral to ShiftNote.Example
A music teacher sends her link to a colleague, who signs up for the lesson-booking App. The Referral credits the teacher one free month when the colleague pays.