AddVoucherCodes

Parameters used to create voucher codes

Fields

FieldDescription
amount
decimal

Value of the voucher

Example value:15.750000
codes

List of voucher codes, can also (optionally) contain expiry timestamps.

Example value:[ { "code": "ABC56149819" }, { "code": "382932SDF38" }, { "code": "FDSA4490323" } ]
count
int 
(required)

Number of codes to create

Example value:3
update
bool

Whether or not to reactivate and update the expiry of already existing vouchercodes.

Example

 1{
 2    "amount": 15.750000,
 3    "codes": [
 4        {
 5            "code": "ABC56149819"
 6        },
 7        {
 8            "code": "382932SDF38"
 9        },
10        {
11            "code": "FDSA4490323"
12        }
13    ],
14    "count": 3,
15    "update": false
16}