Recurring subscription plan for a user or customer. Tracks subscription details, pricing, billing cycle, status, renewal settings, and trial period information.
https://api.mockly.codes/subscriptions?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/subscriptionsGet a collection of subscriptions
/business/subscriptions/subscriptions/:idGet a single subscription by ID
/business/subscriptions/:id/subscriptions/metaGet resource metadata and schema
/business/subscriptions/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/subscriptions?q=laptopGET https://api.mockly.codes/subscriptions?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 subscriptions
fetch('https://api.mockly.codes/subscriptions?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/subscriptions?count=10'
)
data = response.json()curl "https://api.mockly.codes/subscriptions?count=10"fetch('https://api.mockly.codes/subscriptions?nocache=true')idintegerUnique identifier for the subscription record
random_intuser_idintegerForeign key reference to the user or customer who owns this subscription
random_intplanstringSubscription plan name or tier (e.g., Basic, Pro, Enterprise, Premium)
subscription_planstatusstringCurrent subscription status (e.g., active, cancelled, expired, suspended, trial)
subscription_statuspricenumberRecurring subscription price per billing cycle
pricecurrencystringISO currency code for the subscription price (e.g., USD, EUR, GBP)
currencybilling_cyclestringFrequency of billing (e.g., monthly, quarterly, annually, weekly)
billing_cyclestart_datestringDate when the subscription became active
past_datedateend_datestringDate when the subscription expires or is scheduled to end
future_datedatenext_billing_datestringDate of the next scheduled billing or renewal charge
future_datedateauto_renewbooleanWhether the subscription automatically renews at the end of the billing cycle
booleantrial_ends_atstringDate when a trial period ends and regular billing begins, if applicable
future_datedatecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request