Skip to main content

Breaking

  • Apps authenticate with their own client secret. The token endpoint takes your app’s client_id and client secret, as HTTP Basic or client_secret in the body. Who breaks: platforms that swap codes for Connect with Bachs app access with their platform secret key. Your client is now an app with the same client_id, and your secret key keeps working for it until your first call with a client secret. Make a secret in Developer Portal → Apps and switch. See Move from Connect with Bachs.
  • Merchant virtual accounts wait for review. A Nigerian account with the merchant configuration no longer gets virtual_accounts as soon as its BVN matches. Our team reviews it first, and capability.updated reports active when they approve. Who breaks: code that expects virtual_accounts to turn active within minutes of the BVN check, and calls POST /v1/virtual-accounts straight after. Listen for capability.updated instead. An account that already has it keeps it. See Accept bank transfers with a virtual account.

Added

  • Bachs Apps. Any verified business can create up to 20 apps in Developer Portal → Apps, each with its own name, icon, links, callback addresses, permissions with a reason for each, webhook and client secrets. Keep an app private, share it by link (unlisted) or list it in the Bachs app directory (public). Publishing runs eight automatic checks. See Bachs Apps.
  • app.deauthorized. Your app’s webhook gets it before any connection ends, with reason merchant, app, expired, deleted or suspended. See app.deauthorized.
  • Revoke and discovery. POST /v1/connect/oauth/revoke ends a connection from your side. GET /connect/oauth/.well-known/oauth-authorization-server lists the endpoints for OAuth libraries. See OAuth endpoints.

Changed

  • Converting needs no capability. Any account with a balance can convert, unless it is suspended or closed. New accounts no longer get a conversions capability, and naming it in configuration does nothing.
  • Receive-only accounts can hold virtual_accounts. An account with only the recipient configuration can now hold it, and it switches on by itself once the BVN matches. Before, only a merchant account could hold it. See Capabilities.
  • Connections stay alive while you refresh. Each refresh moves a connection’s end to 90 days from then. Before, every connection ended 90 days after approval.
  • App settings moved. Permissions, webhook and callback addresses for app access moved from Connect settings to Developer Portal → Apps. Connect settings keep the seller-account flow only.

Breaking

  • Paying a new connected account abroad needs international payouts. A connected account is paid out to mobile money, or to a bank outside Nigeria, only when its platform has turned on international under payouts. Without it, the payout, the quote and adding the destination return 400 INTERNATIONAL_PAYOUTS_NOT_ENABLED. Who breaks: a platform that creates new accounts, or asks an older account for payouts for the first time, and pays them abroad. Accounts that already had payouts have it on, so nothing changes for them. The fix is one field: See International payouts.

Added

  • International payouts for connected accounts. Send international: true under payouts on POST /v1/accounts or POST /v1/accounts/{account_id}. false turns it off, and leaving it out changes nothing. Only your platform can set it, and only payouts takes it (capability_option_platform_only, capability_option_not_supported). Read it back as capabilities.payouts.international, on the account and on GET /v1/accounts/{account_id}/capabilities. capability.updated carries it too. You can also turn it on for every new account in your Connect setup in the dashboard. See International payouts.

Changed

  • Basic payouts and transfers ask only for a name. A person gives their name, a company its legal name, and payouts still needs a payout account. No email and no address. Those are asked only when you turn on international payouts: email and address for a person, the company address for a company. They show in requirements and the hosted onboarding checklist, and a payouts that is already live stays live. See Payouts abroad.
  • PAYOUT_RECIPIENT_INCOMPLETE names what is missing. detail now reads, for example, “This account is missing its address (street, city and country).” The account’s contact_email counts as its email.
  • API creates follow your international payouts default. If your Connect setup turns international payouts on for new accounts, an account you create with POST /v1/accounts that requests payouts starts with it on, unless the call sends international itself. Nothing else from the setup applies to an API create. See International payouts.

