POST api/UserMasters/UpdatePromoCode/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
PromoCodes| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PromoCode | string |
None. |
|
| PackId | integer |
None. |
|
| Expiry | date |
None. |
|
| Discount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"PromoCode": "sample string 2",
"PackId": 3,
"Expiry": "2025-12-23T04:00:07.4387318-08:00",
"Discount": 1.0
}
application/xml, text/xml
Sample:
<PromoCodes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpellingAPI"> <Discount>1</Discount> <Expiry>2025-12-23T04:00:07.4387318-08:00</Expiry> <Id>1</Id> <PackId>3</PackId> <PromoCode>sample string 2</PromoCode> </PromoCodes>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.