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

# Bachs Apps

> Build an app that other businesses on Bachs connect with one click.

A Bachs app gets permission to work with another business's Bachs account. A
helpdesk can read payments and make refunds. An accounting tool can read
balances and payouts. The business picks what to connect, reads what your app
asks for and why, and clicks **Allow**. Nobody copies an API key.

Any verified business can make apps. Keep an app to your own businesses, share
it by link, or list it in the Bachs app directory. Publishing runs automatic
checks in seconds; nobody at Bachs reviews it.

[Create your first app →](https://docs.bachs.io/apps/create-an-app.md)

## Get started

> [card] [How Bachs Apps work](https://docs.bachs.io/apps/how-apps-work.md)
>
> One app followed from the day it is built to the day it is removed.

> [card] [Create an app](https://docs.bachs.io/apps/create-an-app.md)
>
> Make an app in sandbox, get its client secret and test it.

> [card] [Connect a business](https://docs.bachs.io/apps/connect-a-business.md)
>
> Send a business to Bachs, swap the code for tokens and call the API.

## Build an app

> [card] [Connect a business](https://docs.bachs.io/apps/connect-a-business.md)
>
> The approval page, the code swap, API calls and refresh.

> [card] [When a connection ends](https://docs.bachs.io/apps/disconnect.md)
>
> Disconnects, revoking from your side and `app.deauthorized`.

> [card] [Permissions for apps](https://docs.bachs.io/apps/reference/permissions.md)
>
> What each permission allows and which events need which permission.

## Distribute an app

> [card] [Who can install it](https://docs.bachs.io/apps/distribution.md)
>
> Private, unlisted or public, and the businesses you name.

> [card] [Publish your app](https://docs.bachs.io/apps/publish.md)
>
> The eight automatic checks and how an app stays published.

> [card] [Move from Connect with Bachs](https://docs.bachs.io/apps/migrate.md)
>
> Your old client is already an app. Switch it to a client secret.

## Reference

> [card] [OAuth endpoints](https://docs.bachs.io/apps/reference/oauth.md)
>
> Authorize, token, revoke and discovery, with every field and error.

> [card] [Permissions for apps](https://docs.bachs.io/apps/reference/permissions.md)
>
> Permissions, the reasons you give for them and event rules.

> [card] [app.deauthorized](https://docs.bachs.io/guides/webhooks/events/app-deauthorized.md)
>
> The event your app gets when a connection ends.


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