Ir al contenido

Referencia API

  • Base URL: https://pos.b4bit.com/api/v1
  • Autenticación: header X-Device-Id: <api-key> en cada petición
  • Formato: application/json (recomendado). POST /orders/ también admite multipart/form-data como alternativa histórica.
  • OpenAPI 3: /openapi/b4bit-pay.openapi.json — descargable para herramientas
  • Redoc oficial: https://pos.b4bit.com/redoc

Integración con Claude / Cursor / clientes MCP

Sección titulada «Integración con Claude / Cursor / clientes MCP»

Si usa Claude Desktop, Claude Code o cualquier cliente del Model Context Protocol, puede instalar el paquete oficial @b4bit/b4bit-pay-mcp y Claude podrá listar monedas, crear órdenes, consultar pagos y verificar firmas de webhook sin que usted escriba código HTTP.

{
"mcpServers": {
"b4bit-pay": {
"command": "npx",
"args": ["-y", "@b4bit/b4bit-pay-mcp"],
"env": { "B4BIT_API_KEY": "<tu-api-key>" }
}
}
}

Herramientas expuestas: list_currencies, create_order, get_order, list_orders, verify_webhook, map_status, probe_endpoint, list_endpoints, create_device.

Además, instale el skill con npx @b4bit/b4bit-pay-mcp install-skill para que Claude Code detecte automáticamente cuándo está integrando B4bit Pay y aplique plantillas seguras + checklist de go-live.

Código fuente: github.com/B4bit-Official/b4bit-pay-mcp.