POST api/Tally/RecipientBookAdd

新增常用收件人

Request Information

URI Parameters

None.

Body Parameters

RecipientBookAdd_Input
NameDescriptionTypeAdditional information
userId

會員帳號

string

Required

Ticket

身份票據

string

Required

name

姓名

string

Required

String length: inclusive between 0 and 20

phone

手機/市話

string

Required

String length: inclusive between 0 and 30

address

居住地址

string

Required

String length: inclusive between 0 and 200

ZipCode

郵編

string

Required

ZipCodeID

區域ID

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "userId": "sample string 1",
  "Ticket": "sample string 2",
  "name": "sample string 3",
  "phone": "sample string 4",
  "address": "sample string 5",
  "ZipCode": "sample string 6",
  "ZipCodeID": 7
}

text/html

Sample:
{"userId":"sample string 1","Ticket":"sample string 2","name":"sample string 3","phone":"sample string 4","address":"sample string 5","ZipCode":"sample string 6","ZipCodeID":7}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

新增常用收件人

RecipientBookAdd_Output
NameDescriptionTypeAdditional information
ticketVerified

驗證是否通過

boolean

None.

status

狀態(0:系統錯誤 1:修改成功)

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ticketVerified": true,
  "status": 2
}

text/html

Sample:
{"ticketVerified":true,"status":2}