POST api/ServerPro/GetPeriodType
取得定期購週期列表
Request Information
URI Parameters
None.
Body Parameters
GetPeriodType_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
會員帳號 |
string |
Required |
| productNumber |
商品編號 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"productNumber": "sample string 3"
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","productNumber":"sample string 3"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
取得定期購週期列表
GetPeriodType_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| intervals |
週期選單 |
Collection of Period_intervals |
None. |
| cycles |
循環次數 |
Collection of Period_Cycle |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"intervals": [
{
"name": "sample string 1",
"value": "sample string 2"
},
{
"name": "sample string 1",
"value": "sample string 2"
}
],
"cycles": [
{
"CycleName": "sample string 1",
"CycleValue": 2
},
{
"CycleName": "sample string 1",
"CycleValue": 2
}
]
}
text/html
Sample:
{"ticketVerified":true,"intervals":[{"name":"sample string 1","value":"sample string 2"},{"name":"sample string 1","value":"sample string 2"}],"cycles":[{"CycleName":"sample string 1","CycleValue":2},{"CycleName":"sample string 1","CycleValue":2}]}