Plans
Create and manage subscription plans, list subscriptions, and query payment history.
Plans
Plan management and subscription queries are handled via the Recur REST API through RecurClient.
getPlans(appId)
List all plans for an app. No authentication required.
getPlan(appId, planId)
Fetch a single plan by ID.
listPlans(appId)
Alias for getPlans. Returns the same PlanInfo[].
createPlan(options)
Create a new plan. Requires an API key or merchant authentication.
listSubscriptions(appId, options?)
List subscriptions for an app. Requires API key (merchant scope).
getPaymentHistory(appId, options?)
Fetch payment transaction history for an app.
getMySubscriptions(authToken, options?)
Fetch the authenticated subscriber's own subscriptions across all apps.
registerSubscription(options, authToken)
Manually register a subscription with the API after on-chain creation. The high-level subscribe() calls this automatically — use this only if you built and sent the transaction yourself.
On-chain account data
getSubscriptionAccount(subscriptionPda)
Deserializes the on-chain subscription PDA data.
deriveSubscriptionPda(subscriber, merchant, planSeedHex)
Derive the PDA address without building a transaction.