Added

  • A fingerprint for each card. payment_method_details.card.fingerprint on GET /v1/payments/{payment_id} and on collection.succeeded names the card itself. The same card gives the same fingerprint on every payment to your account, whoever pays with it, so you can spot one card used by many customers and block it. Before this, the closest you had was brand, last four digits and expiry, which many different cards share. Card payments from before this change have it too, wherever we hold a record of the card. See the payment object.
  • Payout destination webhooks. payout_destination.approved and payout_destination.rejected tell you when a destination becomes usable or is refused, so you no longer need to poll is_usable. Pending and rejected destinations now carry a plain reason in status_reason, and a bank account’s bank_name is filled from our bank list when the bank does not return one. See Wait for approval.
  • Give a connected account a dashboard. Send dashboard: "light" on POST /v1/accounts, or later on POST /v1/accounts/{account_id}, and the person behind the account can log in at connect.bachs.io to see their balance, payments and payouts. No password. dashboard_features decides what they may change: payout schedule, manual payouts, payout account and refunds, all off until you turn them on. Before this, nobody behind a connected account could log in. See Give an account a dashboard.
  • Login links. POST /v1/accounts/{account_id}/login_links returns a single-use link that opens a light account’s dashboard. It lasts five minutes, so make it when the person taps a button in your app. See Open the dashboard from your app.
  • Give a connected account the full Bachs dashboard. Send dashboard: "full" and the person behind the account signs in at app.bachs.io. If they already use Bachs, they use the login they have. We email the invite when the account goes live. POST /v1/accounts/{account_id}/dashboard_invite sends it again. They cannot take payments outside your platform on that account, and dashboard_access reads invited until they accept. See Give them the full dashboard.
  • Withdraw a capability. Send "requested": false for a capability that has not gone live, and it goes back to not requested. Before this, it returned 400 capability_unrequest_unsupported. A live capability returns capability_active, and one our team turned off returns capability_disabled. See Withdraw a capability.
  • A liveness account link sends the person to the selfie video check alone, for example after it failed. liveness_owed on the account tells you when they need it. See The selfie video check.
  • goes_live_automatically on each capability says whether it switches on by itself once its checks pass.

Changed

  • A connected account owes only what its capabilities need. An account that is only paid out gives a name, email, street address and a payout account. Holding money adds date of birth, phone and ID number. Taking payments adds a selfie video check. People are no longer asked for a website, product category or support email. Accounts that are already live keep what they have; anything new shows as eventually_due and switches nothing off. See What an account owes.
  • Capabilities go live when their checks pass. Payouts and transfers no longer wait for our team. Card payments, and payments for a company, are still reviewed before they go live. See How a capability goes live.
  • The payout account must be in the account’s own name. We compare the bank’s name for the account with the person’s name, or the company’s registered name. No words in common returns 400 INVALID_REQUIREMENT_FIELD with code account_name_mismatch. Only Nigerian banks return a name today, and the check does not run in the sandbox. See The payout_destination shape.
  • One write to an account at a time. A second POST /v1/accounts/{account_id} while the first is still saving returns 409 account_write_in_progress. Send it again in a moment.

Fixed

  • We fixed card payments in the payment list showing no card. GET /v1/payments returned payment_method.brand and payment_method.last4 as null on every card payment. They now carry the card’s brand and last four digits, the same as the single payment.

Added

  • Choose the bank for your virtual account. Send bank_code with POST /v1/virtual-accounts to pick the bank that holds the number: 103 (Globus Bank), 090645 (Nombank MFB) or 110072 (Bank78 MFB). You get that bank or an error, never a different one. Leave it out and we pick, as before. It only counts when the number is first created; a number you already have keeps its bank. See Choose the bank.

Changed

  • bank_code on a new virtual account is now our bank code. It is the same code you send to choose a bank. Before, it was the issuing provider’s own code, or null. Numbers created before this change keep the code they had.
  • We try another bank on any outage. When you don’t choose a bank and the first one is down, Bachs tries the next one. Before, it only did this when the bank timed out. Other outages returned an error.

Added

  • narration on payouts. Send narration with POST /v1/payouts to add a short note for the recipient’s bank statement. Keep it under 15 characters: many banks show only the first few, and some show their own label instead. The payout object returns it as narration. Before this, the recipient saw our fixed text on most payouts, so they could not tell which of your payments it was. See Create the payout.
  • session_id on payouts to a Nigerian bank account. Once the payout completes, session_id holds its NIP session ID, on the payout object and on the payout.paid event. The recipient’s bank uses it to trace the transfer. Before this, a payout had no ID the recipient’s bank could look up, so a missing transfer was hard to trace.
  • narration on payout webhooks. payout.created, payout.paid and payout.failed now carry narration, the same value as the payout object. Before this, you had to fetch the payout to see what the bank was sent. See payout.paid.
  • Find a payout by your own reference. GET /v1/payouts?reference=inv_1042 returns the payout you created with that reference, as a list holding at most one payout. Before this, you could only fetch a payout by its pay_ ID.

