getCreditHistoryList
- Print
- PDF
getCreditHistoryList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
View the credit history list.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET, POST | /discount/getCreditHistoryList |
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 |
---|---|---|---|
pageNo | Integer | Optional | Page number |
pageSize | Integer | Optional | Page size
|
discountNoList.N | List<String> | Optional | Credit number to view
|
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 | Optional | Query start month (yyyyMM)
|
endMonth | String | Optional | 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/discount/getCreditHistoryList?discountNoList.1=793&discountNoList.2=68' \
--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 CreditHistoryList 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"?>
<getCreditHistoryList>
<requestId>a78f6d1b-****-****-****-50966324f793</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<creditHistoryList>
<creditHistory>
<memberNo>1***9</memberNo>
<credit>
<discountNo>6383</discountNo>
<creditName>credit-discount-test</creditName>
<receivedCredit>30000</receivedCredit>
<remainingCredit>0</remainingCredit>
<validityStartMonth>202212</validityStartMonth>
<validityEndMonth>202212</validityEndMonth>
<creditType>
<code>FCHG</code>
<codeName>Fee-Charging</codeName>
</creditType>
<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>
<payCurrency>
<code>KRW</code>
<codeName>South Korea Won</codeName>
</payCurrency>
</credit>
<creditUseHistory>
<creditUseHistory>
<useMonth>202212</useMonth>
<productDemandTypeCode>SCMTR</productDemandTypeCode>
<productDemandType>
<code>SCMTR</code>
<codeName>Security Monitoring</codeName>
<regionCode>KR</regionCode>
</productDemandType>
<unusedCredit>30000</unusedCredit>
<usedCredit>30000</usedCredit>
<remainingCredit>0</remainingCredit>
</creditUseHistory>
</creditUseHistory>
</creditHistory>
</creditHistoryList>
</getCreditHistoryList>
Was this article helpful?