API Reference

Subscription

💡 To populate relational property, please use include query parameter in the API call.
NameTypeDescription
idstringSubscription ID
priceIdstringPrice ID
quotaIdstringQuota ID
createdAtnumberTimestamp when the subscription was created
pricePricePrice object
quotaQuotaQuota object
type Subscription = {
  id: string
  priceId: string
  quotaId: string
  createdAt: number
  // price: Price
  // quota: Quota
}
{
  "id": "sub_27r555vvy5hr4orr607",
  "priceId": "price_3lg3x2cf0n4mo",
  "quotaId": "quo_3g7nayf85ps5soo4w0k",
  "createdAt": 1684491613
}