# アイテムプロモーションのリストを取得 プロジェクトのアイテムプロモーションのリストを取得します。 プロモーションは、アイテムの割引(%)を提供します。 指定したアイテムの全価格に割引が適用されます。 Endpoint: GET /v3/project/{project_id}/admin/promotion/item Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) プロジェクトID。 ## Query parameters: - `limit` (integer) ページでの要素数の制限。 - `offset` (integer) リストが生成される要素番号(カウントは0から始まります)。 ## Response 200 fields (application/json): - `active_promotions_count` (integer) アクティブなプロモーションの数。 - `inactive_promotions_count` (integer) 非アクティブ化されたプロモーションの数。 - `promotions` (array) - `promotions.attribute_conditions` (array) ユーザー属性を検証するための条件。 ユーザー属性が指定されたすべての条件に一致するかどうかに基づいて、プロモーションの可用性を決定します。 - `promotions.discount` (object) - `promotions.discount.percent` (string,null) パーセントの割引 このパーセントで計算された値で、アイテムの価格が下がります。 - `promotions.excluded_promotions` (array) このプロモーションを適用する際に除外するプロモーションIDのリスト。Example:[12, 789] Example: [12,789] - `promotions.id` (integer) プロモーションID。プロジェクト内での一意のプロモーション識別子。 - `promotions.is_enabled` (boolean) プロモーションが有効かどうか。 Example: true - `promotions.items` (array,null) - `promotions.items.sku` (string,null) アイテムSKU。 - `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: {"en-US":"Promotion","ru-RU":"Акция"} - `promotions.price_conditions` (array,null) プロモーションを適用する価格帯を設定する条件を持つオブジェクトの配列。 プロモーションは、価格が配列内のすべての条件を満たすアイテムにのみ適用されます。この配列を渡す場合は、[アイテム](/ja/api/shop-builder/operation/create-item-promotion/#!path=items&t=request)オブジェクトの値をnullに設定します。 - `promotions.price_conditions.operator` (string, required) プロモーションを適用する価格帯を設定する比較演算子。 Enum: "ge", "gt", "le", "lt", "eq", "ne" - `promotions.price_conditions.value` (string, required) プロモーションを適用する価格帯を決定するための値。 - `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" - `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