This endpoint allows merchants to create affiliates on demand.
Both normal affiliates and customer referrers can be created through this endpoint. To create a customer referrer, simply pass the
stripe_customer_id parameter that indicates the Stripe Customer that should receive account credits as rewards.
The affiliate's first name.
The affiliate's last name.
The affiliate's email address.
A string indicating the affiliate's state. Defaults to
For customer referral programs, this is the Stripe Customer that will receive account credits as rewards. Note: the customer must exist in your Stripe account in livemode.
Alphanumeric code to be used for links, ex:
The UUID of the campaign this affiliate should be added to. Affiliate will be added to your default campaign if this parameter is
receive_new_commission_notifications may also be optionally provided. This parameter indicates whether or not the affiliate should receive emails when new rewards and commissions are earned. Accepts
true (default) or
curl --request POST \--url https://api.getrewardful.com/v1/affiliates \-u YOUR_API_SECRET: \-d first_name=James \-d last_name=Bond \-d email=[email protected] \-d token=jb007 \-d stripe_customer_id=cus_ABC123