Skip to main content
Documentation for version v74

Get trigger promotions list

Description

Returns a list of loyalty program trigger promotions. Pagination and filtering by active status are supported.

Request URL

Method: POST

https://example.com/api/v1.1/loyalty/trigger_promotions

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abc123def456"YesAPI token
loyalty_program_idint123YesLoyalty program ID
from_idint0NoPromotion ID for pagination (records with ID > from_id)
limitint20NoNumber of records (1–100), default 20
is_activebooleantrueNoActive status filter: true — active, false — inactive, omitted — all

Request example

{
"token": "abc123def456",
"loyalty_program_id": 123,
"limit": 20,
"is_active": true
}

Response example

{
"data": [
{
"id": 5,
"name": "Trigger promotion: Bonus for purchase",
"description": "Bonus accrual for each purchase",
"external_id": "trigger_promo_2023_q3",
"start_date": "2023-09-01T00:00:00Z",
"end_date": "2023-09-30T23:59:59Z",
"is_active": true,
"redeem_rules": [
{
"points_currency_iid": 1,
"points_currency_eid": "curr1",
"static_amount": "100.16",
"min_amount": "50",
"max_amount": "500"
}
],
"accrual_rules": [
{
"points_currency_iid": 1,
"points_currency_eid": "curr1",
"static_amount": "100",
"min_amount": "50",
"max_amount": "500"
}
]
}
],
"next_from_id": 8,
"total_count": 134,
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
idintUnique promotion ID
namestringPromotion name
descriptionstringPromotion description
external_idstringExternal promotion ID
start_datestring (RFC3339)Start date
end_datestring (RFC3339)End date
is_activebooleanActive flag
redeem_rulesarrayRedemption rules (points currency, values)
accrual_rulesarrayAccrual rules (points currency, values)
next_from_idintID for the next page
total_countintTotal number of promotions