allowedUser = current user id).page, limit, search, orderBy, order.Authorization: ********************x-api-key: ********************{
"status": "success",
"message": "Coupons fetched successfully",
"data": {
"coupons": [
{
"_id": "64f1a2b3c4d5e6f7890a1234",
"code": "SUMMER2024",
"type": "percentage",
"value": 20,
"minOrderValue": 100,
"maxDiscountValue": 50,
"description": "Summer discount",
"startDate": "2019-08-24T14:15:22.123Z",
"endDate": "2019-08-24T14:15:22.123Z",
"isActive": true,
"maxUsesPerUser": 1,
"maxUses": 100,
"usedCount": 0,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 40,
"totalPages": 4
}
}
}