Create a batch discount code template. Template must be activated before generating child codes.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Create a batch discount code template. Template must be activated before generating child codes.
The billing type of the discount code, 1-one-time, 2-recurring
The unique code prefix for this batch template, will be used as template identifier and child code prefix, length 1-20
The discount type of the discount code, 1-percentage, 2-fixed_amount
The end time of discount code can effect, utc timestamp in seconds
Target number of child codes to generate, max 10000
The start time of discount code can effect, utc timestamp in seconds
AdvanceConfig, enable advanced configurations
The discount currency, available when discount_type is fixed_amount
The count limitation of subscription cycle, 0-no limit
The discount amount, available when discount_type is fixed_amount
The discount percentage, 100=1%, available when discount_type is percentage
Metadata, custom key-value pairs
The batch template's display name
Plan apply type, 0-apply for all, 1-apply for plans specified, 2-exclude for plans specified, 3-Apply to Plans by Groups, 4-Apply to Plans except by Groups
Ids of plan which discount code can effect
The limit of every subscription apply, 0-unlimited
AdvanceConfig, true-forbid for all except upgrade to longer plan
AdvanceConfig, true-forbid for all except same interval upgrade action
AdvanceConfig, The limit of every customer can apply, 0-unlimited
AdvanceConfig, Apply user scope, 0-for all, 1-for only new user, 2-for only renewals