GET /subscriptions/[id]
/api/store/[slug]/subscriptions/[id]Retrieves a single storefront subscription belonging to the signed-in customer, including joined product and variant summaries.
Path parameters
slugstringrequiredBusiness store slug (non-empty string); 404 if no business matches.
idstringrequiredSubscription UUID (storefront_subscriptions.id); must be a valid UUID or the request fails validation.
Responses
The request succeeded.
The key or customer token is missing, malformed, or no longer valid.
The credential is valid but is not allowed to do this.
No such store, or no such record inside it.
What comes back
200: { subscription } with id, stripe_subscription_id, product_id, variant_id, status, current_period_start, current_period_end, cancel_at_period_end, canceled_at, cancellation_reason, created_at, updated_at, products { id, name, type }, variants { id, sku, price }. Errors: { error } with 401 (missing/invalid token), 403 (token belongs to another business), 404 (business not found, or the subscription does not exist / does not belong to the caller - deliberately indistinguishable so the endpoint is not an ownership oracle).