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

# Publish your app

> The eight automatic checks an app passes to be unlisted or public, and how it stays published.

Publishing is automatic. Nobody at Bachs reviews your app. When you click
**Publish as unlisted** or **Publish as public**, eight checks run in a few
seconds. If all pass, your app is live at once. If one fails, **Distribution**
shows which and how to fix it, and keeps showing it after a reload.

## The checks

| Check | Passes when |
| - | - |
| Owner | Your business is verified, and not suspended. |
| Details | Icon, description, support email, privacy link and terms link are set. |
| Links | Your website, privacy and terms pages load over HTTPS from a public address. |
| Name | It does not contain "Bachs", is not another published app's name, and is not a well-known payment or bank brand. |
| Addresses | Every callback address and your install URL use HTTPS on a public address. |
| Webhook | If you have one, it answers a signed test event (`app.webhook_test`) with a 2xx. |
| Money permissions | `payouts:write`, `refunds:write`, `transfers:write` and `balance:write` need a business that took its first live payment at least 90 days ago. |
| Permission reasons | Every permission has a reason of 10 to 200 characters, no two are the same, and none is just the permission's name. |

The test event is signed like a normal event, but with a secret used only once,
because each business gets its own signing secret. Answer it with a 2xx; do not
refuse it for its signature.

Money permissions you cannot publish with yet still work while the app is
private.

## Changing a published app

A change to the name, links, callback addresses, permissions or webhook of an
unlisted or public app runs the checks again before it saves. A change that
fails is refused, and the app stays as it was. Removing a permission or an event
never needs the checks.

## Staying published

An unlisted or public app goes back to private, and your business's owners and
admins are emailed, when:

* your business is suspended, or
* your website, privacy or terms page fails to load on three daily checks in a row.

Businesses already connected keep working. Fix the cause and publish again.

Bachs can also suspend an app that is being misused. A suspended app ends every
connection, and each business receives no more data from it. See
[When a connection ends](https://docs.bachs.io/apps/disconnect.md).


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