
Developers & MCP
An MCP-friendly trade platform
Clean, versioned REST APIs and a documented MCP tool surface so AI agents (Claude, ChatGPT, Grok) and integrators can discover, query and act on Madeinafrica.io. Gold sellers get API keys and priority MCP access.
MCP tool surface
Tools an MCP server wraps over the platform.
Discovery
- search_products(query, country?, category?, moq?)
- search_companies(query, country?, industry?, tier?)
- list_countries()
- list_categories()
Entities
- get_company(id)
- get_product(id)
- get_tier_info(tier)
RFQ
- list_rfqs(status?, country?, category?)
- create_rfq(payload)
- submit_quote(rfq_id, payload)
- get_rfq_quotes(rfq_id)
Trade
- get_escrow_status(order_id)
- get_shipping_quote(origin, destination, weight, incoterms)
- track_order(order_id)
OpenAPI 3.1 (stub)
openapi: 3.1.0
info:
title: Madeinafrica.io API
version: 1.0.0
description: B2B marketplace for verified SADC suppliers.
servers:
- url: https://api.madeinafrica.io/v1
components:
securitySchemes:
apiKey: { type: http, scheme: bearer }
paths:
/companies:
get: { summary: Search verified companies }
/companies/{id}:
get: { summary: Get a company profile }
/products:
get: { summary: Search products }
/rfqs:
get: { summary: List open RFQs }
post: { summary: Create an RFQ }
/rfqs/{id}/quotes:
post: { summary: Submit a quote }
/escrow/{orderId}:
get: { summary: Escrow status }
/shipping/quote:
post: { summary: Get a shipping quote }Auth
Bearer API keys for Gold sellers; OAuth for enterprise integrations.
Webhooks
rfq.received · quote.submitted · rfq.awarded · escrow.funded · escrow.released · shipment.update · dispute.opened
ERP & Accounting Integration
Connect your accounting system to sync orders, products, and invoices. The webhook framework is live — full per-system integrations are built on request.
SAP
Sage
Xero
QuickBooks
Pastel
Webhook Endpoint
POST https://madeinafrica.base44.app/functions/erpWebhook
Authentication
Include an API key in the X-API-Key header. Set the ERP_API_KEY secret in your dashboard to enable validation.
Available Actions
action: "test"
Test connectivity and list available endpoints.
action: "sync_orders"
Push order data from your ERP to Made in Africa.
action: "sync_products"
Push product/catalog data from your ERP.
action: "get_invoice"
Pull a commercial invoice by order_id.
Example Request
curl -X POST https://madeinafrica.base44.app/functions/erpWebhook \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"action":"test","erp_system":"SAP"}'