@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface SubscriptionPhaseInput

    A subscription phase that bills from an order template.

    Use with orders.create({ state: 'DRAFT', pricingOptions: { autoApplyDiscounts: true } }) (or orders.builder().asTemplate()) to drive product-based recurring billing — each cycle invoices the line items on the template, re-applying catalog pricing rules (e.g. customer-group wholesale tiers) at calculation time.

    interface SubscriptionPhaseInput {
        orderTemplateId: string;
        ordinal?: number | bigint;
    }
    Index
    orderTemplateId: string

    ID of a DRAFT order created via square.orders.create(...) that defines what ships each billing cycle.

    ordinal?: number | bigint

    Position of this phase in the subscription's phase sequence. Defaults to array position when omitted. Accepts a number or bigint — coerced to bigint at the SDK boundary.