Mavenseed Documentation
Back to Mavenseed
  • Welcome to Mavenseed 🎉
  • Getting Started
    • Creating your account
      • Connect to Stripe
        • Stripe F.A.Q.
    • Managing your account
      • Managing Your Sites
        • Custom Domains
        • Importing Data
          • Customers with subscriptions
          • Customers with orders
          • Customers with no orders
          • Courses
          • Videos
          • Images
        • Exporting Data
        • Gateways
        • Policies
      • Inviting Collaborators
      • Guest Authors
      • Manage your Subscription
      • Plugin Subscriptions
  • Creating Content
    • Dashboard
    • Posts
      • Quotes
    • Pages
    • Courses
      • Course Stats
      • Chapters: Adding & Editing
      • Lessons
      • Exercises (Assignments)
        • Submitting to an Exercise
      • Quizzes
      • Details
      • Selling Options
      • Course Files
      • Settings
      • Notes
      • Revisions
    • Community
      • Buzzes
    • Downloads
      • Edit
      • Sell
      • Files
    • Live Streams
      • Editing Details
      • Selling Options
      • Editing Media
      • RSVP's
    • Categories
    • Tags
    • Site Search
    • Page Builder
      • Using Templates
    • Media Library
  • Selling Your Content
    • Single Purchases
    • Bundles
    • Memberships
    • Selling FAQ
    • SCA
  • Running your business
    • Customers
      • Received Payments
    • Progress Reports
    • Orders
      • Creating Manual Orders
    • Managing Subscriptions
      • How Subscriptions Work
      • Creating Subscription Plans
      • Editing a Subscription Plan
      • Canceling & or Deleting customers subscription
      • How to: Creating a tiered subscription offering
      • Changing your Maven Subscription Plan
      • Emailing your Subscribers
      • Team Plans
      • Override Plans Page
      • Custom Welcome Page
      • Free Subscriptions
    • Coupons
    • Gift Cards
    • Gift Subscriptions
    • GDPR
    • Selling Merch
  • Managing your site
    • Activity
      • Events List
      • Single Event
      • UTM Campaigns
      • Comments
    • Reports
    • Settings
      • Scripts
      • Links
      • Design
      • Communications
      • Integrations
        • Google Analytics
        • Google Tag Manager
        • Mailchimp
        • Zapier
        • Youtube
        • Helpscout
        • Tree Planting
      • Taxes
        • Stripe
        • Braintree
        • U.S. Sales Tax
        • EU Value Added Tax
      • Forms
        • Contact form
    • Market
      • Social Links
      • Social
      • Comments
      • Reviews
      • Bookmarks
      • Loves
      • Playlists
      • Gamification
      • PayPal ($)
      • Projects ($)
      • Profiles ($)
    • Security
      • Spam
    • Notifications
    • SEO
  • Developers
    • API
      • Coupons
      • Courses
      • Customers
      • Events
      • Lessons
      • Chapters
      • Course Chapters
      • Orders
      • Payments
      • Subscriptions
    • Webhooks
    • Site Customizations
  • Changelog
    • 2023
      • January
    • 2022
      • December 2022
      • November 2022
      • October 2022
      • September 2022
      • August 2022
      • July 2022
      • May 2022
      • April 2022
      • March 2022
      • February 2022
      • January 2022
    • 2021
      • November 2021
      • September 2021
      • August 2021
      • July 2021
      • June 2021
      • May 2021
      • February 2021
      • January 2021
    • 2020
      • November 2020
      • October 2020
      • September 2020
      • August 2020
      • July 2020
      • June 2020
      • May 2020
      • April 2020
  • Beta Accounts
    • Ensuring Subscription Plans are Synced with Stripe
    • Updating your Stripe Product ID
Powered by GitBook
On this page
  • All Subscriptions
  • Show Subscription
  • Create Subscription
  • Update Subscription
  • Delete a Subscription

Was this helpful?

Export as PDF
  1. Developers
  2. API

Subscriptions

All Subscriptions

GET https://yoursite.mavenseed.com/api/v1/subscriptions

Retrieve all subscriptions

Path Parameters

Name
Type
Description

page

integer

Results are paginated.

Headers

Name
Type
Description

Authorization

string

Auth token

[
    {
        "id": 12,
        "customer_id": null,
        "subscription_plan_id": null,
        "stripe_id": null,
        "expiration": null,
        "status": null,
        "created_at": "2019-09-16T13:40:50.336-04:00",
        "updated_at": "2019-09-16T13:40:50.336-04:00"
    },
    {
        "id": 18,
        "customer_id": 1956,
        "subscription_plan_id": 14,
        "stripe_id": "sub_G0EDCYMgIpWTS0",
        "expiration": "2019-11-16T09:45:59.000-05:00",
        "status": "active",
        "created_at": "2019-10-16T10:45:27.077-04:00",
        "updated_at": "2019-10-16T11:02:19.573-04:00"
    }
]

Show Subscription

GET https://yoursite.mavenseed.com/api/v1/subscriptions/:id

Retrieve a single subscription

Headers

Name
Type
Description

Authorization

string

Auth token

{
    "id": 12,
    "customer_id": null,
    "subscription_plan_id": null,
    "stripe_id": null,
    "expiration": null,
    "status": null,
    "created_at": "2019-09-16T13:40:50.336-04:00",
    "updated_at": "2019-09-16T13:40:50.336-04:00"
}
null

Create Subscription

POST https://yoursite.mavenseed.com/api/v1/subscriptions

Create a subscription.

Headers

Name
Type
Description

Authorization

string

Auth Token

Request Body

Name
Type
Description

customer_id

integer

ID of customer to attach subscription to

subscription_plan_id

integer

ID of subscription plan for customoer

stripe_id

string

Stripe subscription id

expiration

string

Expiration of subscription in datetime format

status

integer

0 - active, 1 - past_due, 2- canceled, 3 - unpaid, 4 - free

{
    "id": 12,
    "customer_id": null,
    "subscription_plan_id": null,
    "stripe_id": null,
    "expiration": null,
    "status": null,
    "created_at": "2019-09-16T13:40:50.336-04:00",
    "updated_at": "2019-09-16T13:40:50.336-04:00"
}

Update Subscription

PATCH https://yoursite.mavenseed.com/api/v1/subscriptions/:id

Update a single subscription. All of the above properties in create subscription are valid.

Headers

Name
Type
Description

Authorization

string

Auth token

{
    "id": 12,
    "customer_id": null,
    "subscription_plan_id": null,
    "stripe_id": null,
    "expiration": null,
    "status": null,
    "created_at": "2019-09-16T13:40:50.336-04:00",
    "updated_at": "2019-09-16T13:40:50.336-04:00"
}

Delete a Subscription

DELETE https://yoursite.mavenseed.com/api/v1/subscriptions/:id

Delete a subscription.

Headers

Name
Type
Description

Authorization

string

Auth token.

PreviousPaymentsNextWebhooks

Last updated 3 years ago

Was this helpful?