POST api/Coupons/AddCoupon?businessId={businessId}&couponType={couponType}&text={text}&iconId={iconId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
businessId

integer

Required

couponType

integer

Default value is 1

text

string

Default value is

iconId

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

CouponDetails
NameDescriptionTypeAdditional information
CouponId

integer

None.

Text

string

None.

IconId

integer

None.

IconUrl

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CouponId": 1,
  "Text": "sample string 2",
  "IconId": 3,
  "IconUrl": "sample string 4"
}

application/xml, text/xml

Sample:
<CouponDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <CouponId>1</CouponId>
  <IconId>3</IconId>
  <IconUrl>sample string 4</IconUrl>
  <Text>sample string 2</Text>
</CouponDetails>