GET /api/subscription
Retrieves the subscription details for the authenticated user, including plan information, status, billing period, and plan limits.Authentication
This endpoint requires authentication. Include your access token in the request cookies.Response
string
required
Current plan name. Options:
FREE, BASIC, PRO, ENTERPRISEstring
required
Subscription status. Options:
ACTIVE, CANCELLED, EXPIRED, PAST_DUE, UNPAID, TRIALINGnumber
required
Monthly price of the plan in the currency (e.g., MXN)
string
Start date of the current billing period (ISO 8601 format). Null for FREE plan
string
End date of the current billing period (ISO 8601 format). Null for FREE plan
boolean
required
Whether the subscription will be cancelled at the end of the current period
string
Stripe customer ID. Null for FREE plan
string
Stripe subscription ID. Null for FREE plan
object
required
Plan limits and features
Example Request
Example Response
Error Responses
error
Authentication required or token expired
error
Server error occurred