接口访问需要令牌,具体如何获取令牌请参考:身份认证
查询店铺内当前使用的会员机制中,所有已创建的会员等级和付费类型,及对应的升级门槛、有效期等
Return
benefitsStatus ● BenefitsStatus
权益是否有效
More
levelCode ● String
等级会员编码
levelIcon ● String
等级 icon
levelName ● String
等级名称。最多25个字符
levelOrder ● Int
仅当 membershipType = LEVEL 时有意义,此时levelOrder越大,等级越高级
levelThreshold ● String
当 membershipType = LEVEL 时,该等级会员的门槛金额
lockinRule ● UnsignedInt64
当 membershipType = LEVEL 时,该等级会员的保级金额
lockinStandard ● LockinStandard
当 membershipType = LEVEL 时,该等级会员的保级类型。
More
membershipType ● MembershipType
店铺当前使用的会员机制
More
paidExpiryDateType ● PaidExpiryDateType
付费会员有效时间单位类型
More
paidExpiryDateValue ● Int
付费会员有效时间值
paidPrice ● UnsignedInt64
当 membershipType = PAID 时,该付费会员的价格
upgradeStandard ● UpgradeStandard
当 membershipType = LEVEL 时,该等级会员的门槛类型。
More
错误码
关于更多通用错误码说明,参考:状态码和错误码
Example
查询店铺内会员等级
query {
storeMembershipType {
levelCode
levelName
membershipType
levelOrder
levelIcon
upgradeStandard
levelThreshold
lockinStandard
lockinRule
paidPrice
paidExpiryDateType
paidExpiryDateValue
}
}
Response
{
"extensions": {
"dataloader": {
"individual-statistics": {
"LD-com.shopline.pixiu.psm.graphql.api.service.CollectionQueryGqlService-checkHasProductForLoader": {
"batchInvokeCount": 0,
"batchLoadExceptionCount": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorRatio": 0,
"batchLoadCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"loadErrorCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.CollectionQueryGqlService-checkInCollectionForLoader": {
"cacheHitRatio": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.CollectionQueryGqlService-seoLoader": {
"batchLoadExceptionCount": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionRatio": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.InventoryQueryGqlService-listItemForLoader": {
"batchLoadCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionCount": 0,
"loadCount": 0,
"batchInvokeCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ProductQueryGqlService-inMarketForLoader": {
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitCount": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchLoadRatio": 0,
"cacheHitRatio": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ProductQueryGqlService-onlineStoreUrlForLoader": {
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadRatio": 0,
"loadErrorRatio": 0,
"batchLoadCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0
},
"LD-com.shopline.ec.merchant.ugc.i18n.api.interfaces.UgcI18nGraphqlApi-getUgcLocaleResources": {
"batchLoadExceptionCount": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionRatio": 0,
"loadErrorRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.DescriptionQueryGqlService-get": {
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.InventoryQueryGqlService-listLevelByVariantForLoader": {
"batchInvokeCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchLoadCount": 0,
"loadErrorRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ProductQueryGqlService-optionsForLoader": {
"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.ShopQueryGqlService-maxProductOptions": {
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"loadCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitRatio": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0
},
"LD-com.shopline.pixiu.psm.graphql.api.service.ShopQueryGqlService-maxProductVariants": {
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadRatio": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"cacheHitCount": 0
},
"LD-com.joyy.shopline.soul.appstore.api.service.publication.PublicationQueryGQLService-publicationsForLoader": {
"cacheHitRatio": 0,
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"batchLoadExceptionCount": 0,
"cacheHitCount": 0,
"loadCount": 0,
"loadErrorRatio": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0
},
"LD-com.shopline.benefitrights.giftcard.graphql.api.service.ShopQueryGqlService-canCreateGiftCards": {
"batchLoadRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"loadErrorRatio": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0
}
},
"overall-statistics": {
"batchLoadExceptionCount": 0,
"batchLoadExceptionRatio": 0,
"batchLoadRatio": 0,
"cacheHitCount": 0,
"cacheHitRatio": 0,
"loadCount": 0,
"loadErrorCount": 0,
"batchInvokeCount": 0,
"batchLoadCount": 0,
"loadErrorRatio": 0
}
},
"metrics": {
"dataFetcherMetrics": [
{
"dfProtocol": "dubbo",
"dfRootCoordinate": "/storeMembershipType",
"dfRt": 161,
"dfServiceIdentity": "com.shopline.ec.openapi.interfaces.MemberGqlApi@getMemberLevelDef",
"dfErrorCode": null
}
],
"graphQLMetrics": {
"version": "v20241201",
"parseRt": 1,
"ratelimitRemaining": 0,
"tenant": "ec20",
"deepLevel": 2,
"startParseTimeMillis": 1721892914103,
"successType": "SUCCESS",
"includeDeprecatedField": false,
"merchantId": "4200114610",
"operation": "QUERY",
"saleChannel": null,
"clientIp": "218.253.130.212",
"countryCode": null,
"customizedClientIp": "218.253.130.212",
"languageCode": null,
"traceId": "d080ac286bd322e997073d280b7265b9",
"loaderCount": 0,
"startTimeMillis": 1721892914103,
"storeId": "1641993455937",
"storePlus": false,
"appId": "265337",
"appKey": "936eda168305ed82cee702c6822354ee6de2e802",
"fieldCount": 37,
"includeQuery": false,
"namespace": "admin",
"ratelimitPermits": 0,
"rt": 176,
"endParseTimeMillis": 1721892914104,
"errorFieldsCount": 0,
"executionId": "9122c41f-2539-4f5a-a2dd-4523bbfd4962"
}
},
"tracing": {
"duration": 175708852,
"endTime": "2024-07-25T07:35:14.279Z",
"execution": {
"resolvers": [
{
"path": [
"storeMembershipType"
],
"returnType": "[MemberLevel]",
"startOffset": 6046952,
"duration": 167971130,
"fieldName": "storeMembershipType",
"parentType": "Query"
},
{
"duration": 14794,
"fieldName": "levelCode",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"levelCode"
],
"returnType": "String",
"startOffset": 174208835
},
{
"duration": 8223,
"fieldName": "levelName",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"levelName"
],
"returnType": "String",
"startOffset": 174274594
},
{
"path": [
"storeMembershipType",
0,
"membershipType"
],
"returnType": "MembershipType",
"startOffset": 174328813,
"duration": 7996,
"fieldName": "membershipType",
"parentType": "MemberLevel"
},
{
"duration": 14000,
"fieldName": "levelOrder",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"levelOrder"
],
"returnType": "Int",
"startOffset": 174387717
},
{
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"levelIcon"
],
"returnType": "String",
"startOffset": 174449343,
"duration": 6798,
"fieldName": "levelIcon"
},
{
"duration": 6427,
"fieldName": "upgradeStandard",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"upgradeStandard"
],
"returnType": "UpgradeStandard",
"startOffset": 174495394
},
{
"duration": 6758,
"fieldName": "levelThreshold",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"levelThreshold"
],
"returnType": "String",
"startOffset": 174540793
},
{
"duration": 8700,
"fieldName": "lockinStandard",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"lockinStandard"
],
"returnType": "LockinStandard",
"startOffset": 174680374
},
{
"startOffset": 174737086,
"duration": 5689,
"fieldName": "lockinRule",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"lockinRule"
],
"returnType": "UnsignedInt64"
},
{
"startOffset": 174794365,
"duration": 9186,
"fieldName": "paidPrice",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"paidPrice"
],
"returnType": "UnsignedInt64"
},
{
"path": [
"storeMembershipType",
0,
"paidExpiryDateType"
],
"returnType": "PaidExpiryDateType",
"startOffset": 174850408,
"duration": 7047,
"fieldName": "paidExpiryDateType",
"parentType": "MemberLevel"
},
{
"fieldName": "paidExpiryDateValue",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
0,
"paidExpiryDateValue"
],
"returnType": "Int",
"startOffset": 174896474,
"duration": 6705
},
{
"path": [
"storeMembershipType",
1,
"levelCode"
],
"returnType": "String",
"startOffset": 175010300,
"duration": 7068,
"fieldName": "levelCode",
"parentType": "MemberLevel"
},
{
"fieldName": "levelName",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"levelName"
],
"returnType": "String",
"startOffset": 175056008,
"duration": 6594
},
{
"duration": 6338,
"fieldName": "membershipType",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"membershipType"
],
"returnType": "MembershipType",
"startOffset": 175100520
},
{
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"levelOrder"
],
"returnType": "Int",
"startOffset": 175145337,
"duration": 6610,
"fieldName": "levelOrder"
},
{
"fieldName": "levelIcon",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"levelIcon"
],
"returnType": "String",
"startOffset": 175192060,
"duration": 6274
},
{
"returnType": "UpgradeStandard",
"startOffset": 175236869,
"duration": 7611,
"fieldName": "upgradeStandard",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"upgradeStandard"
]
},
{
"fieldName": "levelThreshold",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"levelThreshold"
],
"returnType": "String",
"startOffset": 175283130,
"duration": 6686
},
{
"fieldName": "lockinStandard",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"lockinStandard"
],
"returnType": "LockinStandard",
"startOffset": 175380181,
"duration": 6841
},
{
"duration": 9393,
"fieldName": "lockinRule",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"lockinRule"
],
"returnType": "UnsignedInt64",
"startOffset": 175435658
},
{
"startOffset": 175489521,
"duration": 6462,
"fieldName": "paidPrice",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"paidPrice"
],
"returnType": "UnsignedInt64"
},
{
"duration": 6167,
"fieldName": "paidExpiryDateType",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"paidExpiryDateType"
],
"returnType": "PaidExpiryDateType",
"startOffset": 175534105
},
{
"returnType": "Int",
"startOffset": 175578374,
"duration": 6451,
"fieldName": "paidExpiryDateValue",
"parentType": "MemberLevel",
"path": [
"storeMembershipType",
1,
"paidExpiryDateValue"
]
}
]
},
"parsing": {
"duration": 349023,
"startOffset": 415315
},
"startTime": "2024-07-25T07:35:14.103Z",
"validation": {
"startOffset": 1689600,
"duration": 1052570
},
"version": 1
}
},
"data": {
"storeMembershipType": [
{
"levelIcon": "LEVEL_2",
"levelName": "membership_level_1",
"levelThreshold": "10000",
"lockinRule": "0",
"lockinStandard": "ACCUMULATED",
"paidExpiryDateType": null,
"paidPrice": null,
"levelCode": "gid://shopline/Membership/MLC6568224957444662294",
"levelOrder": 1,
"membershipType": "LEVEL",
"paidExpiryDateValue": null,
"upgradeStandard": "ACCUMULATED"
},
{
"levelOrder": 2,
"levelThreshold": "20000",
"lockinStandard": "ACCUMULATED",
"membershipType": "LEVEL",
"upgradeStandard": "ACCUMULATED",
"levelCode": "gid://shopline/Membership/MLC6568226048886449178",
"levelIcon": "LEVEL_3",
"levelName": "membership_level_2",
"lockinRule": "0",
"paidExpiryDateType": null,
"paidExpiryDateValue": null,
"paidPrice": null
}
]
}
}
这篇文章对你有帮助吗?