Field

Field Type

Required

Field Description

code

String

Yes

Promotion code itself, alphanumeric code would be hard to guess

discount_type

String

Yes

Discount can be either flat or percent

discount_amount

Float

Yes

How much discount is planned for this code

quantity

Integer

Yes

How many times this promotion

starts

Datetime

No

Promotion validity start date need to be GMT

ends

Datetime

No

Promotion validity end date need to be GMT

registration_types

List of integers

No

Promotion can only be applied listed registration types

available_only

Boolean

No