v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBCarts
Get Cart Id
To retrieve or generate a cart_id using cart identifiers.<br> The cart_id remains valid until checkout is completed. If a cart is not found, a new one will be created.<br> 使用購物車識別欄位搜索或生成購物車 ID,購物車 ID在結帳完成前有效,若找不到對應的購物車,將自動創建新購物車
get/carts/find
Query parameters
owner_idstring required
owner id of the cart, could be user_id or public session id.<br> 購物車擁有者ID,登入會員的購物車此值是 user_id; 訪客的購物車則是 public_session_id
owner_type'User' | 'Guest' required
owner type of the cart, could be User or Guest only.<br> 購物車擁有者類型,登入會員的購物車此值是 User; 訪客的購物車則是 Guest
shop_session_idstring
識別不同商務平台的直播購物車之 shop_session_id
page_idstring
一頁式商店 (express checkout)購物車的 page_id
product_idstring
快速結帳立即購買 (fast_checkout)購物車的 product_id
channel_idstring
購物車渠道 channel_id
created_bystring
購物車的建立來源
Response
OK
Example response
{
"code": "SUCCESS",
"data": {
"id": 123456,
"cart_id": "00a6fa25df2947019077557932591766"
},
"trace_id": "0255f148-f9c6-4b1c-8c73-ac9fbf2e5f79"
}