Skip to main content
The tables below describe every error_code the Bachs API returns. When an error has a code, its doc_url links to that code’s entry here, or to the guide that explains it. For the error object shape and how to handle errors, see Errors.
Sections marked Limited Access cover features that are not enabled by default. Contact support@bachs.io to request access.

General

Errors that can occur on any endpoint.

Payments

Encountered when initiating or processing payments.

Products & Prices

Encountered when creating or updating products and prices.

Checkout Sessions

Encountered when creating or processing checkout sessions.

Subscriptions Limited Access

Encountered when creating or managing subscriptions.

Payouts

Encountered when sending payouts or managing payout destinations.
Limit errors include a details object alongside error_code and detail. Parse it to show remaining allowance and cap amounts directly to your users.

Withdrawal limit details

currency, requested_amount, max_allowed and total_today are in the currency the limit is set in. total_today is only on the daily error. If your account has a limit for the payout currency, the payout is judged against that limit only. The amounts are in that currency, and the _usd fields are null. If it has no limit for that currency, the check is in USD. currency is "USD", and the _usd fields are filled. For example, an NGN payout of 12,000,000 against a 10,000,000 limit:

Deposits

Encountered when collecting payments from customers.

Virtual accounts

Encountered when creating or reading an account’s fixed account number. See Virtual accounts.

Quotes Limited Access

Encountered when requesting conversion quotes.