Changed

  • One change at a time on a subscription. Two plan or seat changes sent to the same subscription at the same moment used to both charge or credit the difference. Now the second waits for the first, then sees its result. If the first is still running after 2 seconds, usually because it is charging a card, the second returns 409 with SUBSCRIPTION_CHANGE_IN_PROGRESS and changes nothing. Retry after a few seconds.
  • Changes are refused while another is staged. Before, only an upgrade that charged a card was refused. A seat change, downgrade, or change with proration_behavior next_cycle or none went through, and the staged change then overwrote it when it applied. Plan changes now return SUBSCRIPTION_CHANGE_ALREADY_PENDING while any change is staged, and so do seat changes while an upgrade waits for its charge. Cancel the staged change first with DELETE /v1/subscriptions/{id}/pending_update.
  • Seat changes go through while a billing cycle change waits. A billing cycle change, for example monthly to annual, waits until renewal, which can be months away. A seat change in that time is applied now, and the waiting change moves to the new seat count, so renewal bills the seats the customer has.
  • A trial on a paid subscription must end after the paid period. Adding a trial to an active subscription with a trial_end before current_period_end used to bill a whole new period when the trial ended, so the customer paid twice for the days they had already paid for. It now returns 400 with SUBSCRIPTION_TRIAL_ENDS_IN_PAID_PERIOD. Extending a trial that is already running is unchanged.
  • A billing cycle change is refused on a subscription with more than one item. Every item bills on the subscription’s one cycle. Moving one item from monthly to annual used to move the whole subscription at renewal, so the other items’ monthly prices were billed once a year. It now returns 400 with SUBSCRIPTION_PLAN_INTERVAL_MISMATCH. The plan-change preview refuses it the same way.
  • seat_tiers is refused on a billing cycle change. Before, the tiers were dropped without a word and renewal billed the flat price times the seats. It now returns 400 with SUBSCRIPTION_PLAN_INTERVAL_MISMATCH. Send the change without seat_tiers.

Added

  • seats on the subscription object and its items. Each item shows seats, the same number as quantity. The subscription shows seats when it has one priced item, and null when it has more. Webhooks carry the same fields. quantity is unchanged.
  • Seat changes are now documented. PATCH /v1/subscriptions/{subscription_id} with { "seats": 5 } sets the new total and prorates the difference. Send subscription_item_id when the subscription has more than one priced item. See Change the seat count.

Added

  • Global Payouts through the existing payout API. Bank destinations support NGN, GHS, KES, TZS, UGX, GBP, USD, CAD and EUR, with mobile money in GHS, KES and TZS and supported stablecoin wallets. Global Payouts is available to all Bachs users; account verification, an active payouts capability, destination approval and sufficient available funds still apply. These withdrawals are to the account holder’s own destinations. Register destinations with POST /v1/payouts/destinations and check is_usable before requesting a payout. Set the destination type explicitly for bank or mobile money destinations, and choose a scheme for USD and CAD bank destinations. See Create a payout destination. International bank and mobile money routes debit the available USD balance. For a different destination currency, request a conversion quote and send its quote_id with the destination ID, without amount, when creating the payout. USD-to-USD payouts use amount without a conversion quote. A successful create response confirms acceptance, not delivery; track the payout until completed or failed. For connected accounts, use X-Account-Id with that account’s own balance and approved destination. Add scheme-based international bank destinations through the destination API rather than the inline onboarding payout_destination field. See Global Payouts and International bank payouts.
  • enabled on PATCH /v1/webhooks/endpoints/{endpoint_id}. Send false to stop all deliveries to an endpoint, or true to turn it back on. Before this, the only way to stop deliveries from the API was to delete the endpoint. Turning an endpoint on clears its failure history. Events from while it was off are not sent, so resend the ones you need.
  • disabled_at and disabled_reason on the webhook endpoint object. Returned everywhere an endpoint is. We now turn off an endpoint whose deliveries have all failed for 72 hours, at least 48 hours after we email a warning. When we do, enabled is false, disabled_at is the time, and disabled_reason is consecutive_failures. Both are null while the endpoint is on, and when you turned it off yourself. See When an endpoint keeps failing.

Changed

  • Dashboard users need permission to manage webhooks to change them. This covers adding, editing, enabling, disabling and deleting endpoints, rotating and viewing signing secrets, and resending events. API keys are unchanged: webhooks:write for changes and webhooks:read for reads, including the signing secret.

