What it does
Change plan details for future cycles only — this never charges and never touches the current paid period. Any field you send replaces the stored value; omit a field to leave it. The next renewal bills at the new amount/interval.
To upgrade with an immediate charge, use Change plan instead. To move only the next charge date, use Reschedule.
Path
refRequired
The
provider_subscription_ref (path).amount, interval, interval_count
New recurring terms for the next cycle onward.
plan_code, plan_name_en, plan_name_ar
New display / reconciliation metadata.
auto_renew
Flip renewal on or off.
cancel_at_period_end
Set
true to stop at the end of the current period (same effect as a non-immediate cancel); false clears a pending end-of-period cancel.plan_metadata, metadata
Replace the stored free-form JSON.
Request schema
{
"amount": <number, ≥ 0>, // optional
"interval": <string, enum>, // optional — day | week | month | year
"interval_count": <number, ≥ 1>, // optional
"plan_code": <string, ≤64>, // optional
"plan_name_en": <string, ≤120>, // optional
"plan_name_ar": <string, ≤120>, // optional
"auto_renew": <boolean>, // optional
"cancel_at_period_end": <boolean>, // optional
"plan_metadata": <object> | null, // optional
"metadata": <object> | null // optional
}Response
dataobject
The subscription with your changes applied. Note the current period is untouched —
current_period_end and amount for the running cycle are unchanged until the next renewal.error_code (on 4xx)string
SUBSCRIPTION_NOT_FOUND (404), SUBSCRIPTION_TERMINAL (422 — terminal state), plus the INVALID_* (422) validation codes.Response schema
// 200 OK — changes stored, applied from the next cycle
{
"status": true,
"data": {
"subscription_uuid": "0193c7f0-2a1b-7de4-9c0a-6b5f1e2d3c44",
"provider_subscription_ref": "SUB-GOLD-9b3f12",
"user_id": 6093,
"status": "active", // incomplete | active | past_due | cancelled | expired
"plan_code": "gold_monthly",
"plan_name_en": "Gold — Monthly",
"plan_name_ar": "الذهبية — شهري",
"amount": "29.00",
"currency": "SAR",
"interval": "month", // day | week | month | year
"interval_count": 1,
"auto_renew": true,
"cancel_at_period_end": false,
"payment_method": "card", // null until the user activates
"current_period_start": "2026-11-09T12:00:00.000Z",
"current_period_end": "2026-12-09T12:00:00.000Z",
"next_charge_at": "2026-12-09T12:00:00.000Z",
"started_at": "2026-11-09T12:00:00.000Z",
"activated_at": "2026-11-09T12:00:30.000Z",
"cancelled_at": null,
"plan_metadata": { "tier": "gold" },
"metadata": { "crm_id": "C-4471" },
"created_at": "2026-11-09T11:59:40.000Z",
"updated_at": "2026-11-09T12:00:30.000Z"
},
"message": "Subscription updated"
}
// 404 SUBSCRIPTION_NOT_FOUND
// 422 SUBSCRIPTION_TERMINAL — cancelled/expired subscriptions cannot be updated
{
"status": false,
"error_code": "SUBSCRIPTION_TERMINAL",
"message": "cannot update a cancelled subscription"
}Try it
Base URL
https://microservices.shoppinggate.app/mini-app-core/