# Rede — how to use (mcp.ai)

Sales, receivables and statements for your Rede (card machine) account via session capture, with your authorization. You provide your Rede portal email and password and the platform logs into your account to read your own data, on the same area you use in the portal. Read-only: sales and transactions by period, receivables schedule and financial statement. Pairs with the Banco MCP to reconcile card machine and bank.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_rede?ms=1796396520000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `rede_cobrancas`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/rede`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://new.mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/rede/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/rede/cobrancas` — Cobranças/ajustes da conta Rede no período (débitos, tarifas e chargebacks), abertas (OPEN) ou liquidadas (CLOSED).
  - body: { start_date?: string, end_date?: string, status?: string, size?: integer }
- `POST https://api.mcp.ai/api/rede/conta` — Estabelecimento (ponto de venda / PV) e terminais/maquininhas da conta no Portal Rede.
- `POST https://api.mcp.ai/api/rede/extrato` — Extrato de recebimentos/depósitos da conta Rede no período (o que foi creditado por dia, por conta bancária).
  - body: { start_date?: string, end_date?: string, size?: integer }
- `POST https://api.mcp.ai/api/rede/recebiveis/agenda` — Agenda de recebíveis da Rede no período (quando cada venda cai na conta), agregada por dia. Inclui a próxima data de recebimento.
  - body: { start_date?: string, end_date?: string, group_by?: string, status?: string, size?: integer }
- `POST https://api.mcp.ai/api/rede/vendas/listar` — Lista as vendas/transações da sua conta Rede por período (crédito, débito e Pix; com NSU, bandeira, modalidade, terminal, status e valor).
  - body: { start_date?: string, end_date?: string, status?: string, modalities?: string, payment_method?: string, size?: integer }
- `POST https://api.mcp.ai/api/rede/vendas/resumo` — Resumo agregado das vendas da sua conta Rede no período (totais por bandeira ou por dia).
  - body: { start_date?: string, end_date?: string, group_by?: string, modalities?: string }

## Example prompts
- "My Rede sales from the last 7 days"
- "What's my receivables schedule on Rede?"
- "Show my Rede account statement this month"

## More
- Page: https://new.mcp.ai/rede
- Agent spec (llms.txt): https://new.mcp.ai/rede/llms.txt
- Postman collection: https://new.mcp.ai/rede/postman.json
