--- title: "getCostRelationCodeList" slug: "platform-costandusage-getcostrelationcodelist" updated: 2026-09-17T09:57:14Z published: 2026-09-17T09:57:14Z canonical: "api.ncloud-docs.com/platform-costandusage-getcostrelationcodelist" --- > ## 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. # getCostRelationCodeList Classic/VPC環境で利用できます。 費用関連のコードリストを照会します。 費用関連コードは、使用量([getContractUsageList](/docs/ja/platform-costandusage-getcontractusagelist)、[getContractUsageListByDaily](/docs/ja/platform-costandusage-getcontractusagelistbydaily))または費用([getContractDemandCostList](/docs/ja/platform-costandusage-getcontractdemandcostlist)、[getProductDemandCostList](/docs/ja/platform-costandusage-getproductdemandcostlist))の照会 APIで使用できます。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | GET | /cost/getCostRelationCodeList | ### リクエストヘッダ Cost and Usage APIで共通して使用されるヘッダの詳細は、[Cost And Usageの共通ヘッダ](/docs/ja/platform-costandusage#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストクエリパラメータ パラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `contractTypeCode` | String | Optional | 契約タイプコード | | `productItemKindCode` | String | Optional | 商品品目種類コード | | `productRatingTypeCode` | String | Optional | 商品課金タイプコード | | `meteringTypeCode` | String | Optional | メータリング区分コード | | `productCategoryCode` | String | Optional | 商品カテゴリコード - [getProductCategoryList](/docs/ja/platform-listprice-getproductcategorylist)アクションを通じて確認 | | `responseFormatType` | String | Optional | レスポンス結果の形式 - `xml`(デフォルト) \| `json` | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location 'https://billingapi.apigw.ntruss.com/billing/v1/cost/getCostRelationCodeList?contractTypeCode=VSVR&productItemKindCode=VSVR' --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Sub Account Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの詳細は、[CostRelationCodeList](/docs/ja/common-vapidatatype-costrelationcodelist)をご参照ください。 ### レスポンスステータスコード NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、[Ncloud APIのレスポンスステータスコード](/docs/ja/common-ncpapi#3%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` 46ab577a-****-****-****-09d8716f0019 0 success 2 VSVR Server(VPC) VSVR VPC Server VSVR VPC Server VSVR VPC Server VSVR Server (VPC) VSVR VPC Server VSVR Server(VPC) COMPUTE Compute VSVR Server(VPC) VSVR VPC Server VSVR VPC Server VSVRT Server (VPC) Stop Usage VSVR Server (VPC) VSVRT Server (VPC) Stop Usage VSVR Server(VPC) COMPUTE Compute ```