POST api/LuckyDraw/MemberDraw

會員抽獎

Request Information

URI Parameters

None.

Body Parameters

MemberDraw_Input
NameDescriptionTypeAdditional information
userId

會員帳號

string

Required

Ticket

身份票據

string

Required

eventId

抽獎活動ID

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "userId": "sample string 1",
  "Ticket": "sample string 2",
  "eventId": "6dc91f67-d807-47bc-88a3-ef62fca1ab6a"
}

text/html

Sample:
{"userId":"sample string 1","Ticket":"sample string 2","eventId":"6dc91f67-d807-47bc-88a3-ef62fca1ab6a"}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

會員抽獎

MemberDraw_Output
NameDescriptionTypeAdditional information
ticketVerified

驗證是否通過

boolean

None.

statusCode

狀態碼 0:系統錯誤 1:中獎 2:沒有中獎 3:已達限制次數(總次數) 4 已達限制次數(會員次數)

integer

None.

prizeType

0 無中獎 1 折價卷 2 紅利

integer

None.

prize

獎項名稱

string

None.

CouponNo

折價卷序號

string

None.

Point

紅利點數

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ticketVerified": true,
  "statusCode": 2,
  "prizeType": 3,
  "prize": "sample string 4",
  "CouponNo": "sample string 5",
  "Point": 1
}

text/html

Sample:
{"ticketVerified":true,"statusCode":2,"prizeType":3,"prize":"sample string 4","CouponNo":"sample string 5","Point":1}