- 默认分组
- 产品
- 入库计划单
- 库存
- 订单
- 退货
- 调拨
- 预约
- 基础数据
- 三方授权
- 运费
- 费用
创建/编辑 产品
POST
https://hwc-open-api.yqn.com/v1/product/save
请求参数
Header 参数
x-api-key
string
必需
示例值:
abc123(认证信息)
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
sku
string
产品sku
customItemNo
string
自定义产品编码
upc
string
upc编码
productType
integer
可选
name
string
中文名称
nameEn
string
英文名称
description
string
可选
packingType
integer
必需
length
number
产品长(cm)
width
number
产品宽(cm)
height
number
产品高(cm)
weight
number
产品重量(g)
itemLength
number
单品长(cm)
itemWidth
number
单品宽(cm)
itemHeight
number
单品高(cm)
expirationControl
integer
可选
expirationDate
integer
保持期时间(天数)
packedQty
integer
装箱数量
packedLength
number
外箱长(cm)
packedWidth
number
外箱宽(cm)
packedHeight
number
外箱高(cm)
packedWeight
number
外箱重量(g)
cost
number
成本
currency
string
币 种
isInsuranceFlag
string
可选
isInsuranceRate
number
保价费用
remark
string
备注
customName
string
报关 中文名
customNameEn
string
报关英文名称
isRequireSn
integer
必需
示例
{
"sku": "string",
"customItemNo": "string",
"upc": "string",
"productType": 0,
"name": "string",
"nameEn": "string",
"description": "string",
"packingType": 0,
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"itemLength": 0,
"itemWidth": 0,
"itemHeight": 0,
"expirationControl": 0,
"expirationDate": 0,
"packedQty": 0,
"packedLength": 0,
"packedWidth": 0,
"packedHeight": 0,
"packedWeight": 0,
"cost": 0,
"currency": "string",
"isInsuranceFlag": "string",
"isInsuranceRate": 0,
"remark": "string",
"customName": "string",
"customNameEn": "string",
"isRequireSn": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://hwc-open-api.yqn.com/v1/product/save' \
--header 'x-api-key: abc123(认证信息)' \
--header 'Content-Type: application/json' \
--data-raw '{
"sku": "string",
"customItemNo": "string",
"upc": "string",
"productType": 0,
"name": "string",
"nameEn": "string",
"description": "string",
"packingType": 0,
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"itemLength": 0,
"itemWidth": 0,
"itemHeight": 0,
"expirationControl": 0,
"expirationDate": 0,
"packedQty": 0,
"packedLength": 0,
"packedWidth": 0,
"packedHeight": 0,
"packedWeight": 0,
"cost": 0,
"currency": "string",
"isInsuranceFlag": "string",
"isInsuranceRate": 0,
"remark": "string",
"customName": "string",
"customNameEn": "string",
"isRequireSn": 0
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"statusCode": 200,
"status": 0,
"code": 200,
"message": "产品创建成功"
}
修改于 2025-05-26 06:32:19