getProductDemandCostByDiscountList

Prev Next

Available in Classic and VPC

View the billing history with the discount reflected.

Request

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

Method URI
GET, POST /discount/getProductDemandCostByDiscountList

Request headers

For headers common to NAVER Cloud Platform, see Common Ncloud API headers.

Request query parameters

The following describes the parameters.

Field Type Required Description
startMonth String Required Query start month (yyyyMM)
  • Up to 6 months viewable
  • <E.g.> 202401
endMonth String Required Query end month (yyyyMM)
  • Up to 6 months viewable
  • <E.g.> 202406
pageNo Integer Optional Page number
pageSize Integer Optional Page size
  • 1000 or less (default: 1000)
productDemandTypeCodeList.N List Optional Service billing type code to view
  • Full billing list response when not entered
isOrganization Boolean Optional Whether to view consolidated usage for organization service accounts
  • Available to masters only
  • An error is returned if both isOrganization and isPartner are true
  • isPartner Boolean Optional Whether to view partner accounts
    • Available to partner representatives only
    • An error is returned if both isOrganization and isPartner are true
    memberNoList List<String> Optional Member ID list
    • Only available to master or partner representatives
    responseFormatType String Optional Response result format
    • xml (default) | json

    Request example

    The following is a sample request.

    curl --location --request GET 'https://billingapi.apigw.ntruss.com/billing/v1/discount/getProductDemandCostByDiscountList?startMonth=202311&endMonth=202404' \
    --header 'x-ncp-apigw-timestamp: {timestamp}' \
    --header 'x-ncp-iam-access-key: {access key}' \
    --header 'x-ncp-apigw-signature-v2: {signature}' \
    

    Response

    The following describes the response format.

    Response body

    See ProductDemandCostByDiscountList 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.

    <?xml version="1.0" encoding="UTF-8"?>
    <getProductDemandCostByDiscountListResponse>
      <requestId>89b5d61f-****-****-****-fc1289eeb72e</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>2</totalRows>
      <productDemandCostByDiscountList>
        <productDemandCostByDiscount>
          <memberNo>1***9</memberNo>
          <demandMonth>202212</demandMonth>
          <productDemandType>
            <code>GDNS</code>
            <codeName>Global DNS</codeName>
            <regionCode/>
          </productDemandType>
          <promiseDiscountAmount>0</promiseDiscountAmount>
          <promotionDiscountAmount>0</promotionDiscountAmount>
          <etcDiscountAmount>0</etcDiscountAmount>
          <productDiscountAmount>60</productDiscountAmount>
          <creditDiscountAmount>0</creditDiscountAmount>
          <defaultAmount>0</defaultAmount>
          <useAmount>690</useAmount>
          <demandAmount>630</demandAmount>
          <writeDate>2022-12-14T07:59:53+0900</writeDate>
          <memberPriceDiscountAmount>0</memberPriceDiscountAmount>
          <memberPromiseDiscountAddAmount>0</memberPromiseDiscountAddAmount>
          <discountAppliedCount>1</discountAppliedCount>
          <appliedCreditHistoryList/>
          <appliedProductDiscountHistoryList>
            <appliedProductDiscountHistory>
              <discountTargetAmount>690</discountTargetAmount>
              <discountAppliedAmount>60</discountAppliedAmount>
              <discountNo>9694</discountNo>
              <productDiscountName>test-product-discount</productDiscountName>
              <discountRate>10.0</discountRate>
              <discountCondition>true</discountCondition>
              <minimumAmount>0</minimumAmount>
              <maximumDiscountCondition>true</maximumDiscountCondition>
              <maximumDiscountAmount>0</maximumDiscountAmount>
              <validityStartMonth>202212</validityStartMonth>
              <validityEndMonth>202212</validityEndMonth>
              <eligibleProductDemandTypeList>
                <productDemandType>
                  <code>SCMTR</code>
                  <codeName>Security Monitoring</codeName>
                  <regionCode>KR</regionCode>
                </productDemandType>
                <productDemandType>
                  <code>GDNS</code>
                  <codeName>Global DNS</codeName>
                  <regionCode>COM</regionCode>
                </productDemandType>
              </eligibleProductDemandTypeList>
            </appliedProductDiscountHistory>
          </appliedProductDiscountHistoryList>
          <payCurrency>
            <code>KRW</code>
            <codeName>South Korea Won</codeName>
          </payCurrency>
        </productDemandCostByDiscount>
      </productDemandCostByDiscountList>
    </getProductDemandCostByDiscountListResponse>