> ## 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.

# Quickstarts

> Every step-by-step guide that takes you from an empty sandbox to a working integration.

Each guide below walks you through one job from start to finish in the sandbox, so no real money moves. Pick the one closest to what you are building. Most of them need a sandbox key, so if you do not have one yet, start by setting up your development environment.

## Set up your tools

> [card] [Set up your development environment](https://docs.bachs.io/get-started/development-environment.md)
>
> Get a sandbox key, the CLI and a server SDK ready, then send your first request.

> [card] [Set up webhooks](https://docs.bachs.io/guides/webhooks/overview.md)
>
> Add an endpoint in the developer portal and choose the events it receives.

> [card] [Test webhooks locally](https://docs.bachs.io/developer-portal/local-testing.md)
>
> Forward live events to your machine and verify a real signature.

> [card] [Starter templates](https://docs.bachs.io/build/starters/overview.md)
>
> Start a new app from working Next.js code and run it in the sandbox.

## Accept a payment

> [card] [Accept a payment with Checkout](https://docs.bachs.io/guides/checkout/checkout-sessions.md)
>
> Create a hosted checkout, send your customer to it and confirm the payment with a webhook.

> [card] [Add an overlay checkout](https://docs.bachs.io/guides/checkout/overlay-checkout.md)
>
> Open the hosted checkout in a modal, so your customer pays without leaving your site.

> [card] [Charge in any currency](https://docs.bachs.io/guides/checkout/any-currency-checkout.md)
>
> Price a product in your customer's currency and settle to the balance you hold.

> [card] [Charge a saved card](https://docs.bachs.io/guides/payments/charge-a-saved-card.md)
>
> Save a card at checkout, then charge it later with no customer present.

> [card] [Sell digital products](https://docs.bachs.io/build/use-cases/digital-products.md)
>
> Sell at a fixed price or pay what you want, and release the download once the payment is confirmed.

## Sell subscriptions

> [card] [Sell SaaS subscriptions](https://docs.bachs.io/build/use-cases/saas-subscriptions.md)
>
> Sell monthly and yearly plans and give access from webhooks.

> [card] [Create a portal session](https://docs.bachs.io/guides/customer-portal/create-portal-session.md)
>
> Send your customer to the portal, already signed in, to manage their subscription.

## Platforms and marketplaces

> [card] [Connect quickstart](https://docs.bachs.io/connect/quickstart.md)
>
> Create an account, onboard it and run a direct charge with your platform fee.

> [card] [Build a marketplace](https://docs.bachs.io/build/use-cases/marketplace.md)
>
> Create a seller, take a payment and watch the seller's share arrive.

> [card] [Build a SaaS platform](https://docs.bachs.io/build/use-cases/saas-platform.md)
>
> Let a business on your platform sell to its own customers, and read your fee back.

> [card] [Accept a payment for a seller](https://docs.bachs.io/connect/marketplaces/accept-a-payment.md)
>
> Collect a sale as your platform and pay the seller its share.

## Pay out your balance

> [card] [Create a payout](https://docs.bachs.io/guides/payouts/payout-using-api.md)
>
> Send money from your balance to your bank account or wallet, from the dashboard or the API.


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