Create contract recurring discount
Creates a recurring discount schedule for a contract. The discount is applied to each billing cycle within the date window.
Authorizations
API Key Authentication.
Path Parameters
Unique identifier for the contract.
Body
Discount method: "fixed" (amount in cents) or "percentage" (basis points).
fixed, percentage Amount in cents when method is "fixed", or basis points (1-10000, where 10000 = 100%) when method is "percentage".
x >= 1Must be a multiple of 1Display text of the discount as it appears on invoices.
1First billing-cycle start date the discount applies to. Must match a valid cycle date of the contract.
Where the discount applies: "invoice", "plan", or "contract_minimum_amount".
invoice, plan, contract_minimum_amount Optional plan to scope the discount to. Required when targetScope is "plan".
Optional last cycle date the discount applies to. Null means the discount has no end.
For split invoices: "proportional" divides a fixed discount across invoices; "full" applies it in full to each.
proportional, full Response
Schema representing a recurring discount configured on a contract. On every billing cycle within its validity window, the discount is applied to the generated invoices as an invoice discount, as long as it is active (see isActive).
The unique identifier of the recurring discount in our system.
The unique identifier of the plan targeted by the discount, for plan and metric target scopes. Null for invoice and contract_minimum_amount scopes.
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 amount is interpreted: fixed subtracts a monetary amount; percentage subtracts a percentage of the targeted amount.
fixed, percentage Value of the discount, as a positive integer: whole cents when method is fixed; basis points when method is percentage (1 basis point = 0.01%; maximum 10000 = 100%).
x >= 1Must be a multiple of 1Display text of the discount as it appears on invoices.
1First billing cycle date the discount applies to.
Last billing cycle date the discount applies to. Null when the discount has no end date.
For 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 Whether the discount is applied to new billing cycles. Inactive discounts are kept for history but no longer applied.