MENU
      getProductDemandCostList
        • PDF

        getProductDemandCostList

        • PDF

        記事の要約

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

        設定期間に基づいてサービス別請求費用リストを照会します。

        リクエスト

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

        メソッドURI
        GET、POST/cost/getProductDemandCostList

        リクエストヘッダ

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

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

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

        フィールドタイプ必須の有無説明
        pageNoIntegerOptionalページ番号
        pageSizeIntegerOptionalページサイズ
        • 1,000以下(デフォルト: 1,000)
        isOrganizationBooleanOptionalOrganizationサービスアカウントの統合照会かどうか
        • マスターのみ使用可能
        • isOrganizationisPartnerのいずれもtrueの場合、エラーを返す
        isPartnerBooleanOptionalパートナーアカウントの照会かどうか
        • パートナー代表のみ使用可能
        • isOrganizationisPartnerのいずれもtrueの場合、エラーを返す
        memberNoListList<String>Optional会員番号リスト
        • マスターまたはパートナー代表のみ使用可能
        startMonthStringRequired照会開始月(yyyyMM)
        • 最大3か月照会可能
        • <例> 202401
        endMonthStringRequired照会最終月(yyyyMM)
        • 最大3か月照会可能
        • <例> 202403
        productDemandTypeCodeStringOptionalサービス請求タイプコード
        responseFormatTypeStringOptionalレスポンス結果の形式
        • xml(デフォルト) | json

        リクエスト例

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

        curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v1/cost/getProductDemandCostList?startMonth=202401&endMonth=202401&responseFormatType=json' \
        --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}'
        Curl

        レスポンス

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

        レスポンスボディ

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

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

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

        レスポンス例

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

        {
            "getProductDemandCostListResponse": {
                "totalRows": 3,
                "productDemandCostList": [
                    {
                        "memberNo": "2760000",
                        "demandMonth": "202401",
                        "productDemandType": {
                            "code": "NET_SVR",
                            "codeName": "Network - Server&LoadBalancer",
                            "regionCode": ""
                        },
                        "promiseDiscountAmount": 0,
                        "promotionDiscountAmount": 0,
                        "etcDiscountAmount": 0,
                        "productDiscountAmount": 0,
                        "creditDiscountAmount": 0,
                        "defaultAmount": 0,
                        "useAmount": 0,
                        "demandAmount": 0,
                        "writeDate": "2024-02-01T06:23:35+0900",
                        "memberPriceDiscountAmount": 0,
                        "memberPromiseDiscountAddAmount": 0,
                        "payCurrency": {
                            "code": "KRW",
                            "codeName": "South Korea Won"
                        },
                        "thisMonthAppliedExchangeRate": 1
                    },
        // (省略)
                ],
                "requestId": "00000029-045b-45f9-b156-53f98b000000",
                "returnCode": "0",
                "returnMessage": "success"
            }
        }
        JSON

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.