---
title: "MembershipInfo"
description: "The information of the membership level that a customer is in."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/member-system/objects/membership-info'
  md: 'https://developer.shopline.com/docs/storefront-api/member-system/objects/membership-info.md'
---
# MembershipInfo

The information of the membership level that a customer is in.

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`MembershipInfo`

## Fields

* `invitedSuccess`

  [UnsignedInt64](https://developer.shopline.com/docs/storefront-api/common/scalars/unsigned-int-64.md)

  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.

* `levelCode`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The code of current level or paid membership of the customer.

* `levelExpiryTime`

  [Date](https://developer.shopline.com/docs/storefront-api/common/scalars/date.md)

  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](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The icon of current level or paid membership of the customer.

* `levelName`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The name of current level or paid membership of the customer. Up to 25 characters.

* `levelOrder`

  [Int](https://developer.shopline.com/docs/storefront-api/common/scalars/int.md)

  Relevant only when membershipType = LEVEL. Higher the field indicates a higher level.

* `levelUpdatedTime`

  [Date](https://developer.shopline.com/docs/storefront-api/common/scalars/date.md)

  The start time of current level or paid membership of the customer.

* `membershipType`

  [MembershipType](https://developer.shopline.com/docs/storefront-api/member-system/enums/membership-type.md)

  The current active membership mechanism of the store.

* `rewardAvailable`

  [Int](https://developer.shopline.com/docs/storefront-api/common/scalars/int.md)

  Number of available rewards for the customer. Includes membership benefits issued, coupons redeemed through points, etc.

## Schema Definition

```graphql
type MembershipInfo { 
	invitedSuccess: UnsignedInt64
	levelCode: String
	levelExpiryTime: Date
	levelIcon: String
	levelName: String
	levelOrder: Int
	levelUpdatedTime: Date
	membershipType: MembershipType
	rewardAvailable: Int 
}
```

## Field from

* [Query](https://developer.shopline.com/docs/storefront-api/member-system/queries/member-info.md).memberInfo

  查询单个会员的会员资产信息，包括会员等级和付费类型信息、可使用的奖励和推荐信息等

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

