Skip to main content

Activate Subscriptions

Reactivate a previously canceled subscription.

GET https://api.spotflow.co/api/v1/plans/:plan-id/subscriptions

Headers

authorization
String

Bearer SECRET_KEY
Include your secret key in the request header as a Bearer token for authorization. Unauthorized requests will result in a 401 HTTP status code.

Path Parameters

subscription-id int32

This is the unique ID of the subscription you want to activate. Y

Sample Response

200 OK

Fetch Subscription by subscription-id

{
"id": "4799b60f-81ee-4655-b967-f080952f9bea",
"customerId": "95e4a0fa-9fb2-4dd4-9c81-cf6f4dad04a3",
"planId": "961ca3d6-0505-4bc5-8dd3-fc160ac4afc9",
"status": "active",
"startDate": "2025-02-19T10:25:02Z",
"nextPaymentDate": "2025-02-20T10:25:02Z",
"createdAt": "2025-02-19T10:25:02Z",
"metadata": {
"SubscriptionPlan": "MonthlyPass",
"productName": "Algo.ai"
},
"currency": "USD",
"regionName": "Global",
"amount": 0
}

Error Handling

If an error occurs, the API will return an appropriate HTTP status code and error message in the response body. Check out our error documentation for more details.