B
BOMEODocs

API Reference

Integrate BOMEO into your stack with the REST API, TypeScript SDK, Python SDK, or WooCommerce plugin.

v1 StableREST + JSONBearer AuthCursor Pagination

Overview

The BOMEO API is organized around REST. All requests and responses use JSON. Monetary values are in minor currency units (e.g. kobo for NGN, cents for USD). Currency is resolved from your tenant configuration.

Base URL
https://api.bomeo.xyz/v1

Authentication

Authenticate by including your API key in the Authorization header. Generate keys from Settings → Integrations in the BOMEO dashboard.

Request header
Authorization: Bearer YOUR_API_KEY

API keys are scoped per tenant. Keep them secret; rotate if compromised.

Response Format

Every response follows a consistent envelope. Check ok for success, read data for the payload, and use meta.pagination for cursor-based paging.

Response envelope
{
  "ok": true,
  "data": { ... },
  "meta": {
    "apiVersion": "v1",
    "pagination": {
      "total": 42,
      "limit": 25,
      "hasMore": true,
      "nextCursor": "eyJ..."
    }
  }
}

Endpoints

All endpoints live under /api/v1.

GET
/products

List products with search, pagination, and filters

GET
/products/:id

Get a single product with variants and stock levels

GET
/orders

List orders by status, date range, and customer

POST
/orders

Create a new order with line items

GET
/customers

List customers with filtering and pagination

GET
/customers/:id

Get customer details and purchase history

GET
/inventory/stock-levels

Check stock levels by branch and product

GET
/inventory/movements

Track stock movements: receives, transfers, adjustments

Public IDs

All entities use human-readable prefixed IDs for easy debugging and correlation across systems.

PrefixEntity
prod_Products
pvar_Variants
ordr_Orders
cust_Customers

Quick Start

Install an SDK and make your first API call.

npm install bomeo-sdk
TypeScript
import { BomeoClient } from "bomeo-sdk";

const bomeo = new BomeoClient({
  apiKey: process.env.BOMEO_API_KEY!,
  baseUrl: "https://api.bomeo.xyz/v1",
});

// List products
const { data, pagination } = await bomeo.products.list({
  limit: 25,
  search: "catfish",
});

// Create an order
const order = await bomeo.orders.create({
  subtotal: 450000,
  total: 450000,
  lines: [
    { productId: "prod_abc", quantity: 3, unitPrice: 150000 },
  ],
});

SDKs & Libraries

First-party SDKs that mirror the REST API.

TypeScript SDK

TypeScript / Node.js

Full type-safety with auto-complete for every endpoint. Ships ESM + CJS.

npm install bomeo-sdk

Python SDK

Python 3.9+

httpx-based with sync and async support. Typed dataclasses for all responses.

pip install bomeo-sdk

WooCommerce Plugin

PHP / WordPress

WordPress plugin for one-click product sync, order push, and inventory bridge.

Upload via WP Admin → Plugins

Integration Guides

Step-by-step guides for connecting your e-commerce platform.