开放 API
使用说明
获取授权
全部 API
- Shop
- Metafields
- Customer
- CustomerAddress
- Account
- Product
- ProductVariant
- ProductImage
- Theme
- Asset
- Country
- Province
- City
- District
- ScriptTag
- Order
- Shipment
- ShipmentSupplier
- Payment
- PaymentMethod
- Redirect
- Page
- Webhook
- Blog
- BlogAuthor
- CustomerLevel
- StoreFile
- Promotion
- Coupon
- Post
- AfterSale
CustomerLevel
CustomerLevel
顾客会员等级,通过API只可进行查询,不可修改。
CustomerLevel 相关API
CustomerLevel 属性
- id
Number 类型,顾客会员等级唯一主键ID。{ "id" : "626" }
- name
String 类型,顾客会员等级的名称。{ "name" : "默认等级" }
- credits
Integer 类型,顾客会员等级所需要的经验值。{ "credits" : 10000 }
- discount
Integer 类型,顾客会员等级享受的折扣信息。{ "discount" : 80 }
- created_at
DateTime 类型,顾客会员等级创建时间。{ "created_at" : "2016-06-30T11:35:03.592+08:00" }
- updated_at
DateTime 类型,顾客会员等级上一次更新时间。{ "updated_at" : "2016-06-30T11:35:03.592+08:00" }
GET /customer_levels
获取网站顾客会员等级列表
- id
- 可选,指定的会员等级唯一主键ID
- name
- 可选,指定的会员等级名
- 获取顾客会员等级列表
- GET /customer_levels
{ "customer_levels": [ { "created_at": "2016-03-29T22:34:10.661+08:00", "credits": 0, "discount": 100, "id": 382, "name": "普通会员", "updated_at": "2016-08-22T18:47:49.325+08:00" }, { "created_at": "2016-06-26T11:29:37.292+08:00", "credits": 100, "discount": 60, "id": 616, "name": "铜牌会员", "updated_at": "2016-08-22T18:31:16.497+08:00" }, { "created_at": "2016-06-30T11:35:03.592+08:00", "credits": 1000, "discount": 100, "id": 626, "name": "金牌会员", "updated_at": "2016-08-22T18:30:15.674+08:00" } ] }
GET /customer_levels/count
获取顾客会员等级数据总数
- 获取 CustomerLevel 总数
- GET /customer_levels/count
{ "count": 3 }
GET /customer_levels/#{id}
获取指定 ID 的顾客会员等级信息
- 获取ID为626的顾客会员等级详细信息
- GET /customer_levels/626
{ "customer_level": { "created_at": "2016-06-30T11:35:03.592+08:00", "credits": 1000, "discount": 100, "id": 626, "name": "22222", "updated_at": "2016-08-22T18:30:15.674+08:00" } }