# 프로모션 코드 프로모션 가져오기 지정된 프로모션 코드 프로모션을 가져옵니다. Endpoint: GET /v3/project/{project_id}/admin/promocode/{external_id} Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 프로젝트 ID입니다. 이 매개 변수는 관리자 페이지의 프로젝트 이름 옆에서 확인할 수 있습니다. Example: 44056 - `external_id` (integer, required) 프로모션 외부 ID입니다. 프로젝트 내부의 고유 프로모션 식별자입니다. Example: "coupon_44056_1" ## Response 200 fields (application/json): - `attribute_conditions` (array) 사용자 특성 검증 조건. 사용자 특성이 지정된 모든 조건과 일치하는지 여부에 따라 프로모션의 가용성을 결정합니다. - `bonus` (array,null) - `bonus.quantity` (number) 아이템 수량입니다. - `bonus.sku` (string) 아이템 SKU입니다. - `discount` (object,null) Example: {"discount":{"percent":"10.99"}} - `discount.percent` (string,null) 퍼센트 할인입니다. 이 퍼센트를 사용하여 계산한 값을 사용하여 장바구니 항목의 가격을 낮추어 계산한 다음 소수점 이하 2자리로 반올림합니다. Example: "10.00" - `discounted_items` (array,null) 프로모션 코드로 할인한 아이템의 목록입니다. - `excluded_promotions` (array) 이 프로모션을 적용할 때 제외할 프로모션 ID 목록입니다. Example: [12, 789] Example: [12,789] - `external_id` (string) 고유 프로모션 ID입니다. external_id는 소문자 및 대문자 라틴 영숫자, 마침표, 대시 및 밑줄만 포함할 수 있습니다. Example: "coupon_external_id" - `is_enabled` (boolean) - `item_price_conditions` (array,null) 장바구니의 특정 아이템에 프로모션을 적용하기 위한 가격 범위를 설정하는 조건을 가진 개체 배열입니다. 사용자 장바구니에 있는 각 아이템의 가격은 조건에 지정된 가격 범위와 비교됩니다.[보너스](/ko/api/shop-builder/operation/create-promo-code/#!path=bonus&t=request) 및 [할인](/ko/api/shop-builder/operation/create-promo-code/#!path=discount&t=request)은 가격이 조건을 충족하는 장바구니에 있는 아이템에만 적용됩니다. 이 배열을 전달하면 [discounted_items](/ko/api/shop-builder/operation/create-promo-code/#!path=discounted_items&t=request) 배열의 값이 null로 설정됩니다. - `item_price_conditions.operator` (string, required) 프로모션을 적용하기 위한 가격 범위를 설정하기 위한 비교 연산자입니다. Enum: "ge", "gt", "le", "lt", "eq", "ne" - `item_price_conditions.value` (string, required) 프로모션을 적용하기 위한 가격 범위를 결정하기 위한 값입니다. - `name` (object) 프로모션의 이름입니다. 키가 "^[a-z]{2}-[A-Z]{2}$" 형식의 로케일인 키/값 쌍을 포함해야 하며 값은 문자열입니다. Example: {"de-DE":"Gutscheintitel","en-US":"Coupon title"} - `price_conditions` (array,null) 프로모션을 전체 카트에 적용하기 위한 가격 범위를 설정하는 조건을 가진 개체 배열입니다. 사용자 장바구니에 있는 모든 아이템의 총 가격을 조건에 지정된 가격 범위와 비교합니다.[보너스](/ko/api/shop-builder/operation/create-promo-code/#!path=bonus&t=request) 및 [할인](/ko/api/shop-builder/operation/create-promo-code/#!path=discount&t=request)은 장바구니의 가격이 지정된 조건을 충족할 경우 장바구니의 모든 아이템에 적용됩니다. 이 배열을 전달할 경우 [discounted_items](/ko/api/shop-builder/operation/create-promo-code/#!path=discounted_items&t=request) 배열의 값이 null로 설정됩니다. - `promotion_periods` (array) 프로모션의 유효 기간. 기간이 여러 개 지정된 경우 date_from와 date_until가 모두 필요합니다. - `promotion_periods.date_from` (string, required) 지정된 프로모션의 시작 날짜. Example: "2020-08-11T10:00:00+03:00" - `promotion_periods.date_until` (string,null) 지정된 프로모션의 종료 날짜. null로 설정된 경우 프로모션은 무기한입니다. 단일 유효 기간이 지정된 경우에만 null로 설정할 수 있습니다. Example: "2020-08-11T20:00:00+03:00" - `redeem_code_limit` (integer,null) 코드당 사용 횟수입니다. Example: 10 - `redeem_total_limit` (integer,null) 총 쿠폰 수를 제한합니다. Example: 10 - `redeem_user_limit` (integer,null) 단일 사용자가 사용한 총 쿠폰 수를 제한합니다. Example: 10 - `total_limit_state` (object,null) 각 고유 프로모션 코드별 사용 제한입니다. - `total_limit_state.available` (integer) 프로모션 코드를 사용할 수 있는 남은 횟수입니다. Example: 3 - `total_limit_state.reserved` (integer) 프로모션 코드가 예약된 횟수입니다. Example: 3 - `total_limit_state.used` (integer) 프로모션 코드가 사용된 횟수입니다. Example: 5 ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 404 fields (application/json): - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-9802]: Promocode not found" - `statusCode` (integer) Example: 404 - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x"