getDiscountList
- Print
- PDF
getDiscountList
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in Classic and VPC
View the list of discounts that an account has.
Request
The following describes the request format for the endpoint. The request format is as follows:
Method | URI |
---|---|
GET, POST | /discount/getDiscountList |
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
|
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
|
discountTypeCode | String | Optional | Discount type
|
startMonth | String | Optional | Query start month (yyyyMM)
|
endMonth | String | Optional | Query end month (yyyyMM)
|
isValidDiscount | Boolean | Optional | Whether to view only valid discounts
|
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/getDiscountList?startMonth=202401&endMonth=202403&isValidDiscount=true&responseFormatType=xml' \
--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 DiscountList 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"?>
<getDiscountListResponse>
<requestId>b797****-****-****-****-****6fab4b70</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<discountList>
<discount>
<memberNo>******</memberNo>
<discountNo>54</discountNo>
<discountType>
<code>COIN</code>
<codeName>Coin</codeName>
</discountType>
<discountName>Bank transer (Nonghyup)</discountName>
<discountProcessMethod>
<code>FXSUM</code>
<codeName>Flat rate</codeName>
</discountProcessMethod>
<discountValue>100000</discountValue>
<validityStartMonth>202007</validityStartMonth>
<validityEndMonth>202307</validityEndMonth>
</discount>
<discount>
<memberNo>******</memberNo>
<discountNo>158</discountNo>
<discountType>
<code>COIN</code>
<codeName>Coin</codeName>
</discountType>
<discountName>Credit card (TEST)</discountName>
<discountProcessMethod>
<code>FXSUM</code>
<codeName>Flat rate</codeName>
</discountProcessMethod>
<discountValue>10000</discountValue>
<validityStartMonth>202007</validityStartMonth>
<validityEndMonth>202307</validityEndMonth>
</discount>
</discountList>
</getDiscountListResponse>
Was this article helpful?