An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Get the corresponding referrer based on the referral code.
Arguments
customerAccessToken ● String!non-null
The customer access token of an invitee.
referralCode ● String!non-null
The referral code.
Return
senderCustomer ● ReferralSenderCustomer
The referrer information.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Get the corresponding referrer based on the referral code
query {
referralCodeInfo(customerAccessToken: "tokenxxx",
referralCode:"7M2***") {
senderCustomer{
customerId
email
phone
firstName
lastName
levelName
levelCode
referralUrl
referralCode
}
}
}
Response
{
"data": {
"referralCodeInfo": {
"senderCustomer": {
"email": "****@qq.com",
"firstName": "zha**",
"levelCode": "gid://shopline/Membership/MLC64431709****",
"levelName": "middle",
"phone": "0086135604****",
"referralCode": "7M2****",
"referralUrl": "https://****.myshopline.com/user/signUp?referral_code=7M2****&source_type=member_plugin_referral&slt=member_plugin_referral",
"customerId": "gid://shopline/Customer/42001****",
"lastName": "mian***"
}
}
}
}
Was this article helpful to you?