プロモーションを更新します。
プロモーションは、ユーザーによる購入に無料のボーナスアイテムを追加します。 プロモーションは、プロジェクト内のすべての購入、または特定のアイテムを含む購入に適用することができます。
required | Array of objects or null プロモーションを適用するために、購入に含める必要があるアイテムのセット。このパラメータが | ||||||||||||||||||||||||
required | Array of objects or null | ||||||||||||||||||||||||
required | object プロモーション名。キーと値のペアを含む必要があります。キーは"^[a-z]{2}-[A-Z]{2}$"フォーマットのロケール、値は文字列です。 | ||||||||||||||||||||||||
Array of type = string (object) or type = number (object) or type = date (object) [ 1 .. 100 ] items ユーザー属性を検証するための条件。 ユーザー属性が指定されたすべての条件に一致するかどうかに基づいて、プロモーションの可用性を決定します。 | |||||||||||||||||||||||||
Array ([ 1 .. 100 ] items) One of: | |||||||||||||||||||||||||
| excluded_promotions | Array of integers このプロモーションを適用する際に除外するプロモーションIDのリスト。 | ||||||||||||||||||||||||
| id | integer プロモーションID。プロジェクト内での一意のプロモーション識別子。 | ||||||||||||||||||||||||
| is_enabled | boolean プロモーションが有効かどうか。 | ||||||||||||||||||||||||
object プロモーションの制限。 | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Array of objects or null プロモーションを適用する価格帯を設定する条件を持つオブジェクトの配列。 | |||||||||||||||||||||||||
Array of objects プロモーションの有効期間。複数の期間を指定する場合は、 | |||||||||||||||||||||||||
プロモーションは正常に更新されました。
基本認証が不合格または不正です。基本認証または正しい認証情報を使用したことを確認してください。
無効なリクエストです。
{- "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"
}
], - "name": {
- "de-DE": "Neujahrsbonus",
- "en-US": "New Year Bonus"
}, - "promotion_periods": [
- {
- "date_from": "2020-04-15T18:16:00+05:00",
- "date_until": "2020-04-25T18:16:00+05:00"
}
]
}{- "errorCode": 1020,
- "errorMessage": "[0401-1020]: Error in Authentication method occurred",
- "statusCode": 401
}