Float!
required
Percent off (0–100) when
valueType is PERCENTAGE; otherwise a currency amount.required
Collections the customer gets. Empty if products are used.
required
Products the customer gets. Empty if collections are used.
Float!
required
How many Y items the customer gets.
required
Whether
amount is a percent or a currency amount off Y.