PayFanout API reference
    Preparing search index...

    Interface StripeSubscriptionLike

    Subscription status stays a plain string: Stripe's vocabulary is wider than the unified one and future values must fall through to "unknown" instead of failing a cast.

    interface StripeSubscriptionLike {
        canceled_at?: number | null;
        created: number;
        currency?: string;
        current_period_end?: number;
        current_period_start?: number;
        customer?: string | { id: string } | null;
        default_payment_method?: string | { id: string } | null;
        id: string;
        items?: { data: StripeSubscriptionItemLike[] };
        metadata?: Record<string, string>;
        object: "subscription";
        status: string;
    }
    Index
    canceled_at?: number | null
    created: number
    currency?: string

    Lowercase ISO 4217 (top-level since long before the pinned version).

    current_period_end?: number
    current_period_start?: number

    Present on API versions before 2025-03-31.basil (the pinned 2024-06-20 included).

    customer?: string | { id: string } | null
    default_payment_method?: string | { id: string } | null
    id: string
    items?: { data: StripeSubscriptionItemLike[] }
    metadata?: Record<string, string>
    object: "subscription"
    status: string