开放 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
Shop
Shop
Shop 为店铺的基础信息,通过 API 只可读,不可修改。
Shop 对象支持 Metafields。
Shop 相关API
Shop 属性
- created_at
Datetime 类型,Shop 的创建时间。{ "created_at": "2014-09-01T00:00:01.987+08:00" }
- domain
String 类型,Shop 的访问主域名。{ "domain" : "standard.v.youhaosuda.com" }
- enable_email_regist
Bool 类型,是否允许顾客邮箱注册。{ "enable_email_regist" : true }
- enable_mobile_regist
Bool 类型,是否允许顾客手机号注册。{ "enable_mobile_regist" : true }
- enable_username_regist
Bool 类型,是否允许顾客用户名注册。{ "enable_username_regist" : true }
- name
String 类型,Shop 的店铺名。{ "name" : "标准主题开发版" }
- page_description
String 类型,Shop 的网页描述,用于 SEO 优化。{ "page_description" : "网页描述" }
- page_title
String 类型,Shop 的网页标题,用于 SEO 优化。{ "page_title" : "网页标题" }
- url
String 类型,Shop 的访问主网址。{ "url" : "http://standard.v.youhaosuda.com" }
GET /shop
获取单个Shop
- 获取单个Shop
- GET /shop
HTTP/1.1 200 OK
{ "shop": { "created_at": "2014-09-02T17:32:01.111+08:00", "domain": "standard.v.youhaosuda.com", "enable_email_regist": true, "enable_mobile_regist": true, "enable_username_regist": true, "name": "标准主题开发版", "page_description": "标准主题开发版", "page_title": "标准主题开发版", "updated_at": "2015-04-29T14:48:39.437+08:00", "url": "http://standard.v.youhaosuda.com", "webhook_token" : "906155047ff74a14a1ca6b1fa74d3390" } }