POST api/Gift/Exchange

兑换礼品

Request Information

URI Parameters

None.

Body Parameters

GiftExchangeParamModel
NameDescriptionTypeAdditional information
productid

礼品商品id

integer

None.

useraddressid

用户地址id

integer

None.

treasurecoindetailid

礼品卡id(赠送) 支付时进行抵扣(不能叠加使用)

integer

None.

cardnumber

手机号码或加油卡号

string

None.

Request Formats

application/json, text/json

Sample:
{
  "productid": 1,
  "useraddressid": 2,
  "treasurecoindetailid": 3,
  "cardnumber": "sample string 4"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

兑换礼品

ApiResultGiftExchangeModel
NameDescriptionTypeAdditional information
code

0:正确 100:错误 403:需要重新登录

integer

None.

msg

string

None.

submsg

输出的错误信息

string

None.

isinvitation

登陆时候是否需要弹窗填些邀请码 1:需要

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2",
  "submsg": "sample string 3",
  "isinvitation": 4
}