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": "dcf72943-2782-4757-b7fb-9682e123367d",
  "CouponCode": "sample string 2",
  "DiscountPercentage": 3.0,
  "ExpirationDate": "2024-05-16T17:42:58.687314+02:00",
  "RedeemTime": 5,
  "IsRedeemed": true,
  "Synced": true,
  "Updated": "2024-05-16T17:42:58.6883115+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.