POST api/v1/clublevels/{code}/config/memberdiscounts

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

Body Parameters

MembersDiscountConfig
NameDescriptionTypeAdditional information
IsActiveMemberDiscount

boolean

None.

MembersDiscount

Collection of MembersDiscountDto

None.

Request Formats

application/json, text/json

Sample:
{
  "membersDiscount": [
    {
      "id": "4ff6142a-b80b-4655-8b0c-767b610c7e53",
      "clubLevelCode": "sample string 1",
      "lowerRange": 2,
      "upperRange": 3,
      "discount": 4.1,
      "order": 5
    },
    {
      "id": "4ff6142a-b80b-4655-8b0c-767b610c7e53",
      "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>4ff6142a-b80b-4655-8b0c-767b610c7e53</Id>
      <LowerRange>2</LowerRange>
      <Order>5</Order>
      <UpperRange>3</UpperRange>
    </MembersDiscountDto>
    <MembersDiscountDto>
      <ClubLevelCode>sample string 1</ClubLevelCode>
      <Discount>4.1</Discount>
      <Id>4ff6142a-b80b-4655-8b0c-767b610c7e53</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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.