Coupons
Get all your coupon collections
get/couponCollections
Query parameters
limitinteger
Number of documents returned per page
offsetinteger
Index of the first document on the page
sort'asc' | 'desc'
Sort the results by creation time in ascending/descending order
sortBy'createdAt' | 'remainingCoupons' | 'expirationDate'
The field used to sort coupon collections
Response
Coupon collections
Example response
{
"id": "23befbae-1505-47a8-bd27-e30ef739f32c",
"name": "SummerPromotions",
"defaultCoupon": "10 OFF",
"createdAt": "2023-01-06T05:03:47.053+0000",
"totalCoupons": 10000,
"remainingCoupons": 5000,
"expirationDate": "2024-01-01T00:00:00Z",
"remainingDaysAlert": 5,
"remainingCouponsAlert": 5
}