Selling scripts on Tebex or BuiltByBit with automatic Latch access
Latch team · 2026-12-05 · 4 min read
Update: Latch now also connects Stripe and your own checkout, and lets you limit how many servers one purchase covers. See what changed.
If you sell scripts on Tebex or BuiltByBit, giving each buyer access used to be manual work: wait for the sale, ask for their Latch account ID, open the script to that account, and remember to take it away if the payment was refunded. You can now connect your store to Latch and let that happen on its own.
This post covers how the connection works, how buyers are matched to their Latch accounts, what happens on refunds, and why access someone paid for can't be taken away by hand.
How it works
You connect your store in your workspace under Stores and link each store product to a Latch script or bundle. From then on, every purchase follows the same path:
The buyer downloads the protected package from their Library, puts it in the server's resources/ or mods/ folder and starts the server with their key, the same way as any script on Latch. Payment stays in your store. Latch takes no commission; store connections are part of the Pro, Studio and Enterprise plans.
Tebex
Tebex sends a signed notice to Latch for each payment, refund and dispute. Setup takes a few minutes:
- In Tebex, go to Developers › Webhooks › Endpoints and add the webhook address from your Stores page.
- Select the payment, refund, dispute and recurring payment events listed on the Stores page.
- Paste the webhook secret Tebex shows into Latch, then validate the endpoint in Tebex.
- Link each Tebex package to a script or bundle.
Latch then has to find out which Latch account the buyer uses. It tries, in this order:
- A
latch_accountfield on the package. If you add a text variable with that identifier, buyers type their account ID at checkout and get access right away. - Their email. If the checkout email belongs to a Latch account with a verified address, the purchase goes to that account.
- A claim link. If neither matches, Latch emails the buyer a link. They sign in or create an account, and the purchase is linked to it.
Refunds and lost chargebacks close the order and remove the access it gave. If you win a dispute, access comes back. For subscription packages, access ends when Tebex reports that the subscription has ended.
BuiltByBit
BuiltByBit doesn't share buyer emails, so matching works differently. You set up two things in your BuiltByBit creator dashboard:
- A purchase webhook with the address and body template from your Stores page, so Latch hears about each sale.
- An anti-piracy placeholder pointing at Latch. When a buyer downloads your resource, BuiltByBit asks Latch for a personal claim link and writes it into the file. Put the placeholder in a small text file in your download, for example
CLAIM.txt.
The buyer opens the link, signs in, and the purchase is linked to their account. Each link works once and expires after 30 days; downloading again later gives a fresh one. Until the purchase notice arrives, a link doesn't give access to anything, so a link alone is never enough.
Purchased access is locked
When someone pays for a script, the access belongs to them. Access that comes from a store purchase can't be removed by the developer: not from the Stores page, the Access tab, a bundle, the API, the CLI or the MCP server. A bundle that someone bought can't be deleted or emptied, and a product link that has sales can't be removed.
Access ends only when the purchase itself ends:
| What happens | Result |
|---|---|
| Tebex refund or lost chargeback | Access ends automatically |
| Tebex dispute opened, then won | Access pauses, then comes back |
| Tebex subscription ends | Access ends automatically |
| BuiltByBit refund | Open a support ticket; the Latch team ends it |
| Claim link used by the wrong account | The Latch team moves it to the right one |
This protects buyers from paying and then losing what they paid for, and it gives your store a reason to be trusted. Access you grant by hand works as before: you can still take it away whenever you want.
Trying it first
A new connection starts in Test mode. Purchases in test mode are recorded and matched to accounts, and the Stores page shows which scripts each one would give, but no access is given. Make a test purchase, check that it matched the right account and script, then press Go live.
The store stays in test mode until you go live. Once it has a real sale it can't go back to test mode, and when you go live, purchases made during the test give access like any other purchase, so a paying buyer is never left without it.
Selling on your own website
If you sell through your own site instead of a store, use the Latch API: when a payment completes, grant access to the buyer's account ID, and revoke it on a refund. Latch can't see payments made on your own site, so access given this way is treated like access you grant by hand and isn't locked.
Getting started
Open your workspace, go to Stores, and connect Tebex or BuiltByBit. The Selling through Tebex or BuiltByBit guide walks through each field. If you're new to Latch, the plans page lists what each plan includes.