BloomCommerceOS Documentation

Everything you need to build B2B, B2C, Marketplace, Mobile and AI-powered commerce platforms.

Suggested:AuthenticationOrders APIMarketplaceWebhooksAI AgentsPayments
300+APIs20+SDK Examples50+GuidesAIAgent APIs✓Marketplace APIs

Quick start

Jump straight in — pick a starting point. Everything is API-first, so any frontend, channel or AI agent can call the platform.

Getting started

Install the SDK and configure your sandbox key — you'll make your first call in under a minute.

# 1. Install
npm install @bloomcommerceos/sdk

# 2. Set your sandbox key
export BLOOM_KEY=sk_test_••••••••

# 3. List orders
node -e "import('@bloomcommerceos/sdk').then(async ({BloomCommerce}) => {
  const c = new BloomCommerce({ token: process.env.BLOOM_KEY });
  console.log(await c.orders.list({ limit: 2 }));
})"

Authentication

BloomCommerceOS supports OAuth2, JWT and API keys, with scoped tokens and RBAC. Pass a bearer token on every request.

Authorization: Bearer sk_live_••••••••
# Scopes: orders:read orders:write catalog:read marketplace:*
OAuth2JWTAPI KeysToken ManagementUser ContextRBAC

API reference

Every endpoint follows the same shape — description, parameters, multi-language samples, a sample response and error codes. Here's the Orders endpoint.

GET/api/v1/orders

List orders for the authenticated tenant, most recent first. Supports cursor pagination and filtering. Requires the orders:read scope.

Query parameters
limitintegeroptionalItems per page (1–96). Default 24.
statusstringoptionalFilter by order status (PAID, FULFILLED…).
cursorstringoptionalPagination cursor from a prior response.
curl https://api.bloomcommerceos.com/api/v1/orders?limit=2 \
  -H "Authorization: Bearer sk_live_••••••••"
Response
200 OK
{
  "content": [
    { "id": "ord_55120", "status": "PAID",
      "total": { "amount": 4897, "currency": "INR" },
      "customer_id": "cus_3391", "channel": "web" },
    { "id": "ord_55121", "status": "FULFILLED",
      "total": { "amount": 1299, "currency": "INR" },
      "customer_id": "cus_3318", "channel": "mobile-app" }
  ],
  "page": { "limit": 2, "total": 12480, "next": "cursor_eyJvIjoyfQ" }
}
Error codes
401Missing or invalid bearer token.
403Token lacks the orders:read scope.
429Rate limit exceeded — retry with backoff.

SDKs & libraries

Typed SDKs for every major stack — each with installation, configuration, examples, error handling and best practices.

Java SDK↗
Spring Boot SDK↗
React SDK↗
React Native SDK↗
Angular SDK↗
Next.js SDK↗
Python SDK↗
Node.js SDK↗

Built for developers

✓ Dark Mode✓ Code Copy✓ Language Switcher✓ Version Switcher✓ Breadcrumbs✓ Table of Contents✓ Bookmarks✓ Feedback Widget