Retrieve a single subscription for the location, including line items.
Security
PartnerApiKey and PartnerOAuth
- Mock serverhttps://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/subscription/{subscriptionId}
- Productionhttps://api-prod.lobbie.com/lobbie/api/partner/v2/account/{accountId}/location/{locationId}/subscription/{subscriptionId}
curl -i -X GET \
'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/subscription/1234' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'x-api-key: YOUR_API_KEY_HERE'Subscription retrieved successfully
Subscription end date (UTC midnight of stored date)
Example:"2025-01-15T14:00:00Z"
Next billing date (UTC midnight of stored date)
Example:"2025-01-15T14:00:00Z"
Payment customer ID. May be null for legacy subscriptions without a resolved payment customer.
Example:400
Subscription start date (UTC midnight of stored date)
Example:"2025-01-15T14:00:00Z"
Subscription status
Enum:"DRAFT""ACTIVE""PENDING""PAUSED""CANCELLED""COMPLETED""FAILED""VOID"
Example:"ACTIVE"
Response
{ "createdAt": "2025-01-15T14:00:00Z", "endDate": "2025-01-15T14:00:00Z", "externalId": "ext_sub_001", "id": 1234, "lineItems": [ { … } ], "locationId": 200, "nextBillingDate": "2025-01-15T14:00:00Z", "note": "Patient approved monthly plan", "occurrences": 12, "orderId": 700, "patientId": 300, "paymentCustomerId": 400, "paymentMethodId": 500, "recurrenceFrequencyUnit": "MONTHLY", "recurrenceFrequencyValue": 1, "startDate": "2025-01-15T14:00:00Z", "status": "ACTIVE", "updatedAt": "2025-01-15T14:00:00Z" }