PUT api/loyalty2/member/{memberId}/staticdiscountengine/discountrule
Saves a static discount rule on a member. One of the club's static discount rules can be used as an argument to this call.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
memberId |
Id of the member. |
integer |
Required |
Body Parameters
The static discount rule to set on the member, based on a static discount rule of the Club.
MemberStaticDiscountRuleName | Description | Type | Additional information |
---|---|---|---|
Id |
The Id of the static discount rule. |
integer |
Required Range: inclusive between 1 and 2147483647 |
StaticDiscountEngineId |
The Id of the StaticDiscountEngine to which the discount belongs. |
integer |
Required Range: inclusive between 1 and 2147483647 |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "StaticDiscountEngineId": 2 }
application/xml, text/xml
Sample:
<MemberStaticDiscountRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <Id>1</Id> <StaticDiscountEngineId>2</StaticDiscountEngineId> </MemberStaticDiscountRule>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.