创建产品
POST
/commonApi/dropshipping/createProduct
请求参数
Header 参数
token
string
可选
示例值:
1232132132423423
Body 参数application/json
param
array [object {37}] | null
可选
sku
string
sku编码
fnsku
string | null
可选
shareId
integer | null
可选
isShare
string | null
可选
state
integer | null
可选
stateName
string | null
状态名称
skuSource
integer
1 API
默认值:
1
示例值:
1
skuType
integer
0 独立
默认值:
0
aclientName
string | null
子客户名称
skuCname
string | null
sku中文名称
skuEname
string | null
sku英文名称
sysSku
string | null
可选
customsCode
string | null
海关编码
modelType
string | null
型号
material
string | null
材质
application
string | null
可选
categoryId
integer | null
所属品类
producers
string | null
生产商
declaredValue
number | null
申报价值
priceCargoUnit
string | null
单价货币单位
salesPriceUnit
number | null
销售单价
salesCcyCode
string | null
销售币别
barCode
string | null
条形码
shopName
string | null
店铺名称
salesLink
string | null
销售链接
fbaCode
string | null
FBA编码
specification
string | null
规格
cargoProperty
string | null
货物属性
lowStock
integer | null
最低库存
highStock
integer | null
最高库存
note
string | null
备注
imagePath
string | null
图片
length
number
长
width
number
宽
high
number
高
weight
number
重量
spaceId
integer | null
空间类型
uuid
string | null
可选
示例
{
"param": [
{
"sku": "string",
"fnsku": "string",
"shareId": 0,
"isShare": "string",
"state": 0,
"stateName": "string",
"skuSource": 1,
"skuType": 0,
"aclientName": "string",
"skuCname": "string",
"skuEname": "string",
"sysSku": "string",
"customsCode": "string",
"modelType": "string",
"material": "string",
"application": "string",
"categoryId": 0,
"producers": "string",
"declaredValue": 0,
"priceCargoUnit": "string",
"salesPriceUnit": 0,
"salesCcyCode": "string",
"barCode": "string",
"shopName": "string",
"salesLink": "string",
"fbaCode": "string",
"specification": "string",
"cargoProperty": "string",
"lowStock": 0,
"highStock": 0,
"note": "string",
"imagePath": "string",
"length": 0,
"width": 0,
"high": 0,
"weight": 0,
"spaceId": 0
}
],
"uuid": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/commonApi/dropshipping/createProduct' \
--header 'token: 1232132132423423' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer | null
错误码
data
array [object {36}] | null
返回数据
sku
string | null
sku编码
skuId
integer
skuId
shareId
integer | null
可选
isShare
string | null
可选
state
integer | null
可选
stateName
string | null
状态名称
skuSource
integer | null
可选
skuType
integer | null
0 独立 1 组合
skuCname
string | null
sku中文名称
skuEname
string | null
sku英文名称
sysSku
string | null
可选
customsCode
string | null
海关编码
modelType
string | null
型号
material
string | null
材质
application
string | null
可选
categoryId
integer | null
所属品类
producers
string | null
生产商
declaredValue
number | null
申报价值
priceCargoUnit
string | null
单价货币单位
salesPriceUnit
number | null
销售单价
salesCcyCode
string | null
销售币别
barCode
string | null
条形码
shopName
string | null
店铺名称
salesLink
string | null
销售链接
fbaCode
string | null
FBA编码
specification
string | null
规格
cargoProperty
string | null
货物属性
lowStock
integer | null
最低库存
highStock
integer | null
最高库存
note
string | null
备注
imagePath
string | null
图片
length
number | null
长
width
number | null
宽
high
number | null
高
weight
number | null
重量
spaceId
integer | null
空间类型
errorMsg
string | null
可选
msg
string
错误提示
actionMsg
string | null
用于统一行为
solution
string | null
可选
msgCode
string | null
可选
示例
{
"code": 0,
"data": null,
"msg": "",
"errorMsg": "",
"actionMsg": "",
"solution": "",
"msgCode": ""
}
修改于 2024-08-26 01:54:02