Create a new coupon batch and segments for a coupon type.
Syntax
long
createCouponBatchFromCoupon
(
long
couponType
,
String
code
,
byte[]
binaryCode
,
String
serialNumber
,
Date
issueFrom
,
Date
issueTo
,
Date
validUntil
,
long
quantity
,
long
callerId
)
Parameters
-
couponType –
-
code –
either this field or binary code must be present/not null
-
binaryCode –
either this field or code must be present/not null
-
serialNumber –
serial number for all new coupons
-
issueFrom –
optional issue from
-
issueTo –
optional issue to
-
validUntil –
optional valid until
-
quantity –
number of coupons to be created
-
callerId –