Skip to main content
Version: 5.7.0

SysReadPromotion

Returns the full configuration data of the specified promotion.

ServiceOperation
promotionsSYS_READ_PROMOTION

Method Parameters

ParameterDescription
promotionIdID uniquely identifying the promotion to read.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"promotion": {
"promotionId": 1,
"type": "SCHEDULED",
"name": "Independence Day Sale",
"message": {
"en": "Happy 4th of July!"
},
"enabled": false,
"segments": [],
"prices": [
{
"itemId": "coinbundle10",
"priceId": 0
}
],
"notifications": [
{
"trigger": "ACTIVATED",
"notificationTemplateId": 1
}
],
"customJson": {
"key": "value"
},
"startAt": 1593781259911,
"endAt": 1594126859911,
"createdAt": 1592543345470,
"updatedAt": 1592543345470,
"version": 1
}
},
"status": 200
}