> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowapt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change a subscription

> Skip or move a delivery, change products and delivery rhythms, update the address, pause, resume, cancel or reactivate a FlowIQ subscription from your own system.

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.

> [!WARNING]
>
> 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

```
POST https://api.flowiq.live/v1/subscriptions/{id}/{action}
```

`{id}` is the subscription's `id` from [list](https://docs.flowapt.com/flowiq-api-reference/endpoint/list-subscriptions.md) or [get](https://docs.flowapt.com/flowiq-api-reference/endpoint/get-subscription.md). 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).

```bash theme={null}
curl -X POST "https://api.flowiq.live/v1/subscriptions/3f2c6a1e-8b0d-4c55-9f7e-1d2a3b4c5d6e/reschedule" \
  -H "Authorization: Bearer fiq_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: erp-change-88213" \
  -d '{ "delivery_number": 3, "date": "2026-12-18" }'
```

Limits: 60 changes per minute per key. Send an `Idempotency-Key` so a retried request is not applied twice ([how it works](https://docs.flowapt.com/flowiq-api-reference/conventions.md)).

## Actions

| Action | Body | What it does |
| - | - | - |
| `skip` | `delivery_number` | Skips one scheduled delivery. Nothing is charged or sent for it |
| `unskip` | `delivery_number` | Puts a skipped delivery back on its date |
| `reschedule` | `delivery_number`, `date` | Moves one delivery to another day. The others stay where they are |
| `schedule` | `start_date` and/or `every_weeks` (1-26) | `start_date` moves the whole schedule so the next delivery falls on that day, the rest following at the same rhythm. `every_weeks` changes how often it delivers, keeping the next date. On a subscription with a rhythm per product, `every_weeks` puts every product on that rhythm |
| `items` | `items`: `[{ "variant_id", "quantity", "every_weeks"? }]`, `preview`? | Replaces the products on **every** delivery still to come with this list (send the full list). Prices come from your store. `every_weeks` sets a new product's rhythm on a subscription with a rhythm per product |
| `delivery-items` | `delivery_number`, `items`: `[{ "variant_id", "quantity" }]` | Changes the products of **one** delivery only. The subscription's other deliveries keep their products |
| `item-rhythm` | `variant_id`, `every_weeks` (1-26), `preview`? | On a subscription with a rhythm per product (for example meals every 6 weeks, supplements every 4), changes how often one product is delivered |
| `address` | `address`, `delivery_number`? | Without `delivery_number`: the address for every delivery still to come. With it: that delivery only |
| `pause` | `resume_on`? | Pauses the subscription, until `resume_on` if given (it restarts by itself that day), else until it is resumed. On a paused subscription, changes or removes the restart date |
| `resume` | | Resumes a paused subscription |
| `cancel` | `reason`? (up to 500 characters) | Cancels the subscription. Its deliveries still to come are cancelled |
| `reactivate` | | Brings a cancelled subscription back; its deliveries still to come are scheduled again |

`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:

```json theme={null}
POST /v1/subscriptions/{id}/items
{ "items": [ { "variant_id": "54737885561111", "quantity": 1 }, { "variant_id": "49070790869271", "quantity": 2, "every_weeks": 4 } ] }
```

Pause until 15 January:

```json theme={null}
POST /v1/subscriptions/{id}/pause
{ "resume_on": "2027-01-15" }
```

## 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](https://docs.flowapt.com/flowiq-api-reference/subscription-webhooks.md) 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](https://docs.flowapt.com/flowiq-api-reference/endpoint/get-subscription.md) returns it after the change, with its `schedule`, plus `result`, FlowIQ's own summary of the change.

```json theme={null}
{
  "organization_id": "a4234f32-…",
  "action": "reschedule",
  "preview": false,
  "changed": true,
  "delivery_number": 3,
  "result": { "success": true, "order_number": 3, "old_date": "2027-01-11", "new_date": "2026-12-18" },
  "subscription": { "id": "3f2c6a1e-…", "status": "active", "schedule": [ … ] }
}
```

A preview answers `"preview": true, "changed": false` with the quote in `result` and no `subscription`.

## Errors

Errors use the [standard shape](https://docs.flowapt.com/flowiq-api-reference/conventions.md) with a `code`.

| Status | Code | When |
| - | - | - |
| `400` | `validation_error` | A field is missing or malformed (the message names it), or a date is today or earlier |
| `403` | `forbidden_scope` | The key has no write permission |
| `404` | `not_found` | No such subscription on your account, no such delivery on it, or an unknown action |
| `409` | `action_refused` | FlowIQ refused the change, with the reason in `message`: the delivery already happened or is due now, the subscription is cancelled or paused, it delivers everything on one rhythm (`item-rhythm`), or a product is not in your store |
| `429` | `rate_limited` | More than 60 changes in a minute |
| `502` | `upstream_error` | A service FlowIQ depends on did not answer; safe to retry with the same `Idempotency-Key` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.