POST api/OrderPeriod/UpPeriodDateTime
變更定期購週期
Request Information
URI Parameters
None.
Body Parameters
UpPeriodDateTime_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
會員帳號 |
string |
Required |
| id |
定购ID |
globally unique identifier |
Required |
| ServiceInterval |
定购周期 |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"id": "31ed0cdb-272a-42fe-b3de-914d641f298d",
"ServiceInterval": 4
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","id":"31ed0cdb-272a-42fe-b3de-914d641f298d","ServiceInterval":4}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
變更定期購週期
UpPeriodDateTime_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| status |
状态 0: 系統錯誤 1: 更新成功 2: 定期購訂單不存在 3: 週期錯誤(不符合後台設定) |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"status": 2
}
text/html
Sample:
{"ticketVerified":true,"status":2}