getDemandCostList
- Print
- PDF
getDemandCostList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
View the list of monthly billing costs based on the set period.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET, POST | /cost/getDemandCostList |
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.
Field | Type | Required | Description |
---|---|---|---|
pageNo | Integer | Optional | Page number |
pageSize | Integer | Optional | Page size
|
isOrganization | Boolean | Optional | Whether to view consolidated usage for organization service accountsisOrganization and isPartner are true |
isPartner | Boolean | Optional | Whether to view partner accounts
|
memberNoList | List<String> | Optional | Member ID list
|
startMonth | String | Required | Query start month (yyyyMM)
|
endMonth | String | Required | Query end month (yyyyMM)
|
responseFormatType | String | Optional | Response result format
|
Request example
The following is a sample request.
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}'
Response
The following describes the response format.
Response body
See DemandCostList 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.
{
"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"
}
}
Was this article helpful?