# すべてのプロモーションリストを取得 プロジェクトのプロモーションリストを取得します。 Endpoint: GET /v3/project/{project_id}/admin/promotion Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) プロジェクトID。このパラメータは、パブリッシャーアカウントのプロジェクト名の横にあります。 Example: 44056 ## Query parameters: - `limit` (integer) ページでの要素数の制限。 Example: 50 - `offset` (integer) リストが生成される要素番号(カウントは0から始まります)。 - `enabled` (integer) is_enabledフラグで要素を絞り込みます。 ## Response 200 fields (application/json): - `active_promotions_count` (integer) アクティブなプロモーションの数。 - `inactive_promotions_count` (integer) 非アクティブ化されたプロモーションの数。 - `promotions` (array) - `promotions.bonus` (array) - `promotions.bonus.item` (object) - `promotions.bonus.item.bundle_type` (string) バンドルタイプ。アイテムタイプがバンドルの場合に返されます。 Enum: "standard", "virtual_currency_package" - `promotions.bonus.item.content` (array) - `promotions.bonus.item.description` (string,null) アイテム説明。 Example: "Game description" - `promotions.bonus.item.image_url` (string,null) 画像URL。 Example: "https://cdn.xsolla.net/img/misc/images/b79342cdf24f0f8557b63c87e8326e62.png" - `promotions.bonus.item.name` (object) アイテム名。 Example: {"en":"Game name"} - `promotions.bonus.item.sku` (string) 一意のアイテムID。SKUには、小文字と大文字のラテン英数字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。 Example: "game_01" - `promotions.bonus.item.type` (string) アイテムタイプ:virtual_good/virtual_currency/bundle/physical_good/unit。 Example: "unit" - `promotions.bonus.item.unit_items` (array) アイテムにユニットタイプがある場合は、ユニット内のすべてのアイテムが含まれます。ほとんどの場合、ユーザーはそのうちの1つをクーポンボーナスとして選択する必要があります。 - `promotions.bonus.item.unit_items.drm_name` (string) DRM名。 Example: "Steam" - `promotions.bonus.item.unit_items.drm_sku` (string) 一意のDRM ID。SKUには、小文字と大文字のラテン英数字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。 Example: "steam" - `promotions.bonus.item.unit_items.is_free` (boolean) - `promotions.bonus.item.unit_items.type` (string) アイテムタイプ:game_key。 Example: "game_key" - `promotions.bonus.quantity` (number) アイテム数量。 - `promotions.condition` (array,null) - `promotions.discount` (object,null) Example: {"discount":{"percent":"10.99"}} - `promotions.discount.percent` (string,null) 割引率。 カートの価格は、この割引率で計算された値で減少し、小数点以下2桁に四捨五入されます。 Example: "10.00" - `promotions.id` (integer) プロモーションID。プロジェクト内での一意のプロモーション識別子。 Example: 1 - `promotions.is_enabled` (boolean) - `promotions.limits` (object) プロモーションの制限。 - `promotions.limits.per_item` (integer,null) グローバルアイテム制限。 Example: 10 - `promotions.limits.per_user` (object,null) 別ユーザーでのプロモーション制限。 - `promotions.limits.per_user.total` (integer) ユーザーが購入できるアイテムの総数。この数値はパブリッシャーアカウントで設定するか、ストアエンティティ(制限オブジェクト)の管理者エンドポイントを使用して設定することができます。 Example: 5 - `promotions.limits.recurrent_schedule` (object,null) 制限更新期間。 - `promotions.limits.recurrent_schedule.per_user` (object) ユーザー制限更新期間。 - `promotions.limits.recurrent_schedule.per_user.day_of_month` (integer,null) 制限が更新される月の日。月の残り時間が短いために選択された日がない場合、更新はその月の最終日に行われます。monthly制限更新期間タイプはnullのみではありません。 - `promotions.limits.recurrent_schedule.per_user.day_of_week` (integer,null) 制限が更新される曜日。1は月曜日、7は日曜日です。weekly制限更新期間タイプはnullのみではありません。 - `promotions.limits.recurrent_schedule.per_user.displayable_reset_next_date` (string) 制限をリセットする日時(ISO 8601)。 Example: "2023-02-28T11:00:00+08:00" - `promotions.limits.recurrent_schedule.per_user.displayable_reset_start_date` (string) 最初の制限更新の日時(ISO 8601)。 Example: "2023-02-28T11:00:00+08:00" - `promotions.limits.recurrent_schedule.per_user.interval_type` (string) 定期更新期間のタイプ。 Enum: "daily", "weekly", "monthly" - `promotions.limits.recurrent_schedule.per_user.reset_next_date` (integer) 制限が更新された日時(UNIXタイムスタンプ)。 Example: 1677553200 - `promotions.limits.recurrent_schedule.per_user.time` (string) 希望するタイムゾーンでのリミットの更新時刻(時間単位で四捨五入)。 Example: "11:00:00+03:00" - `promotions.name` (object) プロモーションの名前。キーと値のペアを含む必要があります。 キーは"^[a-z]{2}-[A-Z]{2}$"形式のロケール、値は文字列です。 Example: {"de-DE":"Gutscheintitel","en-US":"Coupon title"} - `promotions.promotion_periods` (array) プロモーションの有効期間。複数の期間を指定する場合は、date_fromとdate_untilの両方が必須となります。 - `promotions.promotion_periods.date_from` (string, required) 指定されたプロモーションの開始日。 Example: "2020-08-11T10:00:00+03:00" - `promotions.promotion_periods.date_until` (string,null) 指定されたプロモーションの終了日。nullに設定した場合、プロモーションは無期限となります。単一の有効期間のみが指定されている場合に限り、nullに設定可能です。 Example: "2020-08-11T20:00:00+03:00" - `promotions.type` (string) プロモーションタイプ。 Example: "item_discount" - `total_promotions_count` (integer) プロモーションの合計数。 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401