ShoppingateShoppingateDevelopers
shoppinggate.app ↗
Documentation
  • What is a Mini App
  • Why Mini Apps
  • API integration
  • SDK
  • Webview
  • Mini App architecture
  • Getting started
  • Choosing your path
  • Introduction
    • Introduction
    • Sign up & login
    • Dashboard & analytics
    • Mini-Programs
    • Submit & publish a version
    • App Binding
    • Privacy Settings
    • Allowed URL
    • Users & roles
    • Introduction
    • Become a Mini-App vendor
    • API keys
    • My Mini-Apps
    • Orders
    • Webhook
    • Deep-link config
    • Introduction
    • Install & log in
    • Create a project
    • The workspace
    • Preview & upload
  • Introduction
  • Configuration
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Introduction
  • Configuration
  • SDK
  • Lifecycle
  • Routing & query
  • Host functions
  • orderPayment
  • Permissions
  • User info
  • Web app and shell calls
  • Look and feel
  • Overview
    • Verify user
    • Create order
    • Get order
    • Update order status
    • Charge an order
    • Send a notification
  • Subscriptions
    • Create a subscription
    • List subscriptions
    • Get a subscription
    • Update a subscription
    • Reschedule next charge
    • Change plan (upgrade)
    • Cancel a subscription
  • Webhooks
Subscriptions

Reschedule the next charge

Move only the next charge date to a future instant — plan amount and interval are untouched.

POST/s2s/v1/subscriptions/{ref}/reschedule
What it does
Move only the next charge date — plan amount and interval are untouched. The cycle after this one re-anchors from the new date automatically. Useful for granting a few extra free days or aligning a billing day. The subscription must be active.
Path
refRequired
The provider_subscription_ref (path).
next_charge_atRequired
New charge instant — ISO-8601 date-time, must be in the future.
Request schema
{
  "next_charge_at": <string, ISO 8601, future>   // required
}
Response
data.next_charge_atstring, ISO 8601 UTC
Echoes the new charge date. current_period_end moves with it.
error_code (on 4xx)string
SUBSCRIPTION_NOT_FOUND (404), SUBSCRIPTION_NOT_ACTIVE / NEXT_CHARGE_AT_IN_PAST / INVALID_NEXT_CHARGE_AT (422).
Response schema
// 200 OK
{
  "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 rescheduled"
}

// 404 SUBSCRIPTION_NOT_FOUND
// 422 SUBSCRIPTION_NOT_ACTIVE     — only an active subscription can be rescheduled
// 422 NEXT_CHARGE_AT_IN_PAST      — the date is not in the future
// 422 INVALID_NEXT_CHARGE_AT      — not a valid date
{
  "status":     false,
  "error_code": "NEXT_CHARGE_AT_IN_PAST",
  "message":    "next_charge_at must be in the future"
}
Try it
Base URL
https://microservices.shoppinggate.app/mini-app-core/