Get Membership Tiers
Function
To get membership tiers with open API
獲取會員分級資料
URL
GET <<api_domain>>/v1/membership_tiers
Request Parameters
Field | Type | Description | Example |
|---|---|---|---|
include_fields[] |
| 包含 fields, 預設為 membership_tier_rules & promotions enum:
| include_fields[]=membership_tier_rules&include_fields[]=promotions |
Response fields
Field | Type | Description | Example |
|---|---|---|---|
id |
| Membership tier's ID | 5de6192b9a8b7900365abb5b |
level |
| Level of Current Membership Tier
| 2 |
name_translations |
| Name Translations | { |
membership_tier_rules |
| Rules of the member tier | [ |
promotions |
| The promotion linked with this membership tier with status equal hidden | [ |
member_point_rules |
| Rules of the member point |
|
user_credit_rules |
| Rules of the user credit |
|
membership_tier_rules Entity
Field | Type | Description | Example |
|---|---|---|---|
id |
| Membership tier rule's ID | "62033eb07b5a39003e5c5723" |
effect_type |
| Type of the membership_tier_rule | "upgrade" |
condition_interval.type |
| Membership Upgrade Condition Type
| "single_purchase" |
condition_interval.time_unit |
| Membership Upgrade Condition Time Unit | "month" |
condition_interval.time_value |
| Valid Period of the conditional interval if the type is "within_interval" | 12 |
effect_interval.type |
| Membership Valid Period | "within_interval" |
effect_interval.time_unit |
| Unit of Valid Period | "month" |
effect_interval.time_value |
| Valid Period of the effect interval if the type is "within_interval" | 12 |
total_spending.cents |
| Total Spending Requirement represent in cents
| 100 |
total_spending.currency_symbol |
| Total Spending Requirement represent in currency_symbol | "HK$" |
total_spending.currency_iso |
| Total Spending Requirement represent in currency_iso | "HKD" |
total_spending.label |
| Total Spending Requirement represent in label | "HK$1.00" |
total_spending.dollars |
| Total Spending Requirement represent in dollars | 1 |
Response Example
Updated 11 days ago