Skip to main content
The subscription service is the core domain API for blocks that show or modify a customer’s subscription. It exposes reactive state for the current subscription and methods for every mutation a customer-facing block needs.

Setup

Shape

A Subscription carries items, discounts, status (active | paused | canceled | expired | failed), nextDeliveryDate, frequency, and the owning customerId.

Reactive state

Example: pause / resume toggle

Example: adding a discount