Skip to main content
Version: 5.7.0

SysCreatePromotion

Creates a new promotion. The full promotion JSON (minus the promotionId) should be provided. The full promotion JSON, including the created promotionId, will be returned as a result (similar to SysReadPromotion()).

ServiceOperation
promotionsSYS_CREATE_PROMOTION

Method Parameters

ParameterDescription
promotionJsonThe full promotion JSON (minus the promotionId).

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"gameId": "23783",
"promotionId": 3,
"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": 1592544049481,
"updatedAt": 1592544049481,
"version": 1
},
"status": 200
}