Start here
How Horse works
A handful of ideas cover everything in Horse. Learn them once and every screen in the dashboard and every call in the SDK makes sense.
#The pieces
| Idea | What it is | Example |
|---|---|---|
| Workspace | Your studio or company in Horse. It holds your developer accounts, apps and team. Only people you invite can see it. | Brightside Studio |
| Developer account | Your Apple developer team, connected with an App Store Connect API key. Added once per team, not per app. | Team AB12CD34EF |
| App | One app on the App Store, known by its bundle ID and numeric Apple ID. It has its own SDK key and notification URL. | app.brightside.lumi |
| Product | Something you sell, exactly as set up in App Store Connect: a subscription, a lifetime unlock or a consumable. | lumi.pro.yearly |
| Entitlement | What a purchase unlocks. Your app checks entitlements, never products. | pro |
| Offering | A set of packages your paywall sells, in order, with custom fields for anything the paywall needs. | weekly, yearly, lifetime |
| Package | One plan in an offering, pointing at a product. | $rc_annual → lumi.pro.yearly |
| Placement | A place in your app where a paywall opens. Each one says which offering it sells. | onboarding, settings |
| Paywall | The design of an offering's paywall, made in the dashboard and drawn natively by the SDK. | |
| Customer | One person using your app. Anonymous until your app signs them in. |
#Why entitlements and not products
Your app asks one question: is this person entitled to pro? It never asks which product they bought. So you can add a new plan, change a price or run a price test without touching your app's code. Each product is mapped to the entitlement it grants, and a person keeps the entitlement for as long as any of their purchases grants it.
if Horse.shared.isEntitled("pro") { … } // true for the weekly, yearly and lifetime buyer alike#Offerings, placements and paywalls
An offering is what to sell. A placement is where it's sold. A paywall is how it looks.
- Mark one offering current. It's what your app gets when it asks for the current offering, and what every placement sells unless you say otherwise.
- Give a placement its own offering when it should sell something else. For example, the
onboardingplacement might sell a plan with a free trial whilesettingssells without one. - Targeting rules and experiments can change which offering a placement sells for each person: by country, app version, entitlement, or as one side of an A/B test. Your app keeps asking for the placement's offering, and the right one comes back.
- Design a paywall for an offering and the SDK draws it. You can also keep your own paywall and read the offering's packages yourself.
#Where Horse hears about purchases
From your app. The SDK sends each purchase to Horse the moment it happens, so access unlocks at once.
From Apple. App Store Server Notifications tell Horse about renewals, refunds, billing problems, cancellations and Family Sharing, even while your app stays closed for months.
By asking Apple. With your App Store Connect API key, Horse looks up transactions and fetches back any notifications it missed.
All three are signed by Apple and checked by Horse, so nobody can fake a purchase by calling Horse directly. Your app's SDK key only identifies the app: it can't grant access or read anyone else's data.
#Production and Sandbox
Horse keeps sandbox purchases (TestFlight, Xcode and Sandbox Apple Accounts) apart from real ones. They unlock your app while you test, but they never count in revenue. In the dashboard, the Show switch flips between real and test data.
#What's next
Ready to set it up? Start the tutorial.