Order by API or AI agent
Connect any MCP-capable AI agent (Claude, Cursor, …) or your own app to BM Store and place orders programmatically. Browse the live catalog, check your balance and buy — every purchase is paid from your store wallet and delivered the same way as on the site.
Base URL https://metabmstore.com/api/mcp · JSON-RPC 2.0 over MCP Streamable HTTP · auth via a personal agent token.
Quick start
aat_…) and a one-line prompt.1 · Connect
Authenticate with Authorization: Bearer aat_… on every request. The token is brand-scoped and spends only your wallet — rotate it anytime by generating a new one.
2 · Tools
Browse the live catalog. Each item returns its id, name, category, platform, price (USD), delivery type and stock status.
platformFilter by platform, e.g. Facebook, Instagram, TikTok, Telegram.searchCase-insensitive match on name or category.limitMax items (default 50, max 200).{ count, products: [{ id, name, category, platform, price, delivery, inStock }] }Your wallet balance in USD. available funds buying; manual orders move funds to frozen escrow until delivered.
{ email, currency, available, frozen }Place an order, paid from your wallet. Funds are held until delivery. Unstarted supplier purchases expire after 24 hours. Never charges more than the shown total.
productIdRequired. The id from list_products.referenceRequired. Stable unique order reference; reuse on retry.expectedTotalRequired. Maximum customer-authorized USD total.qtyQuantity (default 1).discountCodeOptional promo code.{ ok, total, reference, orders: [{ orderId, name, qty, price, delivery, status, asset? }] }This store’s recent orders with status and amount, plus a private wallet link for delivered details.
limitMax orders (default 20, max 100).{ count, walletUrl, orders: [{ id, amount, status, product, delivery, createdAt }] }3 · Examples
Delivery & wallet
- Auto delivery — fulfillment runs after the order is reserved. Funds stay held until delivery is verified.
- Manual delivery — staff fulfill the reserved order. Check the order status and private wallet page for delivered details; a pending status does not confirm delivery.
- Orders are paid from
availablewallet balance. If it can't cover the order you getinsufficient_balance— top up and retry. - Stock is live; sold-out items return an error rather than overselling.
Errors
401 / -32001Missing or invalid agent token. Send a valid Authorization: Bearer aat_… header.insufficient_balanceWallet can’t cover the order. Top up at the store, then retry.price_changedThe total changed since you last checked (a deal rotated). Re-read the price and retry.coupon_invalidThe promo code no longer applies to this cart.Security
Your agent token authorises purchases from your wallet — treat it like a password. It can only spend your available balance (never more), is scoped to BM Store alone, and is generated only from your signed-in wallet, with any required authenticator check. Tokens expire after 30 days. Generate a replacement or choose Disconnect agent access in your wallet to invalidate the current token for this store. Already placed orders remain active. Legacy tokens must be replaced once.