开放 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
Country
Country
 地址中的国家对象,目前仅支持中国,通过 API 只可读,不可修改。
地址中的国家对象,目前仅支持中国,通过 API 只可读,不可修改。
Country 相关API
Country 属性
- id
 Number 类型,Country 唯一整型标识。- { "id" : 1 }
 
- code
 String 类型,国家编码。- { "code" : "CN" }
 
- name
 String 类型,国家名称。- { "name" : "中国" }
 
- continent
 String 类型,国家所属大洲名称- { "continent" : "asia" }
 
GET /countries
获取 Country 列表
- limit
- 可选,返回结果条数
 默认10,最大50
 
- page
- 可选,显示的页码
 默认1
 
- since_id
- 可选,返回大于指定ID的结果
 
- code
- 可选,指定国家编码
 
- name
- 可选,指定国家名称
 
- 获取所有 Country 列表
- GET /countries
- { "countries": [ { "code": "CN", "continent": "asia", "id": 1, "name": "中国", "provinces": [] } ] }
 
GET /countries/count
获取 Country 总数
- 获取 Country 总数
- GET /countries/count
- { "count": 1 }
 
GET /countries/#{id}
获取指定 ID 的 Country 内容
- 获取 ID 为 1 的 Country 内容
- GET /countries/1
- { "country": [ { "code": "CN", "continent": "asia", "id": 1, "name": "中国", "provinces": [] } ] }
 
 
 
 
