Create contract recurring discount
Creates a recurring discount schedule for a contract. Starting at startDate’s billing cycle, the discount is applied to the next invoiceCount invoices that bill its target (all of them when invoiceCount is null).
Body
Optional number of invoices the discount applies to, counted from startDate over the open invoices that bill its target; already-issued invoices are frozen and do not consume the count. One unit is one billing act that bills the target, and the split invoices of one act spend one unit together: 12 units on a quarterly fee last 12 quarters, and a fixed amount against an annual fee comes off once a year. Null means the discount applies until deactivated.
1 <= x <= 1200Must be a multiple of 1Response
Schema representing a recurring discount configured on a contract. Starting at startDate's billing cycle, the discount is applied to the next invoiceCount invoices that bill its target (all of them when invoiceCount is null), as long as it is active (see isActive).
What the discount applies to on each generated invoice: invoice (the whole invoice), plan (the line item group of the targeted plan), metric (the line item of the targeted usage charge), or contract_minimum_amount (the contract minimum commitment line item).
invoice, plan, metric, contract_minimum_amount How many invoices the discount applies to, counted from startDate over the open invoices that bill its target; already-issued invoices are frozen and do not consume the count. One unit is one billing act that bills the target, and the split invoices of one act spend one unit together: 12 units on a quarterly fee last 12 quarters, and a fixed amount against an annual fee comes off once a year. Null means the discount applies until deactivated.
x >= 1Must be a multiple of 1For fixed discounts on contracts that split invoices across payment accounts: full applies the whole amount on each invoice of the cycle; proportional splits the amount across the cycle's invoices in proportion to their totals. Percentage discounts always apply per invoice.
proportional, full