ID of a DRAFT order created via square.orders.create(...) that defines
what ships each billing cycle.
OptionalordinalPosition 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.
A subscription phase that bills from an order template.
Use with
orders.create({ state: 'DRAFT', pricingOptions: { autoApplyDiscounts: true } })(ororders.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.