开放 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
Account
Account
Account 为系统的管理员,通过 API 只可读,不可修改。
Account 相关API
Account 相关属性
- activated
Bool 类型,Account 的激活状态,true 表示已激活,false 表示未激活。{ "activated" : true}
- account_type
String 类型,Account 类型,owner 表示店铺拥有者,adminitrator 表示店铺管理员。{ "account_type" : "owner"}
- avatar_src
String 类型,Account 头像图片 URL。{ "avatar_src" : "//asset.ibanquan.com/image/5601473a71ea1e2aa6000025/s_200x200"}
- created_at
Datetime 类型,Account 的创建时间。{ "created_at" : "2014-02-15T15:12:21+08:00" }
String 类型,Account 的邮箱,邮箱已经过友好速搭验证{ "email" : "tom@example.com" }
- id
Number 类型,Account 的唯一整型标识。{ "id" : 148002 }
- last_in
Datetime 类型,Account 的上一次登录时间。{ "last_in" : "2014-02-15T15:12:21+08:00" }
- mobile
String 类型,Account 的电话。{ "mobile" : "134XXXXXXX" }
- name
String 类型,Account 的名称。{ "name" : "Tom" }
- updated_at
Datetime 类型,Account 的上一次更新时间。{ "updated_at" : "2014-02-15T15:12:21+08:00" }
GET /accounts
获取所有的 Account
- fields
- 需要查询的字段
- 获取所有的 Account
- GET /accounts
{ "accounts": [ { "account_type": "owner", "activated": false, "created_at": "2015-04-23T15:10:55.112+08:00", "email": "owner@example.com", "id": 15260, "last_in": "2015-04-29T16:33:16.655+08:00", "modules": [ { "code": "m_customer", "name": "顾客管理" }, { "code": "m_discount", "name": "优惠活动" }, { "code": "m_domain", "name": "域名设置" }, { "code": "m_imgmanager", "name": "图片管理" }, { "code": "m_navigation", "name": "导航管理" }, { "code": "m_order", "name": "订单管理" }, { "code": "m_page", "name": "页面管理" }, { "code": "m_payment", "name": "收款方式" }, { "code": "m_product", "name": "商品管理" }, { "code": "m_shipment", "name": "物流设置" }, { "code": "m_smsmail", "name": "通知模板" }, { "code": "m_summary", "name": "店铺数据" }, { "code": "m_theme", "name": "主题风格" }, { "code": "m_account", "name": "管理员" }, { "code": "m_blog", "name": "轻博客" }, { "code": "m_filemanager", "name": "文件管理" }, { "code": "m_socialauth", "name": "社交授权" }, { "code": "m_settings", "name": "店铺设置" } ], "name": "owner", "updated_at": "2015-04-29T16:33:16.657+08:00" }, { "account_type": "adminitrator", "activated": false, "created_at": "2014-04-26T16:11:30.498+08:00", "email": "adminitrator@example.com", "id": 18623, "last_in": "2015-04-26T11:15:16.307+08:00", "modules": [ { "code": "m_theme", "name": "主题风格" } ], "name": "adminitrator", "updated_at": "2015-03-09T11:15:16.310+08:00" } ] }
GET /accounts/count
获取 Account 的数量
- 获取 Account 的数量
- GET /accounts/count
{ "count": 2 }
GET /accounts/#{id}
获取指定 ID 的 Account 信息
- fields
- 需要查询的字段
- 获取指定 ID 的 Account 信息
- GET /accounts/15260
{ "account": { "account_type": "owner", "activated": false, "created_at": "2015-04-23T15:10:55.112+08:00", "email": "owner@example.com", "id": 15260, "last_in": "2015-04-29T16:33:16.655+08:00", "modules": [ { "code": "m_customer", "name": "顾客管理" }, { "code": "m_discount", "name": "优惠活动" }, { "code": "m_domain", "name": "域名设置" }, { "code": "m_imgmanager", "name": "图片管理" }, { "code": "m_navigation", "name": "导航管理" }, { "code": "m_order", "name": "订单管理" }, { "code": "m_page", "name": "页面管理" }, { "code": "m_payment", "name": "收款方式" }, { "code": "m_product", "name": "商品管理" }, { "code": "m_shipment", "name": "物流设置" }, { "code": "m_smsmail", "name": "通知模板" }, { "code": "m_summary", "name": "店铺数据" }, { "code": "m_theme", "name": "主题风格" }, { "code": "m_account", "name": "管理员" }, { "code": "m_blog", "name": "轻博客" }, { "code": "m_filemanager", "name": "文件管理" }, { "code": "m_socialauth", "name": "社交授权" }, { "code": "m_settings", "name": "店铺设置" } ], "name": "owner", "updated_at": "2015-04-29T16:33:16.657+08:00" } }
权限模块清单
code | name |
---|---|
m_summary | 数据统计 |
m_order | 订单管理 |
m_product | 商品管理 |
m_customer | 顾客管理 |
m_discount | 促销管理 |
m_page | 自定义页面 |
m_blog | 轻博客 |
m_navigation | 导航管理 |
m_theme | 主题风格 |
m_settings | 店铺设置 |
m_payment | 收款方式 |
m_shipment | 运费模版 |
m_domain | 域名设置 |
m_socialauth | 社交授权 |
m_smsmail | 店铺通知 |
m_imgmanager | 图片管理 |
m_filemanager | 文件管理 |
m_account | 管理员 |