Skip to content

Schemas

Subscription

The subscription you pay your plan with, as the payment provider last reported it. Absent while you have none, or once it has ended: you are then on the free plan.

FieldDescription
status SubscriptionStatus, required
renewsAt string (date-time), optionalWhen the current billing period ends and the plan is renewed and charged again. Absent when the subscription is set to end (cancelAt), and while it doesn't pay for the plan (UNPAID, INCOMPLETE, PAUSED).
cancelAt string (date-time), optionalWhen the subscription ends, as it is set to. While it pays, you keep your plan until then; you are on the free plan after it. Absent when it renews.
change PlanChange, optional

Uses SubscriptionStatus, PlanChange.