v1
latestOpenAPI 3.0.12026-07-24501176.6 MBCreate coupon series
Lets you create a new coupon series for the org.
post/coupon/series
Request body
Response
200
Example response
{
"id": 86066,
"orgId": 100458,
"description": "DIWALI 10% OFF",
"discountCode": "XYZ123",
"validTillDate": "2021-05-09T00:00:00Z",
"validDaysFromCreation": 30,
"expiryStrategyValue": 1,
"maxCreate": -1,
"maxRedeem": -1,
"isValidWithDiscountedItem": true,
"createdBy": 75040399,
"createdOn": "2021-05-13T11:11:42Z",
"lastUsed": "2021-05-13T11:11:41Z",
"seriesCode": "453163F75E8C4A2EAA2E",
"smsTemplate": "Hi {{first_name}} {{last_name}} your voucher code {{voucher}}is valid {{valid_days_from_create}}. {{fullname}} {{offer_name}}",
"info": "Evil coupon",
"isMultipleVouchersPerUserAllowed": true,
"doNotResendExistingVoucher": true,
"mutualExclusiveSeriesIds": "[]",
"storeIdsJson": "[-1]",
"dvsExpiryDate": "2021-05-13T00:00:00Z",
"shortSMSTemplate": "Hello {{cust_name}}, your voucher code is {{voucher_code}}",
"maxVouchersPerUser": 11,
"minDaysBetweenVouchers": 23,
"maxReferralsPerReferee": -1,
"discountValue": 500,
"dvsItems": "items",
"redemptionRange": "{\"dom\" : [1], \"dow\": [1], \"hours\": [1]}",
"minBillAmount": 100,
"maxBillAmount": 20000,
"redeemAtStore": "[-1]",
"campaignId": -1,
"tag": "DIWALI 10% OFF",
"maxRedemptionsInSeriesPerUser": 122,
"minDaysBetweenRedemption": 962,
"redemptionValidFrom": "2020-11-17T00:00:00Z",
"sourceOrgId": -1,
"redeemStoreType": "redeemable_stores",
"termsAndConditions": "T&C",
"targetUserDetails": {
"validMaxUserTransactionLimit": 1,
"validUserRegistrationEndTime": 10000
},
"redemptionValidAfterDays": 22,
"ownedBy": "NONE",
"ownerId": -1,
"alphaNumeric": true,
"randomCodeLength": 10,
"fixedExpiryDate": 1620518400000,
"resendMessageEnabled": true,
"seriesType": "UNDEFINED",
"clientHandlingType": "DISC_CODE",
"expiryStrategyType": "SERIES_EXPIRY",
"discountOn": "BILL",
"discountType": "ABS"
}