MENU
      getDemandCostList
        • PDF

        getDemandCostList

        • PDF

        記事の要約

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

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

        リクエスト

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

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

        リクエストヘッダ

        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
        responseFormatTypeStringOptionalレスポンス結果の形式
        • xml(デフォルト) | json

        リクエスト例

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

        curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v1/cost/getDemandCostList?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

        レスポンス

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

        レスポンスボディ

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

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

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

        レスポンス例

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

        {
            "getDemandCostListResponse": {
                "totalRows": 1,
                "demandCostList": [
                    {
                        "memberNo": "2760000",
                        "demandMonth": "202401",
                        "demandNo": "9540000",
                        "integrationDemandNo": "",
                        "demandAttribute": {
                            "code": "GEN",
                            "codeName": "General"
                        },
                        "useAmount": 36290,
                        "promiseDiscountAmount": 0,
                        "promotionDiscountAmount": 0,
                        "etcDiscountAmount": 0,
                        "customerDiscountAmount": 0,
                        "productDiscountAmount": 0,
                        "creditDiscountAmount": 0,
                        "rounddownDiscountAmount": 90,
                        "currencyDiscountAmount": 0,
                        "coinUseAmount": 0,
                        "defaultAmount": 0,
                        "thisMonthDemandAmount": 36200,
                        "thisMonthVatRatio": 0.1,
                        "thisMonthVatAmount": 3620,
                        "thisMonthAmountIncludingVat": 39820,
                        "totalDemandAmount": 39820,
                        "isPaidUp": true,
                        "paidUpDate": "2024-02-01T07:08:30+0900",
                        "overduePlusAmount": 0,
                        "overdueRatio": 0.0,
                        "thisMonthOverdueAmount": 39820,
                        "beforeMonthDemandNo": "9180000",
                        "totalOverdueAmount": 39820,
                        "writeDate": "2024-02-01T06:44:51+0900",
                        "memberPriceDiscountAmount": 0,
                        "memberPromiseDiscountAddAmount": 0,
                        "payCurrency": {
                            "code": "KRW",
                            "codeName": "South Korea Won"
                        },
                        "thisMonthAppliedExchangeRate": 1
                    }
                ],
                "requestId": "0000001d-b737-47ef-9875-0d28ce000000",
                "returnCode": "0",
                "returnMessage": "success"
            }
        }
        JSON

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

        What's Next
        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.