Subscriptions
All Subscriptions
GET
https://yoursite.mavenseed.com/api/v1/subscriptions
Retrieve all subscriptions
Path Parameters
page
integer
Results are paginated.
Headers
Authorization
string
Auth token
Show Subscription
GET
https://yoursite.mavenseed.com/api/v1/subscriptions/:id
Retrieve a single subscription
Headers
Authorization
string
Auth token
Create Subscription
POST
https://yoursite.mavenseed.com/api/v1/subscriptions
Create a subscription.
Headers
Authorization
string
Auth Token
Request Body
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
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
Authorization
string
Auth token
Delete a Subscription
DELETE
https://yoursite.mavenseed.com/api/v1/subscriptions/:id
Delete a subscription.
Headers
Authorization
string
Auth token.
Last updated