List Coupons
List Coupons on the NodeRings client API (GET /v1/coupons).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Query Parameters
page?integer
Format
int32pageSize?integer
Format
int32assetType?string
expiringSoon?boolean
Only coupons whose validity ends within 14 days.
search?string
Response Body
application/json
curl -X GET "https://api.noderings.com/v1/coupons?page&pageSize&assetType&expiringSoon&search" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}"{
"coupons": [
{
"id": "string",
"name": "string",
"description": "string",
"discountType": "COUPON_DISCOUNT_TYPE_UNSPECIFIED",
"percentOff": "string",
"amountsOff": {
"property1": "string",
"property2": "string"
},
"maxDiscountAmounts": {
"property1": "string",
"property2": "string"
},
"appliesTo": [
"string"
],
"usageMetricCodes": [
"string"
],
"assetCategories": [
"string"
],
"assetTypes": [
"string"
],
"planIds": [
"string"
],
"duration": "COUPON_DURATION_UNSPECIFIED",
"durationInPeriods": 0,
"durationDays": 0,
"validFrom": "2019-08-24T14:15:22Z",
"validUntil": "2019-08-24T14:15:22Z",
"maxRedemptions": 0,
"timesRedeemed": 0,
"oncePerCustomer": true,
"firstTimeCustomerOnly": true,
"highRisk": true,
"status": "STATUS_UNSPECIFIED",
"timestamps": {
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z"
},
"fundedBy": "COUPON_FUNDING_UNSPECIFIED",
"creditValidDays": 0
}
],
"totalCount": 0,
"page": 0,
"pageSize": 0
}