Update Coupon Code
Update Coupon Code on the NodeRings client API (PATCH /v1/coupon-codes/{id}).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Path Parameters
idstring
maxRedemptions?integer
Format
int32validUntil?string
Format
date-timenoExpiry?boolean
active?boolean
campaign?string
channel?string
Response Body
application/json
curl -X PATCH "https://api.noderings.com/v1/coupon-codes/{id}" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}" \ -H "Content-Type: application/json" \ -d '{ "maxRedemptions": 0, "validUntil": "string", "noExpiry": false, "active": false, "campaign": "string", "channel": "string"}'{
"id": "string",
"couponId": "string",
"code": "string",
"maxRedemptions": 0,
"timesRedeemed": 0,
"validFrom": "2019-08-24T14:15:22Z",
"validUntil": "2019-08-24T14:15:22Z",
"customerOrgIds": [
"string"
],
"campaign": "string",
"channel": "string",
"batchId": "string",
"status": "STATUS_UNSPECIFIED",
"timestamps": {
"createTime": "2019-08-24T14:15:22Z",
"updateTime": "2019-08-24T14:15:22Z"
}
}