Skip to content
Coursey CreativeSign in

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.

Customer bearer token requiredHow authentication works

Path parameters

slugstringrequired

Business store slug (non-empty string); 404 if no business matches.

idstringrequired

Subscription UUID (storefront_subscriptions.id); must be a valid UUID or the request fails validation.

Responses

200

The request succeeded.

401

The key or customer token is missing, malformed, or no longer valid.

403

The credential is valid but is not allowed to do this.

404

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).