Skip to main content
GET
/
plans
/
{plan-id}
/
subscriptions
cURL
curl --request GET \
  --url https://api.spotflow.co/api/v1/plans/{plan-id}/subscriptions \
  --header 'Authorization: Bearer <token>'
[
  {
    "content": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "status": "active",
        "startDate": "2023-11-07T05:31:56Z",
        "nextPaymentDate": "2023-11-07T05:31:56Z",
        "createdAt": "2023-11-07T05:31:56Z",
        "customer": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "email": "jsmith@example.com",
          "name": "John Doe"
        },
        "metadata": {
          "additionalProp1": "string",
          "additionalProp2": "string",
          "additionalProp3": "string"
        },
        "currency": "NGN",
        "regionName": "Nigeria",
        "amount": 5000
      }
    ],
    "pageNumber": 123,
    "pageSize": 123,
    "totalElements": 123,
    "totalPages": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

plan-id
string<uuid>
required

The unique identifier of the plan whose subscriptions are to be retrieved.

Response

A JSON array of subscription objects.

content
object[]
pageNumber
integer
pageSize
integer
totalElements
integer
totalPages
integer