GET api/loyalty2/engine/shop/{shopId}/staticdiscountengine/discountrules

Provides all static discount rules of a club, by a shop. The club to which the shop belongs, needs to have a StaticDiscountEngine assigned!

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopId

The id of the shop, for which the club's static discount rules shall be get.

integer

Required

Body Parameters

None.

Response Information

Resource Description

All static discount rules of a club.

Collection of 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:48:57.6408971+02:00"
  },
  {
    "Id": 1,
    "StaticDiscountEngineId": 2,
    "DiscountName": "sample string 3",
    "DiscountPercentage": 4.0,
    "ExpirationDate": "2025-05-04T06:48:57.6408971+02:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStaticDiscountRuleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <StaticDiscountRuleViewModel>
    <DiscountName>sample string 3</DiscountName>
    <DiscountPercentage>4</DiscountPercentage>
    <ExpirationDate>2025-05-04T06:48:57.6408971+02:00</ExpirationDate>
    <Id>1</Id>
    <StaticDiscountEngineId>2</StaticDiscountEngineId>
  </StaticDiscountRuleViewModel>
  <StaticDiscountRuleViewModel>
    <DiscountName>sample string 3</DiscountName>
    <DiscountPercentage>4</DiscountPercentage>
    <ExpirationDate>2025-05-04T06:48:57.6408971+02:00</ExpirationDate>
    <Id>1</Id>
    <StaticDiscountEngineId>2</StaticDiscountEngineId>
  </StaticDiscountRuleViewModel>
</ArrayOfStaticDiscountRuleViewModel>