# 報酬の設定 プロモーションの報酬を設定します。プロモーションが読み取り専用 (read_only = true) の場合、報酬を更新することはできません。 通知APIコールにproject_idパスパラメータが含まれていないため、会社の全プロジェクトで有効なAPIキーを使用して認可を設定する必要があります。 Endpoint: PUT /merchants/{merchant_id}/promotions/{promotion_id}/rewards Version: 2.0 Security: basicAuth ## Path parameters: - `merchant_id` (integer, required) マーチャントID。 - `promotion_id` (integer, required) プロモーションID。 ## Request fields (application/json): - `item` (object) 特定の仮想アイテムの報酬を設定します。 - `item.bonus` (array) ボーナスとして仮想アイテムが与えられます。 - `item.bonus.id` (integer) - `item.bonus.localized_name` (string) 既定の言語(英語)でプラン名を表示し、name.en値を複製します。 - `item.bonus.quantity` (integer) ボーナスとして与えられた仮想アイテムの数。 - `item.bonus.sku` (string) アイテムSKU。 - `item.discount` (array) 特定の仮想アイテムの割引。 - `item.discount.discount_percent` (number) 割引率。 - `item.discount.max_amount` (number) プロモーションを適用するアイテムの最大数。 - `package` (object) 仮想通貨パッケージの報酬を設定します。 - `package.bonus_amount` (number) 仮想通貨の絶対量として報酬を与える。 - `package.bonus_percent` (number) パッケージ金額のパーセンテージとして報酬を与える。 - `purchase` (object) 購入全体の報酬を設定します。 - `subscription` (object) サブスクリプションの報酬を設定します。 - `subscription.trial_days` (integer) 試用期間(日)。 ## Response 204 fields