创建奖励促销活动。
促销活动对进行购买的用户给予免费的奖励商品。 促销活动可以应用于项目中的任何购买或包含特定商品的购买。
required | Array of objects or null 要应用促销必须在购买项中包含的一组商品。如果此参数为 |
required | Array of objects or null |
required | object 促销活动名称。应包含键/值对,其中键是"^[a-z]{2}-[A-Z]{2}$"格式的区域设置,值是字符串。 |
Array of type = string (objects) or Array of type = date (objects) or Array of type = number (objects) | |
One of: [ 1 .. 100 ] items Array ([ 1 .. 100 ] items) | |
date_end | string or null <date-time> Default: "2020-04-15T18:16:00+05:00" 促销活动结束日期。可以是 |
date_start | string or null <date-time> Default: "2020-04-15T18:16:00+05:00" 促销活动开始日期。 |
excluded_promotions | Array of integers 应用此促销活动时要排除的促销活动ID列表。 |
id | integer 促销活动ID。项目内的唯一促销活动标识符。 |
object 促销活动限制。 | |
Array of objects or null 包含条件的对象数组,用于设置应用促销活动的价格范围。 | |
促销活动已成功创建。
基本认证未通过或错误。确保您使用了基本认证或正确的凭据。
无效的请求。
{- "attribute_conditions": [
- {
- "attribute": "account_status",
- "can_be_missing": false,
- "operator": "eq",
- "type": "string",
- "value": "golden"
}
], - "bonus": [
- {
- "quantity": 50000,
- "sku": "com.xsolla.mp_credits"
}
], - "condition": [
- {
- "sku": "com.xsolla.year_1_season_pass"
}
], - "date_end": "2020-04-25T18:16:00+05:00",
- "date_start": "2020-04-15T18:16:00+05:00",
- "name": {
- "de-DE": "Neujahrsbonus",
- "en-US": "New Year Bonus"
}
}
{- "promotion_id": 2384756
}