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

Get a subscription

Read one subscription's current state by your own provider_subscription_ref.

GET/s2s/v1/subscriptions/{ref}
What it does
Read the current state of one subscription by your own provider_subscription_ref.
Path
refRequired
The provider_subscription_ref you sent on create.
Response
dataobject
Full subscription — see Create a subscription for every field. The lifecycle fields (status, next_charge_at, current_period_end, cancel_at_period_end) reflect the state at read time.
error_code (on 4xx)string
SUBSCRIPTION_NOT_FOUND (404) when no subscription of yours has that ref.
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": "OK"
}

// 404 Not Found
{
  "status":     false,
  "error_code": "SUBSCRIPTION_NOT_FOUND",
  "message":    "SUBSCRIPTION_NOT_FOUND"
}
Try it
Base URL
https://microservices.shoppinggate.app/mini-app-core/