POST api/Promotion/UpdatePromotion
Request Information
URI Parameters
None.
Body Parameters
PromotionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PromotionId | integer |
None. |
|
| PromotionCode | string |
None. |
|
| FromDate | string |
None. |
|
| ToDate | string |
None. |
|
| PromotionType | integer |
None. |
|
| PromotionValue | decimal number |
None. |
|
| MaxAmount | decimal number |
None. |
|
| PurchaseType | integer |
None. |
|
| PurchaseValue | decimal number |
None. |
|
| Message | string |
None. |
|
| IsAllCustomers | boolean |
None. |
|
| Status | boolean |
None. |
|
| CreatedOn | string |
None. |
|
| CreatedBy | string |
None. |
|
| SelectedCustomers | Collection of string |
None. |
|
| SelectedApplications | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromotionId": 1,
"PromotionCode": "sample string 2",
"FromDate": "sample string 3",
"ToDate": "sample string 4",
"PromotionType": 5,
"PromotionValue": 6.0,
"MaxAmount": 7.0,
"PurchaseType": 8,
"PurchaseValue": 9.0,
"Message": "sample string 10",
"IsAllCustomers": true,
"Status": true,
"CreatedOn": "sample string 13",
"CreatedBy": "sample string 14",
"SelectedCustomers": [
"sample string 1",
"sample string 2"
],
"SelectedApplications": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<PromotionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EditPointService.Models">
<CreatedBy>sample string 14</CreatedBy>
<CreatedOn>sample string 13</CreatedOn>
<FromDate>sample string 3</FromDate>
<IsAllCustomers>true</IsAllCustomers>
<MaxAmount>7</MaxAmount>
<Message>sample string 10</Message>
<PromotionCode>sample string 2</PromotionCode>
<PromotionId>1</PromotionId>
<PromotionType>5</PromotionType>
<PromotionValue>6</PromotionValue>
<PurchaseType>8</PurchaseType>
<PurchaseValue>9</PurchaseValue>
<SelectedApplications xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</SelectedApplications>
<SelectedCustomers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</SelectedCustomers>
<Status>true</Status>
<ToDate>sample string 4</ToDate>
</PromotionModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |