Create Adjustment
Attaches a percentage discount to the subscription for a dated window. Every invoice calculated while the window is open carries one discount line for each discounted charge, and tax is assessed on the reduced amount. An invoice that already exists is not changed, including one still in draft — the discount reaches the periods that close after it is created. There is no update operation, and a window cannot be changed after it is created. To change a rate before any invoice has issued under the discount, delete the adjustment and create a replacement. Once an invoice has issued the adjustment is permanent, so set effectiveTo at creation time whenever the deal has a known end date.
Authorizations
API key authentication
Path Parameters
The subscription ID
Body
The kind of adjustment. percentageDiscount reduces every discountable charge by a rate.
percentageDiscount The discount rate as a decimal fraction between 0 and 1, sent as a string. "0.35" means 35 percent. "1" means 100 percent, not 1 percent. At most 6 decimal places. A value of 0 or above 1 is rejected.
The first instant the discount applies. Inclusive.
The instant the discount stops applying. Exclusive, so a window ending on the same date another begins neither overlaps nor leaves a gap. Null means the discount never stops, and it cannot be ended later — set an instant whenever the deal has a known end date. Must be after effectiveFrom.
The deal's own name, shown on each discount line of the invoice.
255A key of your choosing that makes a retry safe. Sending the same key against the same subscription returns the adjustment already created and creates no second one. Without a key a retried request creates a second adjustment, and two percentage discounts compound — two of 0.35 bill 57.75 percent off, not 35 percent.
1 - 255"adj_fy26_growth_001"
Response
An adjustment already exists for this idempotency key, and is returned unchanged. Nothing was created.
subscriptionAdjustment The adjustment ID
Unique identifier for a subscription
^sub_[a-zA-Z0-9]+$percentageDiscount The discount rate as a decimal fraction between 0 and 1. "0.35" means 35 percent.
The first instant the discount applies. Inclusive.
The instant the discount stops applying. Exclusive. Null means the discount never stops.
The deal's own name, shown on each discount line of the invoice.