Added

  • Virtual accounts. POST /v1/virtual-accounts issues a fixed NGN bank account number for your platform or a connected account, and GET /v1/virtual-accounts reads it back. Each deposit becomes a payment with a collection.succeeded webhook whose checkout_id is null. Creating twice returns the same number rather than a second one. NGN is the only currency today. The account needs an active virtual_accounts capability. Request it through the account API and complete the returned requirements, including the representative’s BVN. The two new permissions, virtual_accounts:read and virtual_accounts:write, are not on keys that already exist. Add them to your key before your first call, or it returns 403. See Accept bank transfers with a virtual account.
  • payment_method now reports the rail used for a virtual account deposit. It reads NGN_BANK_TRANSFER, the same corridor name a checkout writes for that rail. We also corrected the card description in the reference: a card payment reports USD_CARD or NGN_CARD, not a bare CARD.
  • payment_method_details on the payment object and collection webhooks. Returned by GET /v1/payments/{payment_id} and sent on collection.succeeded, but not on the payment list. For a bank transfer, it names the sender (sender_name, sender_bank, sender_account_number), the interbank session_id, and the account number that received the money. Use these details to distinguish deposits into the same virtual account. It is null on payments taken before this shipped and on methods that provide no payer details. See the payment object.

Added

  • customer is now optional on checkout session creation. Omit it and the hosted checkout page collects the buyer’s email and name before they can pay. It stays required for a subscription checkout, which has no later opportunity to collect it. See Guest checkout.
  • customer_creation on checkout session creation. Decides whether a buyer who identifies themselves on the hosted page also becomes a customer record. if_required, the default, keeps them out of your directory: customer stays null and no customer.created or customer.updated webhook fires, while the buyer’s email and name reach you on customer_details and their purchases group together in your dashboard. always creates the record, matched by email to an existing customer where you already have that address, and returns it on customer as normal. It is ignored for a subscription or setup checkout, which always create a customer, because recurring billing needs a durable record to keep the renewal card on. See Whether a guest becomes a customer.
  • customer_details on the checkout session object and the checkout.completed webhook. { email, name }, present whenever an identity was collected, whether or not a customer record exists for it. customer is unchanged, so nothing that reads it breaks. What gains an identity today is every checkout that used to send customer: null and nothing else, such as a payment link with a fixed price. See customer vs customer_details.

Changed

  • Two new error codes say why a live checkout can offer no payment method. CHECKOUT_HAS_NO_PAYMENT_METHOD covered three different problems with one message, and named the wrong one for the two most common: an account that is not live yet, and an account whose methods have been restricted. Those now have their own codes, ACCOUNT_NOT_ACTIVATED and ACCOUNT_PAYMENT_METHODS_RESTRICTED, both still 400, and returned everywhere a checkout is created. CHECKOUT_HAS_NO_PAYMENT_METHOD still fires, now only when the account has no payment method configured at all, and CHECKOUT_RESTRICTION_LEAVES_NO_PAYMENT_METHOD is unchanged. If you branch on the old code to detect a not-yet-live account, add the two new codes. Sandbox is unaffected: every method is available there. See Why a checkout has no payment method.

Added

  • payment_method_options on checkout sessions and payment links. Restricts which payment methods a checkout offers, and which currencies each one is offered in. Keys are card, bank_transfer, mobile_money, and crypto. A method you leave out is not offered; a method you include with no currencies is offered in all of them. For crypto the currencies are asset codes such as USDT_TRC20 rather than fiat codes.
    Before this, you could turn a whole payment method on or off but not reach inside it, so “cards, but only in USD” was not expressible: you either took every card currency or dropped cards entirely. Restricting only ever narrows what the customer sees. It cannot add a method or a currency your account is not already enabled for, and if a restriction leaves nothing payable the request is rejected rather than creating a checkout nobody can complete. The restriction is enforced when the payment is priced and confirmed, not only on the page, so a request that names an excluded method or currency is refused with PAYMENT_METHOD_NOT_ALLOWED. See Restrict methods and currencies.

Added

  • Three more dispute evidence fields. access_activity_log (a text log of the customer’s access or activity), plus cancellation_policy_attachment_id and refund_policy_attachment_id for the policy documents themselves. Both policy attachments take a document_id from Upload Dispute Document and pair with the existing cancellation_policy_disclosure and refund_policy_disclosure text: the text states the policy, the file shows the customer was given it. Accepted on PATCH /v1/disputes/{dispute_id}/evidence and returned on Get Dispute.
  • billing_address on the customer object. A nested object with line1, line2, city, state, postal_code, and country (two-letter code), or null when unset. Accepted on POST /v1/customers and PATCH /v1/customers/{customer_id}, and returned everywhere a customer is, including customer.created and customer.updated webhooks and the customer embedded in subscription and invoice payloads.
  • On update, the address is replaced, not merged: omit billing_address to leave it untouched, send null to clear it, or send an object to replace every component (anything you leave out becomes null). See the customer object.
  • Disputes now arrive with customer_email_address, customer_name, and billing_address prefilled from the customer record where we have them. They remain ordinary editable evidence.

