---
title: "See both sides run"
description: The same infrastructure with the money going the other way. Watch the mandate gate, the router and the receipt stay identical while the direction flips.
---

Same infrastructure, same governance. Watch the direction of money flip while the mandate gate, the router, and the receipt stay identical.

## ↘ You get paid

<MoneyFlowDiagram side="sell" />

<ChatPreview
  agentName="seller agent"
  sessionId="sb_sell_idx"
  messages={[
    { role: "user", content: "Charge R$249 for the Pro Plan and send the Pix code to +55 11 99988-7766 on WhatsApp." },
    { role: "agent", content: "Cobrança criada. Enviando o copia-e-cola no WhatsApp do cliente..." },
    { role: "agent", content: "Enviado. Quando o Pix liquidar, emito a NFS-e e te aviso." },
  ]}
  toolCalls={[
    { name: "codespar_charge", server: "pix", status: "done", duration: "620ms" },
    { name: "codespar_notify", server: "whatsapp", status: "done", duration: "340ms" },
    { name: "codespar_invoice", server: "nfse", status: "pending", duration: "on settle" },
  ]}
  footer="inbound charge · fiscal document on settlement · same audit chain"
  sandboxLink="/dashboard/sandbox"
/>

## ↗ You send agents out to spend

<MoneyFlowDiagram side="buy" />

<ChatPreview
  agentName="buyer agent"
  sessionId="sb_buy_idx"
  messages={[
    { role: "user", content: "Buy the cheapest ração golden 15kg at Cobasi and pay with my wallet." },
    { role: "agent", content: "Encontrei por R$ 179,90. Checkout da loja pronto, Pix gerado. Pagando com a carteira, dentro do mandato (cap R$ 500/mês)..." },
    { role: "agent", content: "Pago. Recibo assinado `rcp_8f2a` gravado no ledger. Restante do mandato: R$ 320,10." },
  ]}
  toolCalls={[
    { name: "codespar_shop", server: "checkout", status: "done", duration: "84s" },
    { name: "codespar_wallet", server: "balance", status: "done", duration: "180ms" },
    { name: "codespar_pay", server: "pix", status: "done", duration: "1.4s" },
  ]}
  footer="mandate-gated spend · signed receipt · audit chain"
  sandboxLink="/dashboard/sandbox"
/>

## ✦ Either way, the same artifact

Every settled move on either side seals a signed receipt binding permission, settlement, and proof:

<ReceiptCard />

<DomainGrid
  title="Browse by commerce domain"
  subtitle="A second lens on the same rails: the domains below serve both sides. A charge and a payment ride the same Pix providers. Pick a domain to jump to the catalog, the meta-tool, and the cookbook."
  domains={[
    {
      title: "Payments",
      description: "Pix, boleto and card route through the payment meta-tools: charge and payout across every major LatAm processor. SPEI, refunds and other provider-specific operations are reachable as raw provider tools.",
      href: "/docs/concepts/tools#codespar_pay",
      icon: "$",
      accent: "#3B82F6",
    },
    {
      title: "Fiscal",
      description: "NF-e, NFS-e, CFDI, AFIP. Automated invoicing in BR, MX, AR, CO.",
      href: "/docs/concepts/tools#codespar_invoice",
      icon: "§",
      accent: "#8B5CF6",
    },
    {
      title: "Logistics",
      description: "Correios, Melhor Envio, Skydropx, Andreani: quote, label, track.",
      href: "/docs/concepts/tools#codespar_ship",
      icon: "→",
      accent: "#10B981",
    },
    {
      title: "Messaging",
      description: "WhatsApp, SMS, email via Z-API, Evolution, Zenvia, Take Blip.",
      href: "/docs/concepts/tools#codespar_notify",
      icon: "@",
      accent: "#F59E0B",
    },
    {
      title: "Banking",
      description: "Stark Bank, Inter, Nubank, Nequi, Open Finance: statements, transfers, Pix BCB.",
      href: "/docs/servers#banking-7-servers",
      icon: "⛃",
      accent: "#06B6D4",
    },
    {
      title: "ERP & Accounting",
      description: "Omie, Bling, Tiny, Conta Azul, Siigo: sync products, orders, financials.",
      href: "/docs/servers#erp-accounting-7-servers",
      icon: "⊞",
      accent: "#F472B6",
    },
  ]}
/>
