REST API & Remote MCP Server Cho AI Agents
Nhúng trực tiếp bộ lõi tính phí sàn TMĐT Việt Nam 2026 và thuế NĐ117 vào phần mềm quản lý bán hàng, n8n workflow hoặc AI Agent (Claude, Cursor, ChatGPT).
1. REST API Tính Phí & Lợi Nhuận (JSON)
Endpoint: POST https://datmammo.site/api/v1/calculate
curl -X POST https://datmammo.site/api/v1/calculate \
-H "Content-Type: application/json" \
-d '{
"mode": "profit",
"platform": "shopee_regular",
"category": "thoi-trang-nu",
"selling_price": 249000,
"cost_price": 110000,
"ads_pct": 8,
"use_voucher_pkg": true
}'
Tra cứu danh mục ngành hàng: GET https://datmammo.site/api/v1/categories
2. Remote MCP Server (JSON-RPC 2.0)
MCP Endpoint: https://datmammo.site/mcp
{
"mcpServers": {
"datmammo-ecommerce-vn": {
"url": "https://datmammo.site/mcp",
"transport": "http"
}
}
}
4 công cụ MCP sẵn dùng: calculate_ecommerce_profit, calculate_target_price, list_platform_categories, calculate_nd117_tax.
3. Webhook Tự Động Thanh Toán VietQR (SePay / Casso / Web2M)
Endpoint nhận biến động số dư ngân hàng: POST https://datmammo.site/api/v1/vietqr-webhook kèm header Authorization: Bearer <VIETQR_WEBHOOK_SECRET>. Khi khách chuyển khoản chứa mã TDPROxxxxxx đúng số tiền, hệ thống tự động kích hoạt gói Pro và nâng hạn mức API Key ngay lập tức.
HỆ SINH THÁI HẠ TẦNG SELLER & MMO VIỆT NAM