Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Get active subscriptions for a project

Returns all active subscriptions (manual and product-based) for a project as of the current date.

What are Active Subscriptions? Active subscriptions combine:

  • Manual subscriptions: Fixed price and variable price subscriptions configured directly for the project
  • Product subscriptions: Products with subscription pricing from the billing version/snapshot (for Single projects) or current products (for Support projects)

Project Type Behavior:

  • Single Projects: Uses products from the billing version/snapshot (productsBillingProjectSnapshotId or billingProjectSnapshotId)
  • Support Projects: Uses current products (no snapshot)

What is returned:

  • Only subscriptions that are currently active (activeFrom <= now <= activeTo)
  • Each subscription includes: name, activeFrom date, activeTo date, priceSubscription, pricePerUnit
  • Manual subscriptions: name comes from manualTitle, dates from fromDate/toDate
  • Product subscriptions: name comes from finalName, dates from activeFrom/activeTo

Note: Requires project access permission.

GET/projects/{id}/active-subscriptions
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200Active subscriptions retrieved successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Project not found or access denied
Request
curl -X GET "https://leadtime.app/api/public/projects/string/active-subscriptions" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
Active subscriptions retrieved successfully