Rev 10.26
TL;DR
Plan requirements now apply to the v2 API. Five features the dashboard has only ever offered on the Business plan were never checked on the API, so the same account could do through the API what its own dashboard refused. Those requests now answer 403 with the code plan_upgrade_required. If you set affiliate lead tracking, a custom affiliate slug, a per-item commission override, use_options on a product, or a billing frequency outside the standard list, check what plan the accounts you write to are on.
PUT /v2/promos/:id is now a partial update. It used to clear every field you left out, so a request sending only a new code wiped the discount, the expiry and the limits. Promo codes and discount amounts are also validated on the server now.
1. Plan requirements are enforced on the API
A refused request looks like this:
{
"error": {
"code": "plan_upgrade_required",
"message": "Custom billing frequency requires the Business plan."
}
}The message names the feature and the plan it needs. Reading is never refused: you can still fetch records that use any of these features, and nothing already stored changes.
Affiliate lead tracking, lead sharing and purchase sharing
POST /v2/affiliates/programs and PUT /v2/affiliates/programs/:program_id refuse is_lead_tracking_enabled, is_lead_sharing_enabled and is_purchase_sharing_enabled when any of the three is on. All three are required fields, so sending them as false keeps working on every plan.
On PUT, sending a flag back as true when the program already has it on is allowed. All three fields are required, so an update that reads a program and writes it back carries whatever is stored, and refusing that would block ordinary edits like renaming or archiving a program. What is refused is turning a flag on that the stored program does not already have on, and that is checked per flag: a program with lead tracking on cannot use it to turn purchase sharing on as well.
Custom affiliate link slugs
A slug is refused on POST /v2/affiliates, PUT /v2/affiliates/:id, POST /v2/affiliates/programs/:program_id/links and PUT /v2/affiliates/programs/:program_id/links/:link_id. Leave it out and Spiffy assigns one.
On the two PUT endpoints, sending back the slug the record already has is allowed, so an update that reads an affiliate or a link and writes it back is not refused for a slug it did not change. Changing the slug to a different value still needs Business.
POST /v2/affiliates creates a batch, and every affiliates[].slug is checked, so one slug in a batch of fifty refuses the whole request. The checkslugs endpoints are read-only and still answer on every plan.
Per-checkout affiliate commission overrides
Only the per-item values are refused. On PUT /v2/affiliates/programs/:program_id/checkouts/:checkout_id, a commission_percent or duration_in_payments on a checkout_items[] or block_items[] entry is refused when it differs from what that item already has stored. null clears an override and is allowed on any plan. 0 is a real override, meaning no commission on that item, so setting it needs Business, but sending back a 0 that is already stored does not.
That matters because this endpoint takes every item on the checkout at once. An update that reads the items and writes them back is not refused for values it did not change, so a single premium item cannot block a request that is really about something else.
An item whose stored record already carries a commission override is exempt outright, so overrides set up while the account had the feature stay editable. The checkout-level commission_percent and commission_flat_amount on the same request are not affected, and neither are the per-price and per-option override endpoints under /v2/affiliates/programs/:program_id.
Advanced pricing on products
use_options: true is refused on PUT /v2/products/:id, and on POST /v2/products for a product that is not a subscription.
Updating options and option prices under /v2/products/:id/options is not restricted. A one-time product keeps its default price on an option, and a subscription uses options on every plan, so those endpoints are ordinary product editing rather than the premium feature.
Creating one is different. POST /v2/products/:id/options is refused when the product is not a subscription and does not already have use_options set, because adding a named option to a plain one-time product is the feature itself. It still answers on every plan for a subscription product, and for a product that already uses options.
Custom billing frequency
The standard cadences are weekly, every 2 weeks, monthly, every 4 weeks, every 2 months, quarterly, every 4 months, every 6 months and yearly. Any other (frequency, frequency_count) pair is the dashboard's "Other" option, which needs Business.
It is refused wherever a cadence is written:
POST /v2/products(onoptions[].prices[]),POST /v2/products/:id/prices,POST /v2/products/:id/options(onprices[]), andPOST /v2/products/:id/options/:option_id/pricesPOST /v2/reportsandPATCH /v2/reports/:report_idPUT /v2/paymentplans/:id/terms
PUT /v2/products/:id/options/:option_id/prices/:price_id is unaffected. A price's amount and frequency are immutable there; only the name and integration mappings can change.
Reports and payment-plan terms are exempt when the record's stored cadence is already custom, so you can still rename a report or change a plan's amount without its existing cadence being refused. Both endpoints write both frequency columns whenever either one is supplied, so a PATCH sending only frequency_count is checked against the merged pair rather than against the body alone.
Compatibility
This is a breaking change and it is not behind a flag. A request your integration has been making successfully can start answering 403 on an account whose plan does not include the feature.
Worth checking:
What plan the accounts you write to are on. Business and above are unaffected.
Whether you send the three affiliate program flags as
true, or aslug, oruse_options: true, or a non-standard frequency.How your error handling treats a 403.
plan_upgrade_requiredis not a credentials problem and a new token will not fix it; it needs a plan change or a different payload.
The MCP connector runs these same endpoints, so the equivalent tool calls refuse the same way, with the same code and message.
2. Updating a promo no longer clears the fields you leave out
PUT /v2/promos/:id rebuilt the whole promo from the request body. Any field you did not send was written back as empty, so a request carrying only a new code cleared both discount types, set both amounts to zero, reset the duration to forever and removed the expiry and both limits. It answered 200 and said nothing.
It is now a partial update. A field you leave out keeps its current value. To clear a field, send it as null.
Before, that reset the promo to a code with no discount. Now it changes the code and nothing else.
Sending the full set of fields still works exactly as it did, so an integration that already posts the whole promo on every update needs no change. code is no longer required on an update, since leaving it out now means "keep the current code" rather than "clear it".
The same applies to the MCP update_promo tool, which runs this endpoint.
Only expire_at and the two discount types clear to empty. The numeric fields (order_limit, per_customer_limit, subscription_duration_in_months and the two discount amounts) treat null as 0, which means unlimited or forever. The code cannot be cleared. An empty string behaves the same as null.
Compatibility
If your integration sends partial updates to /v2/promos/:id today and relies on the fields it omits being cleared, those fields will now be kept. Send them as null to clear them.
3. Promo codes and discount amounts are validated
Rules the dashboard has always applied in the browser are now applied on the server too, so they reach API and MCP callers. Each answers 400.
Codes are letters and numbers only
BAD CODE used to save with the space in it. Checkout matches a code exactly, so a code with a space or punctuation is one your buyers may not be able to type or paste reliably. Codes are also trimmed before saving, where leading and trailing spaces used to be kept.
Percent discounts cannot exceed 100
A 150% discount was accepted and then quietly capped at the item price during checkout, so it behaved as 100% off.
Discounts cannot be negative
A negative amount was accepted and acted as a surcharge: checkout subtracts the discount from the price, so the buyer was charged more than the listed total.
Limits and counts cannot be negative
That covers order_limit, per_customer_limit and subscription_duration_in_months. A value that is not a number is now refused rather than stored as zero. Decimal amounts are still truncated, as before.
Values too large for the field are refused
A promo code is capped at 255 characters and the numeric fields at 2147483647, which are the column limits. Going over used to reach the database and come back as a 500; it is now a 400 that says which field and what the limit is. An expiry that cannot be parsed as a date is refused the same way, where it also used to be a 500.
Promos you already have are not affected
A rule only applies to a value you are changing. A promo holding something out of range can still be edited; you just cannot set a new value that breaks a rule. A code that differs from the stored one only by spacing or letter case counts as unchanged, so promos created before these rules stay editable.
Spiffy does not rewrite existing promos in bulk. The one thing a save does change on its own: re-sending a code that has leading or trailing spaces stores the trimmed version.
Compatibility
If you create promo codes programmatically, check they are letters and numbers only. Codes already in the system keep working.
4. Dates sent to subscription endpoints accept ISO 8601
Three endpoints read a date out of the request body in a way that only worked when it was written as YYYY-MM-DD HH:mm:ss. Sent as ISO 8601, which is the format the API and the MCP tools document and return, the date was not understood:
PUT /v2/subscriptions/:id/nextbillingdatePOST /v2/subscriptions/:id/hardresume(subscription_start_at)PUT /v2/subscriptions/:id(subscription_start_at)
It did not come back as an error. The unreadable date passed the "must be in the future" and "within two years" checks, because a comparison against a date that is not a date is never true, and the request went ahead on a value that meant nothing. On the billing-date endpoint that reached the payment processor.
Both formats now work on all three, and a date that genuinely cannot be read is refused with a 400 instead of being used.
If you send dates in YYYY-MM-DD HH:mm:ss today, nothing changes for you.
Last updated