Update a coupon collection by id
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
id
Id of the collection to update
Request
Values to update the coupon collection
defaultCoupon
A default coupon to be used in case there are no coupons left
expirationDate
Specify an expiration date for the coupon collection in RFC3339 format. Use null to remove the expiration date.
remainingCouponsAlert
Send a notification alert (email) when the remaining coupons count is equal or fall bellow this number. Use null to disable alerts.
remainingDaysAlert
Send a notification alert (email) when the remaining days until the expiration date are equal or fall bellow this number. Use null to disable alerts.
Response
Coupon collection updated
defaultCoupon
The default coupon of the collection
id
The id of the collection
name
The name of the collection