Skip to main content
Use these endpoints when your own system (an ERP, a back office, a booking system) is where your team manages subscriptions. A change made here is the same change your team makes in FlowIQ, the customer makes in their portal, or the AI makes over WhatsApp: FlowIQ updates every delivery it affects, prices products from your store, and creates each Shopify order on its delivery date with the change in it.
Make subscription changes through FlowIQ (this API, FlowIQ itself, the portal or WhatsApp), not on the Shopify order. FlowIQ creates each delivery’s Shopify order on its date from the subscription, so a change made only in Shopify is not carried to the next delivery.
Nothing here charges a card or sets a price. Retrying a failed charge, charging early, credits and discounts stay in FlowIQ.

Request

{id} is the subscription’s id from list or get. Use an organisation API key with write permission (Settings, API Keys) as a Bearer token; a subscription on another account answers 404. Deliveries are named by their delivery_number (shown in the subscription’s schedule). Dates are calendar days in South Africa, YYYY-MM-DD; a moved delivery keeps the time of day it had. A delivery can only be moved to tomorrow or later, and one that is due in the next 15 minutes can no longer be changed (it may already be charging).
Limits: 60 changes per minute per key. Send an Idempotency-Key so a retried request is not applied twice (how it works).

Actions

address takes first_name, last_name, company, address1, address2, city, province, province_code, zip, country, country_code, phone, with at least address1, city or zip. items and item-rhythm take "preview": true to see the new price and schedule without changing anything. A cancelled subscription accepts only reactivate. A change the subscription’s state does not allow (moving the schedule of a paused subscription, changing a delivery that already happened) answers 409 action_refused with the reason.

Examples

Change the products on every delivery:
Pause until 15 January:

What FlowIQ does

  • The change is applied the same way as a change made in FlowIQ: every delivery it affects is updated, and the subscriber discount and delivery fee are worked out again when each delivery is charged.
  • The customer gets the store’s usual message for that change, if the store sends one (for example on a pause or a cancellation), exactly as when the change is made in FlowIQ.
  • Your subscription webhooks fire as for any other change (subscription.updated, subscription.paused, subscription.cancelled, …), including for changes you made through this API.

Response

The answer carries the subscription as get returns it after the change, with its schedule, plus result, FlowIQ’s own summary of the change.
A preview answers "preview": true, "changed": false with the quote in result and no subscription.

Errors

Errors use the standard shape with a code.