This API allows you to create a new promo code object in Limio. Only promo codes v2 are supported.
OK
Bad request (missing required fields)
Unauthorized
Not found
{- "name": "abc123",
- "id": "promo_code_v2-abc123",
- "data": {
- "applicationLevel": "wholeBasket",
- "promoCode": "abc123",
- "status": true,
- "description": "",
- "promoStartDate": "2024-11-11",
- "promoExpiryDate": "2024-12-31",
- "productDetails": {
- "product": {
- "path": "/products/Discounts"
}, - "ratePlan": {
- "path": "'30% Off Monthly' 1 month only"
}
}, - "usage": {
- "availableQuantity": 100
}, - "discount": {
- "discountType": "DiscountPercentage",
- "percentageDiscount": 12,
- "durationLength": 1,
- "durationType": "Months"
}
}
}{- "id": "promo_code_v2-CODE123",
- "name": "CODE123",
- "status": "active",
- "record_type": "promo_code_v2",
- "service": "limio",
- "data": {
- "promoStartDate": "2024-10-07"
}
}