이 가이드는 API 명세를 기반으로 자동 생성했습니다.
VPC 환경에서 이용 가능합니다.
Ncloud API 표준 규격을 적용한 API입니다.
청구월의 과금항목별 비용 목록을 조회합니다.
- 기본 정렬은
demandMonth,memberNo,billingItemCostId오름차순입니다. - 리소스 단위로 청구되는 과금항목은 리소스별로 한 행씩 반환합니다.
- 여러 리소스를 합산 청구하는 과금항목(
aggregated가true)은 한 행으로 반환하며, 이 행은resourceId조건으로 조회되지 않습니다. - 기본 조회 범위는 요청한 회원 본인입니다.
scope=ORGANIZATION이면 조직 산하 회원 전체를 조회하며,targetMemberNo로 대상을 한정할 수 있습니다.targetMemberNo는scope=ORGANIZATION일 때만 지정할 수 있습니다(아니면400 InvalidParameter). - 조직 마스터 회원이 아닌데
scope=ORGANIZATION을 지정하거나 조직 산하가 아닌 회원을targetMemberNo로 지정하면403 Forbidden을 반환합니다. - 요청 회원이 파트너 고객 회원이고 파트너가 사용 금액만 공개(
VIEW_PRICE)했으면useAmount·unitPrice·사용량은 실제 값이고, 할인·청구 금액은 0입니다.
페이지네이션
- 커서 기반 페이지네이션을 사용하며 전체 건수는 제공하지 않습니다.
- 응답의
nextToken이 null이면 마지막 페이지입니다. nextToken은 발급 시점의 조회 조건에 종속됩니다. 조회 조건을 바꾸거나 다른 API의 토큰을 전달하면InvalidNextToken(400)이 반환됩니다.
권한
- 서브 계정으로 호출하려면 IAM action
View/getBillingItemCosts권한이 필요합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | /billing/v2/billing-item-costs |
요청 헤더
Billing API에서 공통으로 사용하는 헤더에 대한 정보는 Billing 요청 헤더를 참조해 주십시오.
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
demandMonth |
String | Required | 청구월
|
serviceCode |
List<String> | Optional | 서비스 코드. 여러 번 지정하면 하나라도 일치하는 항목을 반환
|
billingItemGroupCode |
List<String> | Optional | 과금항목그룹 코드. 여러 번 지정하면 하나라도 일치하는 항목을 반환
|
billingItemCode |
List<String> | Optional | 과금항목 코드. 여러 번 지정하면 하나라도 일치하는 항목을 반환
|
resourceId |
List<String> | Optional | 리소스 ID. 합산 과금 행(aggregated가 true)은 이 조건으로 조회되지 않음. 여러 번 지정하면 하나라도 일치하는 항목을 반환
|
regionCode |
List<String> | Optional | 리전 코드. 여러 번 지정하면 하나라도 일치하는 항목을 반환
|
scope |
String | Optional | 조회 범위
|
targetMemberNo |
List<Integer (int64)> | Optional | 조회 대상 회원 번호. scope가 ORGANIZATION일 때만 지정할 수 있으며(MEMBER이면 400 InvalidParameter) 조회 대상을 이 회원으로 한정. 조직 산하가 아닌 회원이면 403 Forbidden. 여러 번 지정하면 하나라도 일치하는 항목을 반환
|
pageSize |
Integer (int32) | Optional | 페이지 크기
|
nextToken |
String | Optional | 다음 페이지 토큰 (첫 요청 시 생략)
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v2/billing-item-costs?demandMonth=2026-06' \
--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 응답 헤더를 참조해 주십시오.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
billingItemCosts |
List<BillingItemCost> | Required | 과금항목 비용 목록
|
nextToken |
String | null | Required | 다음 페이지 토큰. 마지막 페이지에서는 null
|
응답 상태 코드
호출에 실패하면 기본 오류 응답 형식의 응답 바디를 반환하며, 오류 코드는 error.errorCode 값입니다.
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 400 | InvalidParameter |
The specified parameter is invalid. |
필수 파라미터가 없거나 형식·범위가 올바르지 않거나, scope가 MEMBER인데 targetMemberNo를 지정한 경우 |
| 400 | InvalidNextToken |
You have provided an invalid pagination token in your request. |
nextToken이 손상되었거나 다른 조회 조건으로 발급된 경우 |
| 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이 담기며 권한 정책을 수정한 뒤 다시 요청. 요청 회원이 조직(Organization) 마스터 회원이 아닌데 scope=ORGANIZATION을 지정했거나 조직 산하가 아닌 회원을 targetMemberNo(할인 목록은 filter의 memberNo 조건)로 지정했으면 detail에 거부된 조건(scope=ORGANIZATION 또는 산하가 아닌 회원 번호)이 담기며, IAM 정책으로는 해소되지 않으므로 조회 범위나 대상을 바꿔 다시 요청 |
참고
Billing API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Billing 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"billingItemCosts": [
{
"billingItemCostId": "880123456",
"demandMonth": "2026-06",
"memberNo": 2001234,
"regionCode": "KR",
"serviceCode": "VSVR",
"serviceName": "Server (VPC)",
"billingItemGroupCode": "VSVR",
"billingItemGroupName": "Server (VPC)",
"billingItemCode": "VSVR-VSVR",
"billingItemName": "VPC Server",
"aggregated": false,
"resourceId": "10012345",
"resourceLineSequence": 1,
"instanceNo": 22010000,
"resourceName": "web-server-001",
"priceNo": 30001,
"unitUsageQuantity": 72.0,
"freeUnitUsageQuantity": 0.0,
"totalUnitUsageQuantity": 72.0,
"usageUnitCode": "USAGE_HH",
"usageUnitName": "Hour(s)",
"unitPrice": 54.0,
"pricingFactors": [
{
"type": "PRODUCT_COUNT",
"value": 1
}
],
"payCurrency": "KRW",
"appliedExchangeRate": 1.0,
"useAmount": 3888.0,
"useAmountBreakdowns": [],
"memberPriceDiscountAmount": 0.0,
"promiseDiscountAmount": 388.8,
"memberPromiseDiscountAddAmount": 0.0,
"etcDiscountAmount": 0.0,
"promotionDiscountAmount": 0.0,
"savingsPlanDiscountAmount": 0.0,
"demandAmount": 3499.2,
"createdDateTime": "2026-06-30T18:10:22Z"
},
{
"billingItemCostId": "880123457",
"demandMonth": "2026-06",
"memberNo": 2001234,
"regionCode": "KR",
"serviceCode": "VSVR",
"serviceName": "Server (VPC)",
"billingItemGroupCode": "VSVR",
"billingItemGroupName": "Server (VPC)",
"billingItemCode": "VSVR-VSVR",
"billingItemName": "VPC Server",
"aggregated": false,
"resourceId": "10012346",
"resourceLineSequence": 1,
"instanceNo": 22010001,
"resourceName": "web-server-002",
"priceNo": 30001,
"unitUsageQuantity": 72.0,
"freeUnitUsageQuantity": 0.0,
"totalUnitUsageQuantity": 72.0,
"usageUnitCode": "USAGE_HH",
"usageUnitName": "Hour(s)",
"unitPrice": 54.0,
"pricingFactors": [
{
"type": "PRODUCT_COUNT",
"value": 1
}
],
"payCurrency": "KRW",
"appliedExchangeRate": 1.0,
"useAmount": 3888.0,
"useAmountBreakdowns": [],
"memberPriceDiscountAmount": 0.0,
"promiseDiscountAmount": 0.0,
"memberPromiseDiscountAddAmount": 0.0,
"etcDiscountAmount": 0.0,
"promotionDiscountAmount": 0.0,
"savingsPlanDiscountAmount": 0.0,
"demandAmount": 3888.0,
"createdDateTime": "2026-06-30T18:10:22Z"
},
{
"billingItemCostId": "880123458",
"demandMonth": "2026-06",
"memberNo": 2001234,
"regionCode": "KR",
"serviceCode": "VSVR",
"serviceName": "Server (VPC)",
"billingItemGroupCode": "VSVR",
"billingItemGroupName": "Server (VPC)",
"billingItemCode": "VSVR-VSVRT",
"billingItemName": "Server (VPC) Stop Usage",
"aggregated": true,
"resourceId": null,
"resourceLineSequence": null,
"instanceNo": null,
"resourceName": null,
"priceNo": 30003,
"unitUsageQuantity": 120.0,
"freeUnitUsageQuantity": 0.0,
"totalUnitUsageQuantity": 120.0,
"usageUnitCode": "USAGE_HH",
"usageUnitName": "Hour(s)",
"unitPrice": 5.4,
"pricingFactors": [
{
"type": "PRODUCT_COUNT",
"value": 1
}
],
"payCurrency": "KRW",
"appliedExchangeRate": 1.0,
"useAmount": 648.0,
"useAmountBreakdowns": [],
"memberPriceDiscountAmount": 0.0,
"promiseDiscountAmount": 0.0,
"memberPromiseDiscountAddAmount": 0.0,
"etcDiscountAmount": 0.0,
"promotionDiscountAmount": 0.0,
"savingsPlanDiscountAmount": 0.0,
"demandAmount": 648.0,
"createdDateTime": "2026-06-30T18:10:22Z"
},
{
"billingItemCostId": "880123459",
"demandMonth": "2026-06",
"memberNo": 2001234,
"regionCode": "KR",
"serviceCode": "NET",
"serviceName": "Network",
"billingItemGroupCode": "NET_SVR",
"billingItemGroupName": "Network - Server&LoadBalancer",
"billingItemCode": "NTOSM-ITSTM",
"billingItemName": "Outbound(Internet) Network - Server type&Load Balancer",
"aggregated": false,
"resourceId": "10012345",
"resourceLineSequence": 1,
"instanceNo": 22010000,
"resourceName": "web-server-001",
"priceNo": 28,
"unitUsageQuantity": 30.0,
"freeUnitUsageQuantity": 0.0,
"totalUnitUsageQuantity": 30.0,
"usageUnitCode": "USAGE_1GB",
"usageUnitName": "GB",
"unitPrice": 0.0,
"pricingFactors": [
{
"type": "PRODUCT_COUNT",
"value": 1
}
],
"payCurrency": "KRW",
"appliedExchangeRate": 1.0,
"useAmount": 1000.0,
"useAmountBreakdowns": [
{
"usageDetailTypeCode": null,
"usageDetailTypeName": null,
"sectionStartValue": 0,
"sectionEndValue": 21474836480,
"unitUsageQuantity": 30.0,
"sectionUnitUsageQuantity": 20.0,
"unitPrice": 0.0,
"useAmount": 0.0
},
{
"usageDetailTypeCode": null,
"usageDetailTypeName": null,
"sectionStartValue": 21474836480,
"sectionEndValue": 5497558138880,
"unitUsageQuantity": 30.0,
"sectionUnitUsageQuantity": 10.0,
"unitPrice": 100.0,
"useAmount": 1000.0
}
],
"memberPriceDiscountAmount": 0.0,
"promiseDiscountAmount": 0.0,
"memberPromiseDiscountAddAmount": 0.0,
"etcDiscountAmount": 0.0,
"promotionDiscountAmount": 0.0,
"savingsPlanDiscountAmount": 0.0,
"demandAmount": 1000.0,
"createdDateTime": "2026-06-30T18:10:22Z"
},
{
"billingItemCostId": "880123460",
"demandMonth": "2026-06",
"memberNo": 2001234,
"regionCode": "KR",
"serviceCode": "NOTIF",
"serviceName": "Simple & Easy Notification Service",
"billingItemGroupCode": "NOTIF",
"billingItemGroupName": "Simple & Easy Notification Service",
"billingItemCode": "NTFSM-GSMS",
"billingItemName": "Global SMS",
"aggregated": false,
"resourceId": "10012400",
"resourceLineSequence": 1,
"instanceNo": 22010100,
"resourceName": "sens-project-001",
"priceNo": 7100,
"unitUsageQuantity": 15.0,
"freeUnitUsageQuantity": 0.0,
"totalUnitUsageQuantity": 15.0,
"usageUnitCode": "REQ_CNT",
"usageUnitName": "Number of requests",
"unitPrice": 0.0,
"pricingFactors": [
{
"type": "PRODUCT_COUNT",
"value": 1
}
],
"payCurrency": "KRW",
"appliedExchangeRate": 1.0,
"useAmount": 580.0,
"useAmountBreakdowns": [
{
"usageDetailTypeCode": "CN",
"usageDetailTypeName": "China",
"sectionStartValue": null,
"sectionEndValue": null,
"unitUsageQuantity": 5.0,
"sectionUnitUsageQuantity": null,
"unitPrice": 16.0,
"useAmount": 80.0
},
{
"usageDetailTypeCode": "JP",
"usageDetailTypeName": "Japan",
"sectionStartValue": null,
"sectionEndValue": null,
"unitUsageQuantity": 10.0,
"sectionUnitUsageQuantity": null,
"unitPrice": 50.0,
"useAmount": 500.0
}
],
"memberPriceDiscountAmount": 0.0,
"promiseDiscountAmount": 0.0,
"memberPromiseDiscountAddAmount": 0.0,
"etcDiscountAmount": 0.0,
"promotionDiscountAmount": 0.0,
"savingsPlanDiscountAmount": 0.0,
"demandAmount": 580.0,
"createdDateTime": "2026-06-30T18:10:22Z"
}
],
"nextToken": "c_EOvh4bjJwcoS1Vql3camd61H64G833OmvXEBeUDYTp7zppR9UhJzM8dGcXXg0q8JIU0CvP05RH7p5bUZaGBrc2Or04bmA"
}