Skip to main content
GET
Get Subscription

Endpoint

Overview

Retrieves subscription information for the authenticated user’s DROP service. Fetches data from Polar API and formats it for display.

Request

Requires authentication via Bearer token. User must have an active DROP service entitlement with a Polar subscription.

Response

string
Polar subscription ID
string
Subscription status (e.g., “active”, “canceled”)
number
Current billing period start timestamp (Unix seconds)
number
Current billing period end timestamp (Unix seconds)
boolean
Whether subscription will cancel at period end
string
Plan name from metadata
string
Billing cycle (e.g., “monthly”, “yearly”)
object
Price information
object
Product information

Implementation Details

Code Reference

Status Codes

OK
Success
Unauthorized
Missing or invalid authentication token
Not Found
No active subscription found
Internal Server Error
Failed to fetch subscription data from Polar

Example Request

Example Response

Notes

  • Only works for DROP service subscriptions
  • Requires active Polar subscription ID
  • Price is converted to PLN (USD prices multiplied by 4)
  • Timestamps are returned as Unix seconds

Authorizations

Authorization
string
header
required

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

Response

200 - application/json

Subscription information

id
string
status
string
currentPeriodStart
integer
currentPeriodEnd
integer
cancelAtPeriodEnd
boolean
plan
string
billingCycle
string
price
object
product
object