POST api/Setting/PostCoupon

Request Information

URI Parameters

None.

Body Parameters

Coupon
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CouponCode

string

Max length: 50

DiscountPercentage

decimal number

None.

ExpirationDate

date

None.

RedeemTime

integer

None.

IsRedeemed

boolean

None.

Synced

boolean

None.

Updated

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "085d25f2-3e02-4d88-9ebc-91121be755dd",
  "CouponCode": "sample string 2",
  "DiscountPercentage": 3.0,
  "ExpirationDate": "2026-02-04T04:11:43.1882304+01:00",
  "RedeemTime": 5,
  "IsRedeemed": true,
  "Synced": true,
  "Updated": "2026-02-04T04:11:43.1882304+01:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.