GET api/loyalty2/member/{memberId}/staticdiscountengine/discountrule
Provides the static discount (rule) of a member, given a member id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| memberId |
Id of the member. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A static discount (rule).
StaticDiscountRule| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
The Id of the static discount rule. |
integer |
None. |
| StaticDiscountEngineId |
The Id of the StaticDiscountEngine to which this discount rule belongs. |
integer |
None. |
| DiscountName |
The name of the static discount. |
string |
Max length: 50 |
| DiscountPercentage |
The percentaged value of the static discount. |
decimal number |
None. |
| ExpirationDate |
The expiration date of the static discount. Null if the static discount never expires. |
date |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"StaticDiscountEngineId": 2,
"DiscountName": "sample string 3",
"DiscountPercentage": 4.0,
"ExpirationDate": "2025-12-06T14:44:44.3753+01:00"
}
application/xml, text/xml
Sample:
<StaticDiscountRuleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <DiscountName>sample string 3</DiscountName> <DiscountPercentage>4</DiscountPercentage> <ExpirationDate>2025-12-06T14:44:44.3753+01:00</ExpirationDate> <Id>1</Id> <StaticDiscountEngineId>2</StaticDiscountEngineId> </StaticDiscountRuleViewModel>