更新购物车
正式环境
正式环境
POST
/store/carts/{id}
Store API/CartsCarts
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apifoxmock.com/m1/4997831-4656773-default/store/carts/' \
--header 'Content-Type: application/json' \
--data-raw '{
"region_id": "string",
"email": "user@example.com",
"sales_channel_id": "string",
"customer_id": "string",
"country_code": "string",
"context": {
"ip": "::1",
"user_agent": "Chrome"
},
"gift_cards": [
{
"code": "string"
}
],
"discounts": [
{
"code": "string"
}
],
"billing_address": {
"first_name": "Arno",
"last_name": "Willms",
"phone": 16128234334802,
"company": "string",
"address_1": "14433 Kemmer Court",
"address_2": "Suite 369",
"city": "South Geoffreyview",
"province": "Kentucky",
"postal_code": 72093,
"country_code": "st",
"metadata": {
"car": "white"
}
},
"shipping_address": {
"first_name": "Arno",
"last_name": "Willms",
"phone": 16128234334802,
"company": "string",
"address_1": "14433 Kemmer Court",
"address_2": "Suite 369",
"city": "South Geoffreyview",
"province": "Kentucky",
"postal_code": 72093,
"country_code": "st",
"metadata": {
"car": "white"
}
}
}'
响应示例响应示例
200 - 示例 1
请求参数
Path 参数
id
string
购物车的ID。
Body 参数application/json
返回响应
修改于 2024-09-20 08:34:42