createReferredFriend( )


Creates a new referred friend or returns an existing entity if it already exists.

This method must be called with a member identity.

A referral code must be provided either in the request or via scope.

The member must be eligible to become a referred friend.

Permissions
Manage Referrals
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsCreateReferredFriendOptions
Returns
Return Type:Promise<CreateReferredFriendResponse>
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?