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

List subscriptions

Page through this mini app's subscriptions, newest first, with optional status / user / plan filters.

GET/s2s/v1/subscriptions
What it does
Page through the subscriptions for this mini app, newest first. Filter by status, user_id, or plan_code.
Body
page
1-based page number (default 1). Query param.
per_page
Page size, 1–100 (default 20). Query param.
status
Filter by state: incomplete, active, past_due, cancelled, expired.
user_id
Only this user's subscriptions.
plan_code
Only subscriptions on this plan code.
Response
dataarray
Subscriptions for this page, each the same shape as Get a subscription. Ordered by created_at descending.
pagination.totalnumber
Total matching rows across all pages — use it with per_page to know when you've read everything.
Response schema
// 200 OK  — GET /s2s/v1/subscriptions?status=active&page=1&per_page=20
{
  "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"
  } ],
  "pagination": { "page": 1, "per_page": 20, "total": 134 },
  "message": "OK"
}
Try it
Base URL
https://microservices.shoppinggate.app/mini-app-core/