> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bachs.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Money is always a decimal string at the currency's precision (for example "29.00"), paired with an ISO 4217 currency field. Never use minor units.
> Build against the sandbox first: base URL https://sandbox-api.bachs.io with sk_sandbox_ keys. Production is https://api.bachs.io with sk_live_ keys; going live is a key swap.
> Treat webhooks (for example collection.succeeded) as the source of truth for fulfilment, never client-side events or redirects.
> Subscriptions are created by completing a checkout for a recurring product. There is no direct create-subscription endpoint.
> IDs carry resource prefixes (cust_, prod_, sub_, chk_, inv_, ref_) and timestamps are ISO 8601 UTC.

# Build with Bachs

> Complete, working builds for the products people make with Bachs. Pick what you are building and follow one page from first request to go-live.

The [Guides](/introduction) explain how each Bachs feature works. This tab shows how the features fit together into a whole product. Each use case starts from what you are building, walks you through it in the sandbox, and shows what changes when you go live. It links to the guides and the API reference for detail instead of repeating them.

## Use cases

| Use case | What you'll build | Built on |
| - | - | - |
| [SaaS subscriptions](/build/use-cases/saas-subscriptions) | Monthly and yearly plans, access from webhooks, self-service billing. | Products, checkout, subscriptions, customer portal |
| [Marketplace](/build/use-cases/marketplace) | You sell on behalf of sellers and pay each seller its share. | Connect, destination charges |
| [Platform for businesses](/build/use-cases/saas-platform) | Businesses on your platform sell to their own customers, and you take a fee. | Connect, direct charges, platform fees |

The two Connect use cases need the `connect` capability on your account. See [Become a platform](/connect/become-a-platform).

## Examples

* [Live demo](/demo): a storefront running one-time payments, subscriptions, trials and pay-what-you-want on the sandbox, built the way these pages recommend.
* [Community projects](/community/overview): SDKs, plugins and boilerplates built by the Bachs community.

## Building with an AI assistant

The docs are written to work for coding assistants as well as people. [Build with AI](/build/ai) covers three workflows: one-time payments, subscriptions, and a marketplace. Each has a self-contained prompt and checks for the result, with an optional Bachs skill for repeated work.

* **Markdown pages**: add `.md` to any page URL to get it as Markdown for your assistant.
* **Docs index**: [`llms.txt`](https://docs.bachs.io/llms.txt) lists every page with a one-line summary, starting with these use cases.
* **Guided workflows**: [Build with AI](/build/ai) explains what to prepare, what to ask your assistant to build, and how to verify the result. No skill installation is required.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.