Authorizations
Path Parameters
Response
Successful response
curl --request GET \
--url https://app.flowglad.com/api/v1/subscriptions/{id} \
--header 'Authorization: <api-key>'
{
"subscription": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"startDate": "<string>",
"customerId": "<string>",
"organizationId": "<string>",
"status": "trialing",
"defaultPaymentMethodId": "<string>",
"backupPaymentMethodId": "<string>",
"trialEnd": "<string>",
"currentBillingPeriodStart": "<string>",
"currentBillingPeriodEnd": "<string>",
"metadata": {},
"canceledAt": "<string>",
"cancelScheduledAt": "<string>",
"cancellationReason": "<string>",
"replacedBySubscriptionId": "<string>",
"isFreePlan": true,
"priceId": "<string>",
"runBillingAtPeriodStart": true,
"interval": "day",
"intervalCount": "<any>",
"billingCycleAnchorDate": "<string>",
"name": "<string>",
"renews": true,
"current": true
}
}
curl --request GET \
--url https://app.flowglad.com/api/v1/subscriptions/{id} \
--header 'Authorization: <api-key>'
{
"subscription": {
"id": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdByCommit": "<string>",
"updatedByCommit": "<string>",
"livemode": true,
"startDate": "<string>",
"customerId": "<string>",
"organizationId": "<string>",
"status": "trialing",
"defaultPaymentMethodId": "<string>",
"backupPaymentMethodId": "<string>",
"trialEnd": "<string>",
"currentBillingPeriodStart": "<string>",
"currentBillingPeriodEnd": "<string>",
"metadata": {},
"canceledAt": "<string>",
"cancelScheduledAt": "<string>",
"cancellationReason": "<string>",
"replacedBySubscriptionId": "<string>",
"isFreePlan": true,
"priceId": "<string>",
"runBillingAtPeriodStart": true,
"interval": "day",
"intervalCount": "<any>",
"billingCycleAnchorDate": "<string>",
"name": "<string>",
"renews": true,
"current": true
}
}
Successful response
Show child attributes
Was this page helpful?