REST API
Predictable resources for charges, customers, payouts, disputes and more.
Clean REST endpoints, predictable objects, signed webhooks and a full sandbox. Integrate cards, ACH and disputes in days, not months.
import Bear from "bearmerchant";
const bm = Bear(process.env.BM_SECRET_KEY);
const charge = await bm.charges.create({
amount: 4280,
currency: "usd",
source: "tok_visa",
metadata: { order: "10842" }
}, { idempotencyKey: "a1b2c3" });
// charge.status → "succeeded"Set up your account in 60 seconds.
Great payment infrastructure disappears into your application. That only happens when the API is consistent, well-documented and safe to retry — and when you can test everything before touching real money.
Bear Merchant is resource-oriented and idempotent by design. Objects behave predictably, errors are descriptive, webhooks are signed, and the sandbox mirrors production so you ship with confidence.
From first call to production-grade integration.
Predictable resources for charges, customers, payouts, disputes and more.
Signed events with automatic retries and a replay tool for debugging.
Node, Python, PHP, Ruby and Go libraries kept in lockstep with the API.
Simulate cards, ACH, 3-D Secure and disputes without real funds.
Scoped keys and OAuth for platforms and connected accounts.
Guides, references and copy-paste recipes for common flows.
Every SDK is generated from the same OpenAPI spec, so the docs and the client never drift apart.
Sandbox keys are issued instantly and mirror production behaviour, including failure modes.
Create a sandbox account and copy your API keys.
Add the library for your language, or call the REST API directly.
Create a test charge and listen for the webhook.
Swap in live keys and monitor with logs and dashboards.
Sensible defaults and SDKs get you to a working charge quickly.
Idempotency keys prevent duplicate charges under failure.
Rich errors, request logs and webhook replay speed up development.
The same API powers a first sale and millions of transactions.
Embedding payments and payouts for their own users.
Custom checkouts that need control and reliability.
Splitting payments across many connected accounts.
Building financial products on compliant rails.
Fast-moving teams shipping global checkout.
Engineering orgs standardizing on one payments layer.
Still unsure about something? Our team answers in plain language — no sales script.
Ask a questionCreate a sandbox account, grab your keys and make your first API call in minutes.