POST api/Coupon/AddCoupon
Request Information
URI Parameters
None.
Body Parameters
CouponName | Description | Type | Additional information |
---|---|---|---|
Coupon_Id | integer |
None. |
|
Code | string |
None. |
|
DiscountPercentage | integer |
None. |
|
Count | integer |
None. |
|
FromDate | string |
None. |
|
ToDate | string |
None. |
|
MinimumAmount | decimal number |
None. |
|
MaximumAmount | decimal number |
None. |
|
UserCount | string |
None. |
|
Status | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Coupon_Id": 1, "Code": "sample string 2", "DiscountPercentage": 3, "Count": 4, "FromDate": "sample string 5", "ToDate": "sample string 6", "MinimumAmount": 7.0, "MaximumAmount": 8.0, "UserCount": "sample string 9", "Status": "sample string 10" }
application/octet-stream
Sample:
{"$id":"1","Coupon_Id":1,"Code":"sample string 2","DiscountPercentage":3,"Count":4,"FromDate":"sample string 5","ToDate":"sample string 6","MinimumAmount":7.0,"MaximumAmount":8.0,"UserCount":"sample string 9","Status":"sample string 10"}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/octet-stream
Sample:
Sample not available.