POST api/Setting/PostCoupon
Request Information
URI Parameters
None.
Body Parameters
CouponName | Description | Type | Additional 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": "64330db4-3ada-4033-a03f-52add7fdf1f2", "CouponCode": "sample string 2", "DiscountPercentage": 3.0, "ExpirationDate": "2025-04-04T05:15:59.0230412+02:00", "RedeemTime": 5, "IsRedeemed": true, "Synced": true, "Updated": "2025-04-04T05:15:59.0230412+02:00" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.