An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Query the member asset information of a single member, including member level or paid membership information, available rewards and referral information, etc.
Arguments
customerId ● String!non-null
customer Id
Return
invitedSuccess ● UnsignedInt64
Number of customers successfully invited by the customer within the store. This refers to the total successful completions of invitation tasks set by the merchant.
isReferred ● Boolean
If the customer was referred by others to your store.
levelCode ● String
The code of current level or paid membership of the customer.
levelExpiryTime ● Date
The expiry time of current level or paid membership of the customer. If the field is empty when membershipType = LEVEL, it means the membership is valid permanently.
levelIcon ● String
The icon of current level or paid membership of the customer.
levelName ● String
The name of current level or paid membership of the customer. Up to 25 characters.
levelOrder ● Int
Relevant only when membershipType = LEVEL. Higher the field indicates a higher level.
levelUpdatedTime ● Date
The start time of current level or paid membership of the customer.
membershipType ● MembershipType
The current active membership mechanism of the store.
More
rewardAvailable ● Int
Number of available rewards for the customer. Includes membership benefits issued, coupons redeemed through points, etc.
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
query member info
query {
memberInfo(customerId: "gid://shopline/Customer/4602226680") {
levelCode
membershipType
rewardAvailable
invitedSuccess
levelExpiryTime
levelUpdatedTime
levelName
levelIcon
levelOrder
isReferred
}
}
Response
{
"data": {
"memberInfo": {
"isReferred": false,
"levelOrder": 2,
"levelUpdatedTime": "2024-07-25T05:06:52Z",
"invitedSuccess": "0",
"levelCode": "gid://shopline/Membership/MLC6568226048886449178",
"levelExpiryTime": null,
"levelIcon": "LEVEL_3",
"levelName": "membership_level_2",
"membershipType": "LEVEL",
"rewardAvailable": 1
}
},
"extensions": {
"dataloader": {
"individual-statistics": {
"LD-com.shopline.benefitrights.giftcard.graphql.api.service.ShopQueryGqlService-canCreateGiftCards": {
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadRatio": 0,
"loadCount": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0
},
"LD-com.shopline.ec.merchant.ugc.i18n.api.interfaces.UgcI18nGraphqlApi-getUgcLocaleResources": {
"batchInvokeCount": 0,
"batchLoadCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.CollectionQueryGqlService-checkInCollectionForLoader": {
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ProductQueryGqlService-inMarketForLoader": {
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ProductQueryGqlService-optionsForLoader": {
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchLoadExceptionRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ShopQueryGqlService-maxProductOptions": {
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"loadErrorRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.CollectionQueryGqlService-checkHasProductForLoader": {
"cacheHitRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.CollectionQueryGqlService-seoLoader": {
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.DescriptionQueryGqlService-get": {
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitRatio": 0,
"loadCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.InventoryQueryGqlService-listItemForLoader": {
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"loadErrorRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.InventoryQueryGqlService-listLevelByVariantForLoader": {
"batchLoadExceptionRatio": 0,
"cacheHitCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadRatio": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchLoadCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ProductQueryGqlService-onlineStoreUrlForLoader": {
"loadErrorCount": 0,
"batchInvokeCount": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadErrorRatio": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"loadCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ShopQueryGqlService-maxProductVariants": {
"cacheHitCount": 0,
"loadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitRatio": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0
},
"LD-com.joyy.shopline.soul.appstore.api.service.publication.PublicationQueryGQLService-publicationsForLoader": {
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadExceptionRatio": 0,
"loadErrorRatio": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0
}
},
"overall-statistics": {
"batchInvokeCount": 0,
"batchLoadCount": 0,
"cacheHitCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitRatio": 0,
"loadCount": 0
}
},
"metrics": {
"dataFetcherMetrics": [
{
"dfErrorCode": null,
"dfProtocol": "dubbo",
"dfRootCoordinate": "/memberInfo",
"dfRt": 125,
"dfServiceIdentity": "com.shopline.ec.openapi.interfaces.MemberGqlApi@getMember"
}
],
"graphQLMetrics": {
"includeQuery": false,
"startTimeMillis": 1721892411960,
"deepLevel": 2,
"includeDeprecatedField": false,
"rt": 133,
"storePlus": false,
"traceId": "2cf0e6562703292862f0b5ab752af40a",
"clientIp": "218.253.130.212",
"countryCode": null,
"languageCode": null,
"namespace": "admin",
"saleChannel": null,
"endParseTimeMillis": 1721892411962,
"executionId": "a53d8687-38ed-4494-9cb2-9b279faf7b28",
"storeId": "1641993455937",
"successType": "SUCCESS",
"appKey": "936eda168305ed82cee702c6822354ee6de2e802",
"loaderCount": 0,
"merchantId": "4200114610",
"parseRt": 1,
"ratelimitRemaining": 0,
"tenant": "ec20",
"fieldCount": 21,
"ratelimitPermits": 0,
"customizedClientIp": "218.253.130.212",
"errorFieldsCount": 0,
"operation": "QUERY",
"version": "v20241201",
"appId": "265337",
"startParseTimeMillis": 1721892411961
}
},
"tracing": {
"duration": 132113222,
"endTime": "2024-07-25T07:26:52.093Z",
"execution": {
"resolvers": [
{
"path": [
"memberInfo"
],
"returnType": "MembershipInfo",
"startOffset": 4637415,
"duration": 126643855,
"fieldName": "memberInfo",
"parentType": "Query"
},
{
"startOffset": 131465717,
"duration": 14925,
"fieldName": "levelCode",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"levelCode"
],
"returnType": "String"
},
{
"path": [
"memberInfo",
"membershipType"
],
"returnType": "MembershipType",
"startOffset": 131531658,
"duration": 7786,
"fieldName": "membershipType",
"parentType": "MembershipInfo"
},
{
"duration": 6605,
"fieldName": "rewardAvailable",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"rewardAvailable"
],
"returnType": "Int",
"startOffset": 131581236
},
{
"returnType": "UnsignedInt64",
"startOffset": 131633989,
"duration": 7511,
"fieldName": "invitedSuccess",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"invitedSuccess"
]
},
{
"duration": 6544,
"fieldName": "levelExpiryTime",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"levelExpiryTime"
],
"returnType": "Date",
"startOffset": 131685621
},
{
"duration": 16211,
"fieldName": "levelUpdatedTime",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"levelUpdatedTime"
],
"returnType": "Date",
"startOffset": 131730821
},
{
"startOffset": 131815215,
"duration": 6930,
"fieldName": "levelName",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"levelName"
],
"returnType": "String"
},
{
"duration": 19266,
"fieldName": "levelIcon",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"levelIcon"
],
"returnType": "String",
"startOffset": 131858265
},
{
"startOffset": 131919268,
"duration": 6670,
"fieldName": "levelOrder",
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"levelOrder"
],
"returnType": "Int"
},
{
"parentType": "MembershipInfo",
"path": [
"memberInfo",
"isReferred"
],
"returnType": "Boolean",
"startOffset": 131969605,
"duration": 6983,
"fieldName": "isReferred"
}
]
},
"parsing": {
"duration": 595175,
"startOffset": 653573
},
"startTime": "2024-07-25T07:26:51.961Z",
"validation": {
"duration": 582381,
"startOffset": 1483379
},
"version": 1
}
}
}
Was this article helpful to you?