--- title: "listBillingItemCodes" slug: "pub-billing-v2-item-code-listbillingitemcodes" updated: 2026-11-24T09:24:15Z published: 2026-11-24T09:24:15Z canonical: "api.ncloud-docs.com/pub-billing-v2-item-code-listbillingitemcodes" --- > ## 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. # listBillingItemCodes 이 가이드는 API 명세를 기반으로 AI가 자동 생성했습니다. VPC 환경에서 이용 가능합니다. Ncloud 표준 표현을 적용한 API입니다. 서비스 → 과금항목그룹 → 과금항목 계층의 코드와 표시명을 조회합니다. - 페이지네이션 없이 전체 계층을 한 번에 반환합니다. - `serviceCode`나 `billingItemGroupCode`를 지정하면 해당 계층의 하위만 반환합니다. - 지정한 코드가 존재하지 않으면 빈 배열을 반환합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET | /common/billing-item-codes | ### 요청 헤더 Billing API에서 공통으로 사용하는 헤더에 대한 정보는 [Billing 요청 헤더](/docs/pub-billing-v2-overview#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 쿼리 파라미터 요청 쿼리 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `serviceCode` | List | Optional | 서비스 코드. 지정하면 해당 서비스의 하위 계층만 반환. 여러 번 지정하면 하나라도 일치하는 항목을 반환 - 항목 수: 1 ~ - <예시> `["VSVR"]` - 항목 길이: 1 ~ | | `billingItemGroupCode` | List | Optional | 과금항목그룹 코드. 지정하면 해당 과금항목그룹의 하위 계층만 반환. 여러 번 지정하면 하나라도 일치하는 항목을 반환 - 항목 수: 1 ~ - <예시> `["VSVR"]` - 항목 길이: 1 ~ | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v2/common/billing-item-codes' \ --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)를 참조해 주십시오. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `billingItemCodes` | List<[Service](/docs/pub-billing-v2-item-code-listbillingitemcodes#Service)> | - | 서비스 목록. 페이지네이션 없이 전체 계층을 한 번에 반환 - <예시> `[{"categoryCode": "COMPUTE", "categoryName": "Compute", "serviceCode": "VSVR", "serviceName": "Server (VPC)", "billingItemGroups": [{"billingItemGroupCode": "VSVR", "billingItemGroupName": "Server (VPC)", "billingItems": [{"billingItemCode": "VSVR-VSVR", "billingItemName": "서버 기본 요금", "aggregated": false}]}]}]` | #### Service 서비스와 그 하위 과금항목그룹 | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `categoryCode` | String | - | 상품 카테고리 코드 - <예시> COMPUTE | | `categoryName` | String | - | `categoryCode`의 표시명 - <예시> Compute | | `serviceCode` | String | - | 서비스 코드. 다른 API의 `serviceCode` 파라미터 값 - <예시> VSVR | | `serviceName` | String | - | `serviceCode`의 표시명 - <예시> Server (VPC) | | `billingItemGroups` | List<[BillingItemGroup](/docs/pub-billing-v2-item-code-listbillingitemcodes#BillingItemGroup)> | - | 과금항목그룹 목록 - <예시> `[{"billingItemGroupCode": "VSVR", "billingItemGroupName": "Server (VPC)", "billingItems": [{"billingItemCode": "VSVR-VSVR", "billingItemName": "서버 기본 요금", "aggregated": false}]}]` | #### BillingItemGroup 과금항목그룹과 그 하위 과금항목 | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `billingItemGroupCode` | String | - | 과금항목그룹 코드. 다른 API의 `billingItemGroupCode` 파라미터 값 - <예시> VSVR | | `billingItemGroupName` | String | - | `billingItemGroupCode`의 표시명 - <예시> Server (VPC) | | `billingItems` | List<[BillingItem](/docs/pub-billing-v2-item-code-listbillingitemcodes#BillingItem)> | - | 과금항목 목록 - <예시> `[{"billingItemCode": "VSVR-VSVR", "billingItemName": "서버 기본 요금", "aggregated": false}]` | #### BillingItem 과금항목 | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `billingItemCode` | String | - | 과금항목 코드. 다른 API의 `billingItemCode` 파라미터 값 - <예시> VSVR-VSVR | | `billingItemName` | String | - | `billingItemCode`의 표시명 - <예시> 서버 기본 요금 | | `aggregated` | Boolean | - | 여러 리소스를 하나의 비용 행으로 합산하는 과금항목인지 여부 - `true` \| `false` - `true`: 합산. 이때 비용 행의 `resourceId`는 null - `false`: 리소스별로 비용 행 생성 - <예시> false | ### 응답 상태 코드 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)를 참조해 주십시오. 이 API에만 해당하는 응답 상태 코드는 다음과 같습니다. | HTTP 상태 코드 | 코드 | 메시지 | 설명 | | --- | --- | --- | --- | | 400 | InvalidParameter | The specified parameter is invalid. | 파라미터 형식이 올바르지 않은 경우 | | 403 | Forbidden | You do not have sufficient permissions to perform this action. | 서브 계정에 조회 권한이 없는 경우. `detail`에 거부된 IAM action이 담김. 권한 정책을 수정한 뒤 다시 요청 | ### 응답 예시 응답 예시는 다음과 같습니다. ``` { "billingItemCodes": [ { "categoryCode": "COMPUTE", "categoryName": "Compute", "serviceCode": "VSVR", "serviceName": "Server (VPC)", "billingItemGroups": [ { "billingItemGroupCode": "VSVR", "billingItemGroupName": "Server (VPC)", "billingItems": [ { "billingItemCode": "VSVR-VSVR", "billingItemName": "서버 기본 요금", "aggregated": false } ] } ] } ] } ```