Manage selling plans through the API
The Kaching API can now manage your subscription plans. If you sell across several stores and sync products to them with your own app, that app can now add each new product to the right plan in every store, or create the plan there, without anyone opening each store's admin.
- Create and edit plans. An app can create a plan with everything the plan editor offers: delivery and billing frequency, prepaid billing, discounts, later-order discounts, a shipping discount, free gifts, automatic swaps, and what customers may change. It can also edit a plan's delivery options or delete a plan. A plan made this way is an ordinary Kaching plan: it appears in Plans, shows through your widget, and its changes are in the plan's activity log.
- Add and remove products. An app can add products to a plan, or remove them, as your catalog changes. Sending the same products again changes nothing, so a sync can run as often as it needs to.
- Safe for live subscriptions. Deleting a plan, or removing a delivery option, that active subscriptions are on is refused unless the app explicitly confirms it. Creating a plan with a title the store already uses is refused too, so running the same sync twice doesn't make a second plan.
When you create an API token in Settings → Integrations → API, the new Selling plans permissions let you choose what an app may do: view, create, edit or delete plans.
The API is available on the Advanced plan. For developers, the endpoints are described under Selling plans.