GET
/
api
/
subscriptions
/
curl --request GET \
  --url https://api.uselotus.io/api/subscriptions/ \
  --header 'Authorization: <api-key>'
[
  {
    "subscription_id": "<string>",
    "start_date": "2023-11-07T05:31:56Z",
    "end_date": "2023-11-07T05:31:56Z",
    "auto_renew": true,
    "is_new": true,
    "subscription_filters": [
      {
        "value": "<string>",
        "property_name": "<string>"
      }
    ],
    "customer": {
      "customer_name": "<string>",
      "email": "jsmith@example.com",
      "customer_id": "<string>"
    },
    "billing_plan": {
      "plan_name": "<string>",
      "plan_id": "<string>",
      "version_id": "<string>",
      "version": 123
    },
    "fully_billed": true,
    "addons": [
      {
        "addon_subscription_id": "<string>",
        "start_date": "2023-11-07T05:31:56Z",
        "end_date": "2023-11-07T05:31:56Z",
        "addon": {
          "addon_name": "<string>",
          "addon_id": "<string>",
          "addon_type": "flat",
          "billing_frequency": "one_time"
        },
        "fully_billed": true
      }
    ],
    "metadata": {}
  }
]

Retrieves an array of subscription objects.

lotus.list_subscriptions(customer_id="cust_id")

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Query Parameters

customer_id
string | null
required

Filter to a specific customer.

Minimum length: 1
plan_id
string

Filter to a specific plan.

range_end
string

If specified, will only return subscriptions with a start date before this date.

range_start
string

If specified, will only return subscriptions with an end date after this date.

status
enum<string>[]

Filter to a specific set of subscription statuses. Defaults to active.

subscription_filters
object[]

Filter to a specific set of subscription filters. If your billing model only allows for one subscription per customer, you very likely do not need this field. Must be formatted as a JSON-encoded + stringified list of dictionaries, where each dictionary has a key of 'property_name' and a key of 'value'.

Response

200 - application/json

The response is of type object[].