Create an affiliate
rewardful_create_affiliateAdd an affiliate (or a customer referrer, by passing stripe_customer_id). Rewardful sends NO welcome email for API-created affiliates. Rewardful: POST /v1/affiliates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Email address. | ||
| state | No | Affiliate state. Disabled/suspicious affiliates stop tracking and earning and can't log in. | |
| token | No | Link token, e.g. `jb007` for ?via=jb007. Letters, numbers and dashes only. | |
| last_name | Yes | Last name. | |
| first_name | Yes | First name. | |
| wise_email | No | Wise address commissions should be paid to. | |
| campaign_id | No | Campaign to put the affiliate in (default campaign if omitted on create). | |
| paypal_email | No | PayPal address commissions should be paid to. | |
| stripe_customer_id | No | Customer-referral programs only: the live-mode Stripe customer that receives account credits. | |
| receive_new_commission_notifications | No | Email the affiliate when they earn a commission (default true). |