GET api/loyalty2/member/{memberId}/staticdiscountengine/discountrule

Provides the static discount (rule) of a member, given a member id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
memberId

Id of the member.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A static discount (rule).

StaticDiscountRule
NameDescriptionTypeAdditional 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-05-04T06:50:20.7504413+02: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-05-04T06:50:20.7504413+02:00</ExpirationDate>
  <Id>1</Id>
  <StaticDiscountEngineId>2</StaticDiscountEngineId>
</StaticDiscountRuleViewModel>