MERCADO60First month on Growth, free →
Mercado
For developers

The API behind African commerce.

REST + SSE + webhooks. SDKs for TypeScript, Python, Go. Theme SDK for Next.js storefronts. Idempotency keys and event IDs on every mutation.

import { Mercado } from '@mercado/client'

const m = new Mercado({ apiKey: process.env.MERCADO_KEY })

const order = await m.orders.create({
  channel: 'whatsapp',
  items: [{ sku: 'SLK-NVY', qty: 2 }],
})

// real-time, no polling
m.subscribe('inventory.updated', e => render(e))
Quickstart

First order in five minutes. Naira test data included.

01Install the SDKTypeScript, Python or Go.
npm i @mercado/client
02Grab a sandbox keyRealistic Naira / Cedi test data.
export MERCADO_KEY=sk_test_…
03Create your first orderStock, payment and ledger in one call.
await m.orders.create({ channel: 'pos', items })
API surface

Ten services. One consistent API.

OrdersCreate, pay, fulfil, refund
POST/v1/ordersCreate an order from any channel
GET/v1/orders/:idRetrieve with lines, payments, journal
POST/v1/orders/:id/refundsFull or partial refund
GET/v1/ordersList & filter by branch, channel, status
SSE + webhooks

Every terminal in sync. No polling.

HTTP-native Server-Sent Events push state to POS, dashboard, mobile and your integrations in under 100ms. Webhooks retry with exponential backoff and signed payloads.

→Idempotency keys and event IDs on every mutation
→Signed webhooks with automatic retry
→Replay any event by ID
→Sandbox mode with realistic test data
GET /v1/events/streamCONNECTED
14:02:00order.created#294 · ₦62,500
14:01:58order.fulfilled#293 · rider
14:01:56transfer.completedIKJ → LEK · 12u
14:01:54journal.postedDR 62,500 · CR 62,500
14:01:52inventory.updatedSLK-NVY 14 → 12
SDK · v3.2TypeScriptNode, Deno, Bun and the edge. Fully typed.
npm i @mercado/client
SDK · v2.8PythonSync and async clients. Django & FastAPI helpers.
pip install mercado
SDK · v1.6GoContext-aware, zero dependencies.
go get mercado.africa/go
Theme marketplace

Build a storefront. Ship a theme. Get paid.

Theme SDK for Next.js storefronts with useCart, useProducts and checkout built in. Publish to 184 live themes and keep 70% of every sale.

184
THEMES LIVE
70/30
CREATOR / PLATFORM
AnkaraFree
Lagoon₦45k
Kente₦30k
Night Market₦60k
BalogunFree
Harmattan₦25k