POST api/v1/clublevels/{code}/config/memberdiscounts
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
Required |
Body Parameters
MembersDiscountConfig| Name | Description | Type | Additional information |
|---|---|---|---|
| IsActiveMemberDiscount | boolean |
None. |
|
| MembersDiscount | Collection of MembersDiscountDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"membersDiscount": [
{
"id": "1221506d-f819-4cd5-b849-ca7cfbe864fe",
"clubLevelCode": "sample string 1",
"lowerRange": 2,
"upperRange": 3,
"discount": 4.1,
"order": 5
},
{
"id": "1221506d-f819-4cd5-b849-ca7cfbe864fe",
"clubLevelCode": "sample string 1",
"lowerRange": 2,
"upperRange": 3,
"discount": 4.1,
"order": 5
}
],
"isActiveMemberDiscount": true
}
application/xml, text/xml
Sample:
<MembersDiscountConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos">
<IsActiveMemberDiscount>true</IsActiveMemberDiscount>
<MembersDiscount>
<MembersDiscountDto>
<ClubLevelCode>sample string 1</ClubLevelCode>
<Discount>4.1</Discount>
<Id>1221506d-f819-4cd5-b849-ca7cfbe864fe</Id>
<LowerRange>2</LowerRange>
<Order>5</Order>
<UpperRange>3</UpperRange>
</MembersDiscountDto>
<MembersDiscountDto>
<ClubLevelCode>sample string 1</ClubLevelCode>
<Discount>4.1</Discount>
<Id>1221506d-f819-4cd5-b849-ca7cfbe864fe</Id>
<LowerRange>2</LowerRange>
<Order>5</Order>
<UpperRange>3</UpperRange>
</MembersDiscountDto>
</MembersDiscount>
</MembersDiscountConfig>
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.