Skip to content

Get a List of Chain Loyalty Transactions

Request

Security
BearerPartnerUser
Path
chain_idintegerrequired

Chain ID

Query
created_afterstring, (date)required

Sample start date in Y-m-d format

created_beforestring, (date)required

Sample end date in Y-m-d format

typesArray of strings

Types of loyalty transactions included in the selection: 1 - Promotion discount, 2 - Loyalty program accrual, 3 - Loyalty card withdrawal, 4 - Referral program accrual, 5 - Manual replenishment, 6 - Manual withdrawal, 7 - Overdue points withdrawal , 8 - Withdrawal from the gift card, 9 - Use of the membership, 10 - Recalculation of the cost of the membership, 11 - Withdrawal from the client account

Items Enum:"1""2""3""4""5""6""7""8""9""10"
location_idsArray of integers

Location IDs to include in the loyalty transaction sample

visit_idsArray of integers

Loyalty transaction visit IDs included in the sample

pageinteger

Selection page

countinteger

Number of results per selection page

Headers
Acceptstringrequired

application/vnd.api.v2+json

Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chains/{chain_id}/loyalty/transactions?created_after=2019-08-24&created_before=2019-08-24&types=1&location_ids=0&visit_ids=0&page=0&count=0' \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

dataArray of objects

Array of objects with data

metaobject

Metadata (contains the number of items in the response)

Response
{ "success": true, "data": [ { … } ], "meta": { "count": 0 } }