- 淘宝
- 1688
- 商品
- 订单
- 售后
- 消息回调
- 购物车
- 营销
- 基础
- 仓库物流
编辑商品数量
POST
/alibaba/cart/edit-quantity
请求参数
Header 参数
access-key
string
必需
默认值:
58c0201dfdf148eca63cbf6bb5e7cf03
nonce-str
string
可选
默认值:
nonce-str
timestamp
string
必需
默认值:
1715669977082
user-id
string
必需
默认值:
2100007341207
signature
string
必需
默认值:
B7F83FE2ADC8D8F044F2E01F0FFE8C80
Body 参数application/json
quantity
integer | null
数量
id
integer | null
购物车ID
updateTime
object (DateTime)
操作时间
mutable
boolean | null
可选
firstDayOfWeek
enum<string> | enum<null>
可选
枚举值:
SUNDAYMONDAYTUESDAYWEDNESDAYTHURSDAYFRIDAYSATURDAY
timeZone
object (TimeZone)
可选
minimalDaysInFirstWeek
integer | null
可选
productNo
string | null
产品号
container
string | null
柜箱号
示例
{
"quantity": 0,
"id": 0,
"updateTime": {
"mutable": true,
"firstDayOfWeek": "SUNDAY",
"timeZone": {
"ID": "string"
},
"minimalDaysInFirstWeek": 0
},
"productNo": "string",
"container": "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 'https://api.pandapon.com/alibaba/cart/edit-quantity' \
--header 'access-key;' \
--header 'nonce-str: nonce-str' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"quantity": 0,
"id": 0,
"updateTime": {
"mutable": true,
"firstDayOfWeek": "SUNDAY",
"timeZone": {
"ID": "string"
},
"minimalDaysInFirstWeek": 0
},
"productNo": "string",
"container": "string"
}'
返回响应
🟢200成功
application/json
Body
requestId
string | null
请求ID
code
integer | null
返回码
developId
integer | null
开发者ID
msg
string | null
返回码对应信息
data
boolean | null
返回内容
示例
{
"requestId": "",
"code": 0,
"developId": 0,
"msg": "",
"data": false
}