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

# Move from Connect with Bachs

> Your Connect with Bachs client for app access is now an unlisted app with the same client id.

If you set up **Connect with Bachs** with app permissions before Bachs Apps,
your client is now an unlisted app:

* It keeps your `client_id` (`cwb_…`), so install links already in use keep working.
* It keeps your callback addresses, permissions and webhook.
* Existing connections keep working, and their tokens refresh as before.
* Its name is your business's name. Change it on **Details**.

Platforms that use Connect with Bachs only to create seller accounts are not
affected. That flow is unchanged.

## What to do

**1. Make a client secret**

Open the app in **Developer Portal → Apps**. On **Credentials**, click
**Make a secret** and store it on your server.

**2. Switch your server to the client secret**

Swap codes, refresh and revoke with your `client_id` and client secret, as
HTTP Basic or `client_secret` in the body. See
[Connect a business](https://docs.bachs.io/apps/connect-a-business.md).

**3. Stop using your secret key for the app**

Until your first call with a client secret, the token endpoint still
accepts your platform secret key with `connected_accounts:write` for this
app. After that call it refuses it, for good.

**4. Add what publishing needs**

Add an icon, links, a support email and a reason for each permission. Your
next change to the app, or a move to public, runs the
[checks](https://docs.bachs.io/apps/publish.md).

## What changed for every app

* Connections no longer end 90 days after approval. Each refresh moves the end
  to 90 days from then.
* Your app is told when a connection ends, with
  [`app.deauthorized`](https://docs.bachs.io/guides/webhooks/events/app-deauthorized).
* You can end a connection yourself with the
  [revoke endpoint](https://docs.bachs.io/apps/reference/oauth.md#revoke).
* App settings moved from **Connect settings** to **Developer Portal → Apps**.


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