Skip to content

DoCurious API Reference / types / Subscription

Interface: Subscription

Defined in: types/payment.types.ts:123

User subscription

Extends

Properties

cancelAtPeriodEnd

cancelAtPeriodEnd: boolean

Defined in: types/payment.types.ts:129


createdAt

createdAt: string

Defined in: types/common.types.ts:154

ISO 8601 datetime when the entity was created

Inherited from

BaseEntity.createdAt


currentPeriodEnd

currentPeriodEnd: string

Defined in: types/payment.types.ts:128


currentPeriodStart

currentPeriodStart: string

Defined in: types/payment.types.ts:127


id

id: string

Defined in: types/common.types.ts:167

Inherited from

BaseEntity.id


paymentMethodId?

optional paymentMethodId: string

Defined in: types/payment.types.ts:130


planId

planId: string

Defined in: types/payment.types.ts:125


status

status: "active" | "cancelled" | "expired" | "past_due"

Defined in: types/payment.types.ts:126


updatedAt

updatedAt: string

Defined in: types/common.types.ts:156

ISO 8601 datetime when the entity was last modified

Inherited from

BaseEntity.updatedAt


userId

userId: string

Defined in: types/payment.types.ts:124

DoCurious Platform Documentation