POST api/ServerPro/GetServerTimeCar

獲取服務時間是否可以選擇(購物車)

Request Information

URI Parameters

None.

Body Parameters

GetServerTimeCar_Input
NameDescriptionTypeAdditional information
Ticket

身份票據

string

Required

userId

會員帳號

string

Required

ServerTime

服務時間

string

Required

MShopID

購物車明細編號

globally unique identifier

Required

sameWorker

若為true則只查詢同服務商品代號上一筆訂單的供應商的不可服務時間。

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Ticket": "sample string 1",
  "userId": "sample string 2",
  "ServerTime": "sample string 3",
  "MShopID": "35aef07c-7649-4dc9-91fc-f9835f6e4c31",
  "sameWorker": true
}

text/html

Sample:
{"Ticket":"sample string 1","userId":"sample string 2","ServerTime":"sample string 3","MShopID":"35aef07c-7649-4dc9-91fc-f9835f6e4c31","sameWorker":true}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

獲取服務時間是否可以選擇(購物車)

GetServerTime_Output
NameDescriptionTypeAdditional information
ticketVerified

驗證是否通過

boolean

None.

IsMorning

是否可選擇9:00-12:00 時段

boolean

None.

IsAfternoon

是否可選擇13:00-18:00 時段

boolean

None.

IsNight

是否可選擇18:00-21:00 時段

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "ticketVerified": true,
  "IsMorning": true,
  "IsAfternoon": true,
  "IsNight": true
}

text/html

Sample:
{"ticketVerified":true,"IsMorning":true,"IsAfternoon":true,"IsNight":true}