# 모든 프로모션 목록 가져오기 프로젝트의 프로모션 목록을 가져옵니다. 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) 아이템에 단위 유형이 있으면 해당 단위의 모든 아이템을 포함합니다. 대부분의 경우 사용자는 그 중 하나를 쿠폰 보너스로 선택해야 합니다. - `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.name` (string) 아이템 이름. Example: "Game name" - `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