- Taobao
- goods
- order form
- shopping cart
- After sales
- Message callback
- 1688
- Goods
- 1688 commodity details inquiry
- 1688 Product keyword query
- 1688 Product image search
- 1688 multilingual store search
- Query multilingual categories according to category ID
- Product recommendation
- Related product recommendation
- Global strictly selected keyword query
- 1688 Strictly select keyword query
- Hot list query
- shopping cart
- order form
- Developers submit 1688 orders for payment in batch
- Preview data interface before order creation (different merchants)
- Create order interface in batch (different merchants)
- Obtain logistics tracking information
- Order List
- Preview data interface before creating an order
- Create Order Interface
- Cancel order interface before payment
- Order payment
- Buyer confirms receipt
- 1688 conversion and decryption to Wangwang nickname interface
- After sales
- Message callback
- basis
- Warehouse logistics
Add Cart Item
POST
/v2/taobao/cart/add
/v2/taobao/cart/add
请求参数
Header 参数
access-key
string
必需
默认值:
58c0201dfdf148eca63cbf6bb5e7cf03
nonce-str
string
可选
默认值:
nonce-str
timestamp
string
必需
默认值:
1715669977082
user-id
string
必需
默认值:
2100007341207
signature
string
必需
默认值:
B7F83FE2ADC8D8F044F2E01F0FFE8C80
Body 参数application/json
userId
string
平台userId
platform
integer
可选
itemMapId
string
商品ID
skuId
string
skuId
itemTitle
string
商品标题
itemPic
string
商品图片
mpId
string
必需
mpSkuId
string
必需
price
integer
商品价格
promotionPrice
integer
商品优惠后价格
properties
string
sku属性
quantity
integer
数量
shopId
integer
店铺ID
aliShopId
string
店铺ID
shopName
string
店铺名称
skuQuantity
string
sku对应的库存
userNick
string
userNick
priceRanges
array[object (PriceRange) {2}]
价格区间
startQuantity
integer | null
起批量
price
number | null
批发价
quoteType
integer
可选
示例
{
"itemMapId": "WUnUC1cILiBjt-Jv3lDdlQ",
"skuId": "5032007803360",
"itemTitle": "2025新款休闲短袖衬衫男士夏季薄款韩版潮流半袖衬衣帅气寸衫上衣",
"itemPic": "https://img.alicdn.com/bao/uploaded/i1/2202282511/O1CN01f70KIV1UQ5HNQRt17_!!2202282511.jpg",
"mpId": "NeZYO6vIHuENAqbW6iWQb7dqmzNNcIX-IQGrQ53mhv0",
"mpSkuId": "7579055774996",
"price": 13900,
"promotionPrice": 3990,
"quantity": 1,
"shopId": 115037976,
"shopName": "小淘男装服饰",
"skuQuantity": "100001"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/taobao/cart/add' \
--header 'access-key;' \
--header 'nonce-str: nonce-str' \
--header 'timestamp;' \
--header 'user-id;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"itemMapId":"WUnUC1cILiBjt-Jv3lDdlQ",
"skuId":"5032007803360",
"itemTitle":"2025新款休闲短袖衬衫男士夏季薄款韩版潮流半袖衬衣帅气寸衫上衣",
"itemPic":"https://img.alicdn.com/bao/uploaded/i1/2202282511/O1CN01f70KIV1UQ5HNQRt17_!!2202282511.jpg",
"mpId":"NeZYO6vIHuENAqbW6iWQb7dqmzNNcIX-IQGrQ53mhv0",
"mpSkuId":"7579055774996",
"price":13900,
"promotionPrice":3990,
"quantity":1,
"shopId":115037976,
"shopName":"小淘男装服饰",
"skuQuantity":"100001"
}'
返回响应
🟢200成功
application/json
Body
requestId
string
请求ID
code
integer
返回码
developId
integer
开发者ID
msg
string
返回码对应信息
data
boolean
返回内容
示例
{
"requestId": "2a285e601e5c4a2a84ba244a87e09dba",
"code": 200,
"developId": "1110890638347337996",
"msg": "成功",
"data": true
}
修改于 2025-04-25 03:58:01