- API使用说明
- 物流
- oauth授权
- 订单
- 商品
- 库存
- 仓库
- 入库单
- oms客户
- B2B
- 费用
- webhook
- 直邮订单
更新商品SKU
POST
/api/sku/update
商品
请求参数
Body 参数application/json
商品对象
sku
string
必需
skuCode
string
可选
name
string
必需
length
number
可选
width
number
可选
height
number
可选
weight
number
可选
imgUrl
string
图片URL
declareChineseName
string
可选
declareEnglishName
string
可选
declarePrice
number
可选
declareCurrency
string
可选
declareAttribute
integer
可选
示例
{
"sku": "string",
"skuCode": "string",
"name": "string",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"imgUrl": "string",
"declareChineseName": "string",
"declareEnglishName": "string",
"declarePrice": 0,
"declareCurrency": "string",
"declareAttribute": 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 '/api/sku/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"sku": "string",
"skuCode": "string",
"name": "string",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"imgUrl": "string",
"declareChineseName": "string",
"declareEnglishName": "string",
"declarePrice": 0,
"declareCurrency": "string",
"declareAttribute": 0
}'
返回响应
🟢200successful operation
application/json
Body
{@link ApiResult}
code
integer
可选
默认值:
0
message
string
错误提示信息
data
object
数据
requestId
string
请求Id
示例
{
"code": "0",
"message": "string",
"data": {},
"requestId": "string"
}
修改于 2025-01-21 02:39:38