POST api/Coupon/EditCoupon
Request Information
URI Parameters
None.
Body Parameters
EditCouponDtoName | Description | Type | Additional information |
---|---|---|---|
CouponID | integer |
Required |
|
MerchantName | string |
None. |
|
CouponName | string |
None. |
|
CouponDescription | string |
None. |
|
CouponShortDescription | string |
None. |
|
CouponLongDescription | string |
None. |
|
CouponImageID | Collection of integer |
None. |
|
CouponTypeID | integer |
Required |
|
CategoryId | integer |
None. |
|
CouponExpiryDate | date |
Required |
|
CouponStartDate | date |
Required |
|
CouponValue | decimal number |
Required |
|
CouponCode | string |
Required |
|
Rate | decimal number |
None. |
|
FlatAmount | decimal number |
None. |
|
RangeMin | decimal number |
None. |
|
RangeMax | decimal number |
None. |
|
ForEachAmount | decimal number |
None. |
|
LicenseNumber | string |
None. |
|
LicenseImageLocation | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "CouponID": 1, "MerchantName": "sample string 2", "CouponName": "sample string 3", "CouponDescription": "sample string 4", "CouponShortDescription": "sample string 5", "CouponLongDescription": "sample string 6", "CouponImageID": [ 1, 2 ], "CouponTypeID": 7, "CategoryId": 8, "CouponExpiryDate": "2025-06-15T08:04:52.0064113+03:00", "CouponStartDate": "2025-06-15T08:04:52.0064113+03:00", "CouponValue": 11.0, "CouponCode": "sample string 12", "Rate": 1.0, "FlatAmount": 1.0, "RangeMin": 1.0, "RangeMax": 1.0, "ForEachAmount": 1.0, "LicenseNumber": "sample string 13", "LicenseImageLocation": "sample string 14" }
application/xml, text/xml
Sample:
<EditCouponDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Features.CouponSystem.Models"> <CategoryId>8</CategoryId> <CouponCode>sample string 12</CouponCode> <CouponDescription>sample string 4</CouponDescription> <CouponExpiryDate>2025-06-15T08:04:52.0064113+03:00</CouponExpiryDate> <CouponID>1</CouponID> <CouponImageID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </CouponImageID> <CouponLongDescription>sample string 6</CouponLongDescription> <CouponName>sample string 3</CouponName> <CouponShortDescription>sample string 5</CouponShortDescription> <CouponStartDate>2025-06-15T08:04:52.0064113+03:00</CouponStartDate> <CouponTypeID>7</CouponTypeID> <CouponValue>11</CouponValue> <FlatAmount>1</FlatAmount> <ForEachAmount>1</ForEachAmount> <LicenseImageLocation>sample string 14</LicenseImageLocation> <LicenseNumber>sample string 13</LicenseNumber> <MerchantName>sample string 2</MerchantName> <RangeMax>1</RangeMax> <RangeMin>1</RangeMin> <Rate>1</Rate> </EditCouponDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ActionResponseName | Description | Type | Additional information |
---|---|---|---|
success | boolean |
None. |
|
code | string |
None. |
|
message | string |
None. |
|
errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "code": "sample string 2", "message": "sample string 3", "errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QatarPay.Models"> <code>sample string 2</code> <errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </errors> <message>sample string 3</message> <success>true</success> </ActionResponse>