Skip to main content

Arguments

input : CreateReferralInput! required

Input fields for creating a referral.

Returns

CreateReferral

Use a referral code to create a referral and trigger a referral reward. This is for customers to refer other customers so it only works with friend referrals and not partner referrals. This will try to find a user with given referral code as their personal referral code. If found, it will create an AccountReferral instance for the given account number.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can access customer queries
OR Can create referrals

Rate Limits

Key Steps
user ['5/m']

Query Complexity

1

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

mutation CreateReferral($input: CreateReferralInput!) { createReferral(input: $input) { referredAccountRewardAmount } }

Variables

{ "input": CreateReferralInput }

Response

{ "data": { "createReferral": { "referredAccountRewardAmount": 27 } } }