Skip to main content
The Bachs API lets you create products, run checkouts, manage customers and subscriptions, pay out to bank accounts and wallets, and reconcile it all programmatically. It is organized around REST, uses predictable resource-oriented URLs, and returns JSON. The conventions every endpoint shares are collected in one place:
  • API Standards: authentication, request and response format, base URLs, status codes, query parameters, and rate limits.
  • Authentication: create keys and authorize requests with a Bearer token.
  • Errors: the error object and how to handle failures.
  • Sandbox: test your integration without moving real funds.

Your first request

Authenticate with your secret key in the Authorization header and call any endpoint. Use the sandbox base URL (https://sandbox-api.bachs.io) while you build, and the production base URL (https://api.bachs.io) when you go live. This lists your products:
Use sk_sandbox_... keys against the sandbox and sk_live_... keys against production. See Authentication to create and manage keys, and API Standards for the full base-URL reference.

Next steps