Skip to main content

Fetch Plan

Reactivate a previously canceled single subscription plan.

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

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

plan-id int32

This is the unique ID of the subscription plan you want to fetch.

Sample Response

200 OK

{
"id": "11aa6bc6-52e6-4821-900c-f33f9bf0c060",
"title": "Dstv Sub",
"frequency": "MONTHLY",
"internalReference": "test-1212",
"amount": 1000.00,
"currency": "USD",
"status": "active",
"createdAt": "2024-06-06T19:43:55Z"
}