GET api/loyalty2/engine/shop/{shopId}/levelrules/active/enginetype/{engineType}

Provides active level rule(s) for shop, given engine type identifier and shop id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
engineType

The engine type identifier.

integer

Required

shopId

The shop id.

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of LevelRule
NameDescriptionTypeAdditional information
Id

Id for this rule

integer

None.

LevelEngineId

Engine id for this rule

integer

None.

Name

Name for this rule

string

Max length: 100

StartPoints

Lower edge of points for rule

decimal number

None.

EndPoints

Upper edge of points for rule

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "LevelEngineId": 2,
    "Name": "sample string 3",
    "StartPoints": 4.0,
    "EndPoints": 1.0
  },
  {
    "Id": 1,
    "LevelEngineId": 2,
    "Name": "sample string 3",
    "StartPoints": 4.0,
    "EndPoints": 1.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfLevelRuleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <LevelRuleViewModel>
    <EndPoints>1</EndPoints>
    <Id>1</Id>
    <LevelEngineId>2</LevelEngineId>
    <Name>sample string 3</Name>
    <StartPoints>4</StartPoints>
  </LevelRuleViewModel>
  <LevelRuleViewModel>
    <EndPoints>1</EndPoints>
    <Id>1</Id>
    <LevelEngineId>2</LevelEngineId>
    <Name>sample string 3</Name>
    <StartPoints>4</StartPoints>
  </LevelRuleViewModel>
</ArrayOfLevelRuleViewModel>