POST api/Coupon/AddCoupon
Request Information
URI Parameters
None.
Body Parameters
CouponName | Description | Type | Additional information |
---|---|---|---|
id | string |
None. |
|
Type | string |
None. |
|
Code | string |
None. |
|
ExpirationDate | date |
None. |
|
Discount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": "sample string 1", "Type": "sample string 2", "Code": "sample string 3", "ExpirationDate": "2025-03-15T16:54:13.4766159+00:00", "Discount": 5 }
application/xml, text/xml
Sample:
<Coupon xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>sample string 1</Id> <Type>sample string 2</Type> <Code>sample string 3</Code> <ExpirationDate>2025-03-15T16:54:13.4766159+00:00</ExpirationDate> <Discount>5</Discount> </Coupon>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.