Added

  • checkout.completed and checkout.expired webhook events. checkout.completed fires whenever a checkout session finishes, across payment, setup, and subscription modes, and carries a new payment_status field (paid or no_payment_required) so you can tell a real payment apart from a free or setup completion in one event. checkout.expired fires when an open checkout lapses past its expiry without the customer completing it. See checkout.completed and checkout.expired.
  • A free ($0) checkout now settles charge-lessly: no charge is created, and the only event you’ll get is checkout.completed with payment_status: "no_payment_required". Previously this path minted a shell charge; there’s nothing to reconcile against it now.

Removed

  • collection.abandoned is gone. Use checkout.expired instead, it’s the direct replacement and fires from the same expiry sweep.

Breaking

The payment resource moved and its fields were renamed. The old payins paths are gone.On the payment object:
  • charge_id is now payment_id.
  • products is now line_items.
  • organization_id was removed.
  • The response gained billing_reason, subscription_id, and a nested invoice object.
This object is also embedded as charge on the checkout detail response (GET /v1/checkout-sessions/{id}), so checkout.charge.charge_id becomes checkout.charge.payment_id and checkout.charge.products becomes checkout.charge.line_items.Other resources moved out of the /v1/payments namespace so the payment resource owns its root:Subscription line items now report pricing as price_type (fixed, free, custom) instead of amount_type. This applies to the subscription response and the customer.subscription.* webhook payloads.The customer object is now { email, name }. first_name and last_name were removed everywhere: customer responses, the customer.* webhook payloads and every embedded customer object, and the POST/PATCH /v1/customers request bodies. Any code reading customer.first_name breaks; read customer.name instead (split client-side if you need parts).

Added

  • The overlay checkout SDK. Load bachs.js from your checkout origin, or npm install @bachs/js for a typed loader, and open any checkout session in a modal with Bachs.Checkout.open({ checkoutUrl }). Lifecycle events included. See Add an overlay checkout.
  • name is now optional for a new customer on create checkout session; email alone is enough. If provided, it must be non-blank.
  • customer_name and customer_email on invoice responses, so lists can show who was billed without a second lookup.
  • success_url on create checkout session: the primary field for where a customer is redirected after a successful payment. return_url is kept as a deprecated alias.
  • expires_in_minutes on create checkout session (1 to 1440, default 60) to control session lifetime.
  • billing_reason on the payment object: purchase, subscription_create, subscription_cycle, or subscription_update.
  • invoice and subscription_id on the payment object for subscription payments.
  • metadata on the subscription object, on the subscription response and the customer.subscription.* webhook payloads. Set it by attaching metadata to the checkout session that starts the subscription (it propagates on success), or update it later with metadata on PATCH /v1/subscriptions/{id} (a standalone intent). Updates merge: sent keys are added or overwritten, a key sent with an empty-string value is removed, and sending "" clears everything. The system checkout_id key is preserved and cannot be overwritten.
  • search query parameter on list customers to filter by email or name.

Fixed

  • The payment object now returns fee_usd (previously documented as fee, which was never returned). The incorrect settlement_currency and settlement_amount fields were removed from the object; they were never returned.
  • Customer IDs are documented with the correct cust_ prefix (previously shown as cus_).
  • Checkout examples in the quickstart used a products field and first_name/last_name on the customer; the real fields are product_cart and name, and the examples now say so.

Breaking

Webhook management moved to /v1/webhooks and is now API-key accessible. The endpoint-management routes moved off the /v1/developer/webhooks path.Any code calling the old /v1/developer/webhooks/* paths breaks; update the base path to /v1/webhooks/*. Authentication is unchanged for dashboard sessions, and API keys with the webhooks:read / webhooks:write scopes now work too.

Added

  • Webhook Endpoint API. You can now create, list, update, and delete webhook endpoints, rotate signing secrets, read delivery metrics, and list or resend events, all with an API key. Thirteen endpoints under /v1/webhooks. See the webhook endpoint object.

Fixed

  • The webhooks documentation was scattered across three places. It now lives in one Webhooks section: Concepts, Events, and the Endpoint API.