POST api/shoppingcart/add
添加購物車
Request Information
URI Parameters
None.
Body Parameters
AddCartRQContract| Name | Description | Type | Additional information | 
|---|---|---|---|
| tourdetail | 
                         本地團信息  | 
                    TourInfo | 
                             None.  | 
                
| cartid | 
                         記錄編號  | 
                    integer | 
                             None.  | 
                
| memberid | 
                         會員ID  | 
                    integer | 
                             None.  | 
                
| guestid | 
                         訪客ID  | 
                    string | 
                             None.  | 
                
| itemtype | 
                         類型(fare=機票,hoel=酒店,tour=本地團,insurance=保險,package=機+酒)  | 
                    string | 
                             None.  | 
                
| itemname | 
                         標題  | 
                    string | 
                             None.  | 
                
| currency | 
                         幣種  | 
                    string | 
                             None.  | 
                
| discountamt | 
                         優惠金額  | 
                    decimal number | 
                             None.  | 
                
| count | 
                         數量  | 
                    integer | 
                             None.  | 
                
| createdate | 
                         加入時間  | 
                    date | 
                             None.  | 
                
| createip | 
                         客戶端IP  | 
                    string | 
                             None.  | 
                
| createagent | 
                         客戶端瀏覽器類型  | 
                    string | 
                             None.  | 
                
| expiredmins | 
                         過期時間  | 
                    integer | 
                             None.  | 
                
Request Formats
application/json, text/json
            Sample:
        
{
  "tourdetail": {
    "cartid": 1,
    "tourid": 2,
    "themeid": 3,
    "planid": "sample string 4",
    "adult": 5,
    "adultprice": 6.0,
    "adulttax": 7.0,
    "tripdate": "2025-11-04T18:51:54.8948553+08:00",
    "child": 9,
    "childprice": 10.0,
    "childtax": 11.0,
    "infant": 12,
    "infantprice": 13.0,
    "infanttax": 14.0,
    "elderly": 15,
    "elderlyprice": 16.0,
    "elderlytax": 17.0
  },
  "cartid": 1,
  "memberid": 2,
  "guestid": "sample string 3",
  "itemtype": "sample string 4",
  "itemname": "sample string 5",
  "currency": "sample string 6",
  "discountamt": 7.0,
  "count": 8,
  "createdate": "2025-11-04T18:51:54.8968606+08:00",
  "createip": "sample string 10",
  "createagent": "sample string 11",
  "expiredmins": 12
}
        application/x-www-form-urlencoded
            Sample:
    
        
Response Information
Resource Description
添加購物車
ReturnResultOfCartRpContract| Name | Description | Type | Additional information | 
|---|---|---|---|
| data | CartRpContract | 
                             None.  | 
                |
| code | 
                         状态码:100成功,其他自定义  | 
                    integer | 
                             None.  | 
                
| message | 
                         提示消息  | 
                    string | 
                             None.  | 
                
Response Formats
application/json, text/json
            Sample:
{
  "data": {
    "cartid": 1,
    "tourid": 2
  },
  "code": 1,
  "message": "sample string 2"
}