getProductDemandCostList
    • PDF

    getProductDemandCostList

    • PDF

    Article summary

    Available in Classic and VPC

    View the list of billing costs by service based on the set period.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET, POST/cost/getProductDemandCostList

    Request headers

    For headers common to all Cost and usage APIs, see Cost and usage common headers.

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    pageNoIntegerOptionalPage number
    pageSizeIntegerOptionalPage size
    • 1000 or less (default: 1000)
    isOrganizationBooleanOptionalWhether to view consolidated usage for organization service accounts
  • Available to masters only
  • An error is returned if both isOrganization and isPartner are true
  • isPartnerBooleanOptionalWhether to view partner accounts
    • Available to partner representatives only
    • An error is returned if both isOrganization and isPartner are true
    memberNoListList<String>OptionalMember ID list
    • Only available to master or partner representatives
    startMonthStringRequiredQuery start month (yyyyMM)
    • Up to 3 months viewable
    • <E.g.> 202401
    endMonthStringRequiredQuery end month (yyyyMM)
    • Up to 3 months viewable
    • <E.g.> 202406
    productDemandTypeCodeStringOptionalService billing type code
    responseFormatTypeStringOptionalResponse result format
    • xml (default) | json

    Request example

    The following is a sample request.

    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}'
    

    Response

    The following describes the response format.

    Response body

    See ProductDemandCostList for the response body.

    Response status codes

    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    Response example

    The following is a sample response.

    {
        "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
                },
    // (Omitted)
            ],
            "requestId": "00000029-045b-45f9-b156-53f98b000000",
            "returnCode": "0",
            "returnMessage": "success"
        }
    }
    

    Was this article helpful?

    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.