POST api/localtravel/addShoppingCart/{lang}

添加購物車

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

Body Parameters

LocalTravelShoppingCartRQContract
NameDescriptionTypeAdditional information
cartId

購物車ID(更改時需傳入)

string

None.

themeId

主題ID

string

None.

themeTitle

主題名稱

string

None.

memberId

會員ID

string

None.

sid

訪問ID

string

None.

planId

計劃ID

string

None.

planTitle

計劃標題

string

None.

islimitdate

是否限制了日期

boolean

None.

depDate

出發日期

date

None.

depTime

出發時間

string

None.

source

数据来源(0=内部数量,1=KLook数据)

integer

None.

type

0.直接购买,1.购物车信息

LocalTravel_ShoppingCartType

None.

priceRanks

價格等級信息

Collection of LocalTravelShoppingCartDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "cartId": "sample string 1",
  "themeId": "sample string 2",
  "themeTitle": "sample string 3",
  "memberId": "sample string 4",
  "sid": "sample string 5",
  "planId": "sample string 6",
  "planTitle": "sample string 7",
  "islimitdate": true,
  "depDate": "2024-12-23T19:41:34.358241+08:00",
  "depTime": "sample string 9",
  "source": 10,
  "type": 0,
  "priceRanks": [
    {
      "priceRankId": "sample string 1",
      "priceRankName": "sample string 2",
      "currencyCode": "sample string 3",
      "count": 4
    },
    {
      "priceRankId": "sample string 1",
      "priceRankName": "sample string 2",
      "currencyCode": "sample string 3",
      "count": 4
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LocalTravelShoppingCartRQContract'.

Response Information

Resource Description

添加購物車

ReturnResultOfString
NameDescriptionTypeAdditional information
data

string

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": "sample string 1",
  "code": 2,
  "message": "sample string 3"
}