使用我们简单的API为您的网站供电

我们的网络API允许您的应用程序从中国分部获取数据并管理订单。

服务介绍:

本文档描述了通过 www.chinadivision.com API 提供给客户的对接点,这使得订单数据可从客户端系统同步到 www.chinadivision.com 系统。

接口地址:

https://api.chinadivision.com/sku-create-v2

请求方式:

POST

请求参数(标头):

Parameter Name Types Required Parameter Location Description Defaults
apikey string yes header API Key your apikey

请求参数(参数):

Parameter Name Types Required Parameter Location Description Defaults
sku string yes bodyParam sku code
sn string yes bodyParam sn code
product_name string yes bodyParam product name
name_en string yes bodyParam product english name
name_cn string yes bodyParam product chinese name
price float yes bodyParam product price
size string yes bodyParam product size
color string yes bodyParam product color
brand string yes bodyParam product brand
material string no bodyParam product english material
material_cn string no bodyParam product chinese material
application string no bodyParam product english english
application_cn string no bodyParam product chinese application
hs_code string no bodyParam HS code

请求示例:

JSON 返回示例:

备注

重复创建SKU,执行更新SKU信息操作。

错误信息:

Error Code Error Code Returns Description
0 success success
1 Apikey can not be empty apikey can not be empty
2 Apikey does not exist apikey does not exist
3 Post data can not be empty Post data can not be empty
4 Info data can not be empty Info data can not be empty
5 Tracking Number and Package Number two must have a not null Tracking Number and Package Number two must have a not null
6 service is temporarily unavailable service is temporarily unavailable
91 Sku already exists
92 Sn already is Used
101 Sku can not be empty
102 Sku can contain only numbers, letters, and hyphens (-)
103 Sn can not be empty
104 Sn can contain only numbers, letters, and hyphens (-)
105 Product name can not be empty
106 product chinese name can not be empty
107 product english name can not be empty
108 The price must be greater than 0
109 Size can not be empty
110 Color can not be empty
111 Brand can not be empty