GET api/loyalty2/engine/levelengine/money/transactionlineids

Provides the used/returned "bonus money" for each provided transaction line id. This method only applies on "LevelEngines" (DiscountLevelEngine, BonusLevelEngine..). Give loyalty transaction line id(s) in body.

Request Information

URI Parameters

None.

Body Parameters

The transaction line id(s).

Collection of integer

Request Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <long>1</long>
  <long>2</long>
</ArrayOflong>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IEnumerable`1'.

Response Information

Resource Description

Collection of PublicAPI.Models.TransactionMoneyViewModel
NameDescriptionTypeAdditional information
Id

Id for this discount level

integer

None.

MoneyUsed

Id for engine

integer

None.

TransactionLineId

Number of valid days for bonus

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "MoneyUsed": 2,
    "TransactionLineId": 3
  },
  {
    "Id": 1,
    "MoneyUsed": 2,
    "TransactionLineId": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfTransactionMoneyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <TransactionMoneyViewModel>
    <Id>1</Id>
    <MoneyUsed>2</MoneyUsed>
    <TransactionLineId>3</TransactionLineId>
  </TransactionMoneyViewModel>
  <TransactionMoneyViewModel>
    <Id>1</Id>
    <MoneyUsed>2</MoneyUsed>
    <TransactionLineId>3</TransactionLineId>
  </TransactionMoneyViewModel>
</ArrayOfTransactionMoneyViewModel>