Get all your coupon collections
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Query parameters
limit
Number of documents returned per page
offset
Index of the first document on the page
sort
Sort the results by creation time in ascending/descending order
Allowed values:
sortBy
The field used to sort coupon collections
Allowed values:
Response
Coupon collections
createdAt
Datetime on which the collection was created.
defaultCoupon
The default coupon of the collection.
id
The id of the collection.
name
The name of the collection.
remainingCoupons
Number of coupons that have not been sent yet.
totalCoupons
Total number of coupons in the collection.
expirationDate
Expiration date for the coupon collection in RFC3339 format.
remainingCouponsAlert
If present, an email notification is going to be sent when the total number of available coupons falls below the defined threshold.
remainingDaysAlert
If present, an email notification is going to be sent the defined amount of days before to the expiration date.