Edit batch discount template. CodePrefix cannot be modified. Quantity can only be increased after activation.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Edit batch discount template. CodePrefix cannot be modified. Quantity can only be increased after activation.
The code prefix, must match existing value, cannot be modified
The template's Id
AdvanceConfig, enable advanced configurations
The billing type, 1-one-time, 2-recurring
The discount currency
The count limitation of subscription cycle, 0-no limit
The discount amount, available when discount_type is fixed_amount
The discount percentage, 100=1%
The discount type, 1-percentage, 2-fixed_amount
The end time, editable after activate, utc timestamp in seconds
Metadata, custom key-value pairs
The batch template's display name
Plan apply type, 0-apply for all, 1-specified, 2-exclude, 3-by groups, 4-except groups
Ids of plan which discount code can effect
Target number of child codes, can only increase after activation, max 10000
The start time, editable after activate, utc timestamp in seconds
The limit of every subscription apply, 0-unlimited
AdvanceConfig, true-only for upgrade to longer plan
AdvanceConfig, true-only for same interval upgrade
AdvanceConfig, Per customer limit, 0-unlimited
AdvanceConfig, Apply user scope, 0-all, 1-new user, 2-renewals