ボーナスプロモーションを作成します。
プロモーションは、ユーザーによる購入に無料のボーナスアイテムを追加します。 プロモーションは、プロジェクト内のすべての購入、または特定のアイテムを含む購入に適用することができます。
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
}