PUT api/Coupon/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
CouponModelsName | Description | Type | Additional information |
---|---|---|---|
C_Coupon_Id | integer |
None. |
|
C_Coupon_Code | string |
Required Max length: 50 |
|
C_Coupon_Desc | string |
Required Max length: 500 |
|
C_Coupon_DiscountAmount | decimal number |
Required |
|
C_Coupon_DiscountPercentage | decimal number |
Required |
|
C_Coupon_DiscountFromDate | date |
Required |
|
C_Coupon_DiscountToDate | date |
Required |
|
C_Coupon_ValidFromDate | date |
Required |
|
C_Coupon_ValidToDate | date |
Required |
|
C_Coupon_image | string |
Required Max length: 500 |
|
IsImageUploaded | boolean |
Required |
|
C_UserId_FK | integer |
None. |
|
C_TS | date |
None. |
|
C_Inactive | character |
None. |
|
C_TS_LastEdited | date |
None. |
|
C_TS_Edited_Uid_FK | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "C_Coupon_Id": 1, "C_Coupon_Code": "sample string 2", "C_Coupon_Desc": "sample string 3", "C_Coupon_DiscountAmount": 4.0, "C_Coupon_DiscountPercentage": 5.0, "C_Coupon_DiscountFromDate": "2025-01-09T00:40:15.7569711+05:30", "C_Coupon_DiscountToDate": "2025-01-09T00:40:15.7569711+05:30", "C_Coupon_ValidFromDate": "2025-01-09T00:40:15.7569711+05:30", "C_Coupon_ValidToDate": "2025-01-09T00:40:15.7569711+05:30", "C_Coupon_image": "sample string 10", "IsImageUploaded": true, "C_UserId_FK": 12, "C_TS": "2025-01-09T00:40:15.7670137+05:30", "C_Inactive": "A", "C_TS_LastEdited": "2025-01-09T00:40:15.7670137+05:30", "C_TS_Edited_Uid_FK": 16 }
application/xml, text/xml
Sample:
<CouponModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models"> <C_Coupon_Code>sample string 2</C_Coupon_Code> <C_Coupon_Desc>sample string 3</C_Coupon_Desc> <C_Coupon_DiscountAmount>4</C_Coupon_DiscountAmount> <C_Coupon_DiscountFromDate>2025-01-09T00:40:15.7569711+05:30</C_Coupon_DiscountFromDate> <C_Coupon_DiscountPercentage>5</C_Coupon_DiscountPercentage> <C_Coupon_DiscountToDate>2025-01-09T00:40:15.7569711+05:30</C_Coupon_DiscountToDate> <C_Coupon_Id>1</C_Coupon_Id> <C_Coupon_ValidFromDate>2025-01-09T00:40:15.7569711+05:30</C_Coupon_ValidFromDate> <C_Coupon_ValidToDate>2025-01-09T00:40:15.7569711+05:30</C_Coupon_ValidToDate> <C_Coupon_image>sample string 10</C_Coupon_image> <C_Inactive>65</C_Inactive> <C_TS>2025-01-09T00:40:15.7670137+05:30</C_TS> <C_TS_Edited_Uid_FK>16</C_TS_Edited_Uid_FK> <C_TS_LastEdited>2025-01-09T00:40:15.7670137+05:30</C_TS_LastEdited> <C_UserId_FK>12</C_UserId_FK> <IsImageUploaded>true</IsImageUploaded> </CouponModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.