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": "92dd1ae5-ffd0-4176-aeae-a2cb2f56cbfe",
  "CouponCode": "sample string 2",
  "DiscountPercentage": 3.0,
  "ExpirationDate": "2025-07-04T13:36:56.9770339+02:00",
  "RedeemTime": 5,
  "IsRedeemed": true,
  "Synced": true,
  "Updated": "2025-07-04T13:36:56.9770339+02: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.