--- title: "getProductDiscount" slug: "pub-billing-v2-product-discount-getproductdiscount" updated: 2026-11-24T09:24:15Z published: 2026-11-24T09:24:15Z canonical: "api.ncloud-docs.com/pub-billing-v2-product-discount-getproductdiscount" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # getProductDiscount 이 가이드는 API 명세를 기반으로 자동 생성했습니다. VPC 환경에서 이용 가능합니다. Ncloud API 표준 규격을 적용한 API입니다. 상품 할인 하나의 적용 조건과 적용 가능한 과금항목그룹을 조회합니다. - 조회 범위(본인·조직) 밖 회원의 할인은 존재 여부를 드러내지 않도록 `404 ResourceNotFound`를 반환합니다. 목록 조회는 요청한 조회 범위(`scope`·`memberNo` 조건) 자체를 거부하므로 `403 Forbidden`입니다. **권한** - 서브 계정으로 호출하려면 IAM action `View/getProductDiscounts` 권한이 필요합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET | /billing/v2/product-discounts/{discountNo} | ### 요청 헤더 Billing API에서 공통으로 사용하는 헤더에 대한 정보는 [Billing 요청 헤더](/docs/pub-billing-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 경로 파라미터 요청 경로 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `discountNo` | Integer (int64) | Required | 상품 할인 번호 - 범위: 1 ~ - <예시> 2091001 | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v2/product-discounts/2091001' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## 응답 응답 형식을 설명합니다. ### 응답 헤더 Billing API에서 공통으로 사용하는 헤더에 대한 정보는 [Billing 응답 헤더](/docs/pub-billing-v2-overview#%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `memberNo` | Integer (int64) | Required | 상품 할인을 보유한 회원 번호 - <예시> 2001234 | | `discountNo` | Integer (int64) | Required | 상품 할인 번호. 상품 할인은 적용월마다 따로 등록되므로 같은 조건의 할인이라도 달마다 번호가 다름 - <예시> 2091001 | | `productDiscountName` | String | Required | 상품 할인 이름 - <예시> Server 10% Discount (May-Jun 2026) | | `discountRate` | Number (double) | Required | 할인율(%) - <예시> 10.0 | | `conditional` | Boolean | Required | 조건부 할인 여부 - `true` \| `false` - `true`: 그룹 사용 금액이 `minimumTargetAmount` 이상일 때만 적용 - `false`: 조건 없이 적용 - <예시> true | | `minimumTargetAmount` | Number (double) \| null | Required | 조건부 할인 최소 대상 금액. 조건 없이 적용되는 할인(`conditional`이 `false`)이면 null - <예시> 100000.0 | | `maximumDiscountApplied` | Boolean | Required | 최대 할인 금액 상한 적용 여부 - `true` \| `false` - `true`: `maximumDiscountAmount`까지만 할인 - `false`: 상한 없음 - <예시> true | | `maximumDiscountAmount` | Number (double) \| null | Required | 최대 할인 금액. 상한이 없으면 null - <예시> 50000.0 | | `validityStartMonth` | String | Required | 유효 시작월. 상품 할인의 적용월로 `validityEndMonth`와 같음 - 패턴: `^\d{4}-(0[1-9]\\|1[0-2])$` - <예시> 2026-06 | | `validityEndMonth` | String | Required | 유효 종료월. 상품 할인의 적용월로 `validityStartMonth`와 같음 - 패턴: `^\d{4}-(0[1-9]\\|1[0-2])$` - <예시> 2026-06 | | `payCurrency` | String | Required | 결제 통화. ISO 4217 통화 코드 - `KRW` \| `USD` \| `JPY` - `KRW`: 한국 원 - `USD`: 미국 달러 - `JPY`: 일본 엔 - <예시> KRW | | `eligibleBillingItemGroups` | List<[EligibleBillingItemGroup](/docs/pub-billing-v2-type-eligiblebillingitemgroup)> | Required | 상품 할인을 적용할 수 있는 과금항목그룹 목록 - <예시> `[{"billingItemGroupCode": "SVR", "billingItemGroupName": "Server", "regionCode": "KR"}]` | ### 응답 상태 코드 호출에 실패하면 [기본 오류 응답](/docs/type-error-response) 형식의 응답 바디를 반환하며, 오류 코드는 `error.errorCode` 값입니다. 응답 상태 코드에 대한 설명은 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 400 | `InvalidParameter` | `The specified parameter is invalid.` | `discountNo` 형식이 올바르지 않은 경우 | | 403 | `AccessDenied` | `The request was denied by an access policy.` | 요청 회원이 파트너 고객 회원이고 파트너가 비용 정보 노출을 제한한 경우. 비용·사용량 API는 비공개(`DENY`)일 때, 할인 API는 비공개이거나 사용 금액만 공개(`VIEW_PRICE`)일 때 거부. IAM 정책으로는 해소되지 않으며 파트너에게 노출 설정을 요청 | | 403 | `Forbidden` | `You do not have sufficient permissions to perform this action.` | 서브 계정에 조회 권한이 없는 경우. `detail`에 거부된 IAM action이 담김. 권한 정책을 수정한 뒤 다시 요청 | | 404 | `ResourceNotFound` | `The specified resource could not be found.` | 경로에 지정한 자원이 존재하지 않거나 조회 범위(본인·조직) 밖 회원의 자원인 경우. 조회 권한이 없으면 존재 여부와 관계없이 `403` | 참고 Billing API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Billing 응답 상태 코드](/docs/pub-billing-v2-overview#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "memberNo": 2001234, "discountNo": 2091001, "productDiscountName": "Server 10% Discount (May-Jun 2026)", "discountRate": 10.0, "conditional": true, "minimumTargetAmount": 100000.0, "maximumDiscountApplied": true, "maximumDiscountAmount": 50000.0, "validityStartMonth": "2026-06", "validityEndMonth": "2026-06", "payCurrency": "KRW", "eligibleBillingItemGroups": [ { "billingItemGroupCode": "SVR", "billingItemGroupName": "Server", "regionCode": "KR" } ] } ```