API Reference
Subscriptions
Recurring revenue API.
Subscriptions are bound to a SubscriptionPlan (the template) and a Customer (the buyer). The customer's wallet authorises a multi-period allowance; Strimz's scheduler charges every period.
Plans
Subscriptions
Customers create subscriptions on-chain via your hosted checkout. There's no POST /v1/subscriptions endpoint. The indexer projects them when the chain emits SubscriptionCreated.
Read paths:
Status enum
Only cancelled and lapsed are terminal; at_risk is recoverable if the customer tops up their wallet.
Charges
Charges are auto-created by the scheduler when a charge is attempted on-chain.
Webhook events
| Event | Fires when |
|---|---|
subscription.created | A new on-chain subscription is observed |
subscription.charged | A periodic charge succeeded |
subscription.charge_failed | A charge attempt failed |
subscription.cancelled | The merchant or customer cancelled |
subscription.lapsed | Grace period exceeded |
