Objects
The Discount object
Fields of the Discount object.
Attributes
-
idstring required -
codestring required -
namestring nullable -
typestring requiredOne of
percentagefixed -
valuestring requiredA percentage, or an amount in the currency of the code
-
currencystring nullableOnly for a fixed amount
-
durationstring requiredHow many payments of a subscription get the discount: the first, the first duration_periods, or every payment
One of
oncerepeatingforever -
duration_periodsinteger nullable -
all_linksboolean requiredValid for every payment link, or only for the links in links
-
linksarray of stringsIds of the payment links the code is limited to
-
max_redemptionsinteger nullableHow often the code can be used in total, by all customers together
-
times_redeemedinteger -
once_per_customerboolean -
starts_atstring nullable -
expires_atstring nullable -
is_activeboolean required -
statusstring requiredOne of
activeinactivescheduledexpiredused_up -
created_atstring required