Subscription
Subscription plans, start, info, cancel, and manage
📄️ Get available subscription plans
Get available subscription plans
📄️ Record that an Apple in-app purchase checkout was started
Record that an Apple in-app purchase checkout was started
📄️ Start subscription with plan
Start subscription with plan
📄️ Get current subscription info
Get current subscription info
📄️ Cancel subscription
Cancel subscription
📄️ Check Apple subscription ownership before a purchase
Read-only check the iOS app runs before starting an App Store purchase. The app
📄️ Get Stripe billing portal URL
Get Stripe billing portal URL
📄️ Sync subscription by checkout session ID
Synchronizes user subscription from Stripe using checkout session ID.
📄️ Get the current offer for the authenticated user
Returns the user's currently-assigned discount offer when inside its server-derived window; 403 when no offer is assigned or it has expired.
📄️ Email deep-link — start checkout for an assigned offer
Public. Resolves the emailed offer hash to a user, re-validates the offer window, stamps redirected-from-mail, and starts a Stripe checkout on the persisted offer plan. Redirects to the checkout URL on success, or to the configured dashboard cancel page when the offer is invalid, expired, ineligible, or checkout fails.
📄️ Reconcile the caller's Apple subscription with Apphud
Fetches the caller's Apphud customer and, when Apphud shows a live Apple subscription that is newer than the stored one (or the stored one is not live), writes it through the same path the Apphud webhook uses. Heal-only: it never cancels, downgrades, or revives an already-expired period. Throttled per user (30 s); a throttled call returns 429 with a `Retry-After` header. When Apphud cannot be reached or the server has no Apphud key configured, returns 503 with `outcome: unavailable`.