POST api/ServerPro/GetServerPrice

服務商品價格

Request Information

URI Parameters

None.

Body Parameters

GetServerPrice_Input
NameDescriptionTypeAdditional information
Ticket

身份票據

string

Required

serviceNumber

服務代號

string

Required

ServiceCityNo

服務縣市編號

integer

Required

speclist

服務規格群組

Collection of ServerSpec

None.

userId

會員帳號

string

None.

PlusProCode

加價購代碼

string

None.

cardNumber

信用卡號

string

None.

CardID

常用信用卡ID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Ticket": "sample string 1",
  "serviceNumber": "sample string 2",
  "ServiceCityNo": 3,
  "speclist": [
    {
      "ServiceSpec": "sample string 1",
      "Qty": 1
    },
    {
      "ServiceSpec": "sample string 1",
      "Qty": 1
    }
  ],
  "userId": "sample string 4",
  "PlusProCode": "sample string 5",
  "cardNumber": "sample string 6",
  "CardID": "sample string 7"
}

text/html

Sample:
{"Ticket":"sample string 1","serviceNumber":"sample string 2","ServiceCityNo":3,"speclist":[{"ServiceSpec":"sample string 1","Qty":1},{"ServiceSpec":"sample string 1","Qty":1}],"userId":"sample string 4","PlusProCode":"sample string 5","cardNumber":"sample string 6","CardID":"sample string 7"}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

服務商品價格

GetServerPrice_Output
NameDescriptionTypeAdditional information
ticketVerified

驗證是否通過

boolean

None.

Price

一般售價

decimal number

None.

IsSale

是否促銷

boolean

None.

SalePrice

促銷價

decimal number

None.

SaleTime

促銷時間

string

None.

LimitQty

限量

integer

None.

ResidueQty

剩餘

integer

None.

installments

分期

Collection of Pro_installments

None.

getBonus

可得紅利

Pro_getBonus

None.

amount

可服務金額門檻,若無則填入0。

integer

None.

exemption

免門檻加價金額,若無則填入0。amount > 0時必填。

integer

None.

exemptionName

免門檻加價金額名稱,amount > 0時必填。 例如:車馬費

string

None.

gifts

贈品

Collection of Server_Pro_gifts

None.

giftsLimit

贈品最多可選數量

integer

None.

SpecPrices

規格價格清單

Collection of SpecPriceSpec

None.

ServerPriceMarketing

加購商品折價機制

ServerPriceMarketingModel

None.

Response Formats

application/json, text/json

Sample:
{
  "ticketVerified": true,
  "Price": 2.0,
  "IsSale": true,
  "SalePrice": 1.0,
  "SaleTime": "sample string 4",
  "LimitQty": 5,
  "ResidueQty": 6,
  "installments": [
    {
      "installmentNo": "sample string 1",
      "name": "sample string 2",
      "periods": 3,
      "interestRate": 4.0,
      "periodPrice": "sample string 5",
      "firstPeriodPrice": "sample string 6",
      "banks": [
        "sample string 1",
        "sample string 2"
      ],
      "toalPrice": "sample string 7",
      "IsSelect": true
    },
    {
      "installmentNo": "sample string 1",
      "name": "sample string 2",
      "periods": 3,
      "interestRate": 4.0,
      "periodPrice": "sample string 5",
      "firstPeriodPrice": "sample string 6",
      "banks": [
        "sample string 1",
        "sample string 2"
      ],
      "toalPrice": "sample string 7",
      "IsSelect": true
    }
  ],
  "getBonus": {
    "bonus": 1,
    "promotionName": "sample string 2",
    "promotionStart": "sample string 3",
    "promotionEnd": "sample string 4"
  },
  "amount": 7,
  "exemption": 8,
  "exemptionName": "sample string 9",
  "gifts": [
    {
      "productName": "sample string 1",
      "productNumber": "sample string 2",
      "productAmount": 3,
      "Url": "sample string 4",
      "GiftID": "sample string 5",
      "giftsLimitPriceMax": 6,
      "giftsLimitPriceMin": 7,
      "available": true
    },
    {
      "productName": "sample string 1",
      "productNumber": "sample string 2",
      "productAmount": 3,
      "Url": "sample string 4",
      "GiftID": "sample string 5",
      "giftsLimitPriceMax": 6,
      "giftsLimitPriceMin": 7,
      "available": true
    }
  ],
  "giftsLimit": 1,
  "SpecPrices": [
    {
      "SpecNo": "sample string 1",
      "ShopPrice": 2.0,
      "Qty": 3,
      "DefaultRangePrice": 4.0
    },
    {
      "SpecNo": "sample string 1",
      "ShopPrice": 2.0,
      "Qty": 3,
      "DefaultRangePrice": 4.0
    }
  ],
  "ServerPriceMarketing": {
    "PlusMarketingNo": 1,
    "PlusProCode": "sample string 2",
    "Threshold": 3,
    "Discount": 4
  }
}

text/html

Sample:
{"ticketVerified":true,"Price":2.0,"IsSale":true,"SalePrice":1.0,"SaleTime":"sample string 4","LimitQty":5,"ResidueQty":6,"installments":[{"installmentNo":"sample string 1","name":"sample string 2","periods":3,"interestRate":4.0,"periodPrice":"sample string 5","firstPeriodPrice":"sample string 6","banks":["sample string 1","sample string 2"],"toalPrice":"sample string 7","IsSelect":true},{"installmentNo":"sample string 1","name":"sample string 2","periods":3,"interestRate":4.0,"periodPrice":"sample string 5","firstPeriodPrice":"sample string 6","banks":["sample string 1","sample string 2"],"toalPrice":"sample string 7","IsSelect":true}],"getBonus":{"bonus":1,"promotionName":"sample string 2","promotionStart":"sample string 3","promotionEnd":"sample string 4"},"amount":7,"exemption":8,"exemptionName":"sample string 9","gifts":[{"productName":"sample string 1","productNumber":"sample string 2","productAmount":3,"Url":"sample string 4","GiftID":"sample string 5","giftsLimitPriceMax":6,"giftsLimitPriceMin":7,"available":true},{"productName":"sample string 1","productNumber":"sample string 2","productAmount":3,"Url":"sample string 4","GiftID":"sample string 5","giftsLimitPriceMax":6,"giftsLimitPriceMin":7,"available":true}],"giftsLimit":1,"SpecPrices":[{"SpecNo":"sample string 1","ShopPrice":2.0,"Qty":3,"DefaultRangePrice":4.0},{"SpecNo":"sample string 1","ShopPrice":2.0,"Qty":3,"DefaultRangePrice":4.0}],"ServerPriceMarketing":{"PlusMarketingNo":1,"PlusProCode":"sample string 2","Threshold":3,"Discount":4}}