Backend API

Fields
idobjectId

Unique identifier for the coupon codes generated.

codesCoupon code

An array of coupon codes to be generated.

countintrequired

Specifies the number of codes to be generated and limit for generations is 10,000. For example, count=100 would generate 100 coupon codes.

date_createddateauto

Date the coupon code is generated.

date_updateddateauto

Date the coupon code was last updated.

parentCoupon

Expandable link to the parent coupon.

parent_idobjectIdrequired

Unique identifier of the parent coupon.

patternstring

Specifies the code pattern for generated coupons.

pattern_typeenum

Determines the pattern type for the codes generated, which can be either default or custom. Specify the pattern when using custom.

Possible enum values:

defaultcustom
The coupon generation model
{
  "complete": true,
  "count": 1000,
  "date_created": "2015-09-02T20:57:03.441Z",
  "date_updated": "2015-09-02T20:57:20.033Z",
  "parent_id": "559c5799bcb1de1d1c4821da",
  "pattern": "TABATHA-{0000000}",
  "pattern_type": "custom",
  "id": "55e7629f5c0dfa1e3c2dd4c1"
},