getProductCategoryList

Prev Next

Classic/VPC環境で利用できます。

商品カテゴリリストを照会します。

リクエスト

リクエスト形式を説明します。リクエスト形式は次の通りです。

メソッド URI
GET /product/getProductCategoryList

リクエストヘッダ

List Price APIで共通して使用されるヘッダの詳細は、List Priceの共通ヘッダをご参照ください。

リクエストクエリパラメータ

パラメータの説明は次の通りです。

フィールド タイプ 必須の有無 説明
productCategoryCode String Optional 商品カテゴリコード
responseFormatType String Optional レスポンス結果の形式
  • xml(デフォルト) | json

リクエスト例

リクエストのサンプルコードは次の通りです。

curl --location 'https://billingapi.apigw.ntruss.com/billing/v1/product/getProductCategoryList?productCategoryCode=COMPUTE'
--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}'

レスポンス

レスポンス形式を説明します。

レスポンスボディ

レスポンスボディの詳細は、ProductCategoryListをご参照ください。

レスポンスステータスコード

NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。

レスポンス例

レスポンスのサンプルコードは次の通りです。

<<?xml version="1.0" encoding="UTF-8"?>
<getProductCategoryListResponse>
    <requestId>89e37809-****-****-****-0e5762e14b39</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>1</totalRows>
    <productCategoryList>
        <productCategory>
            <code>COMPUTE</code>
            <codeName>Compute</codeName>
        </productCategory>
    </productCategoryList>
</getProductCategoryListResponse>