Skip to main content
Documentation@codespar/sdk v0.16.0

The agentic OS for money movement in Latin America.

Commerce checkout, procurement, payroll, treasury and cross-border, over the rails the region actually uses (Pix, boleto, NF-e, WhatsApp, SPEI), behind one SDK and fifteen meta-tools, governed by signed mandates.

Start here

Pick the thing you came to do. Each of these ends with a real response, not a diagram.

Four ways in, one runtime

The same governed runtime answers all four. Pick by what you are building with, not by what you are building.

Integrating without our SDK?

Everything the SDK does is an HTTP call you can make yourself, and mandate signing is server-side — you never hold a signing key. The HTTP reference and the served OpenAPI document are the complete contract; point your own generator at it.

See both sides run

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

↘ You get paid

agent · seller agent
sb_sell_idx
Charge R$249 for the Pro Plan and send the Pix code to +55 11 99988-7766 on WhatsApp.
Cobrança criada. Enviando o copia-e-cola no WhatsApp do cliente...
Enviado. Quando o Pix liquidar, emito a NFS-e e te aviso.
codespar_chargepix✓ done620ms
codespar_notifywhatsapp✓ done340ms
codespar_invoicenfse● runningon settle
inbound charge · fiscal document on settlement · same audit chainRun this cookbook in Sandbox →

↗ You send agents out to spend

agent · buyer agent
sb_buy_idx
Buy the cheapest ração golden 15kg at Cobasi and pay with my wallet.
Encontrei por R$ 179,90. Checkout da loja pronto, Pix gerado. Pagando com a carteira, dentro do mandato (cap R$ 500/mês)...
Pago. Recibo assinado rcp_8f2a gravado no ledger. Restante do mandato: R$ 320,10.
codespar_shopcheckout✓ done84s
codespar_walletbalance✓ done180ms
codespar_paypix✓ done1.4s
mandate-gated spend · signed receipt · audit chainRun this cookbook in Sandbox →

✦ Either way, the same artifact

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

Agentic receipt
rcp_8f2a41c9
signed · Ed25519
Mandate — the permission
mandatecm_gWEZO68q
capBRL 500.00 / month
spent after thisBRL 179.90
Payment — the settlement
railpix
amountBRL 179.90
end-to-end refE18236120…7401
Delivery — the proof
evidencestore order #1049-B confirmed
chain a91c…04be 7d2f…c918verifiable offline via did:web
A signed agentic receipt binding the mandate, the settled payment, and the delivery proof, chained into the audit ledger and verifiable offline.
Introduction | CodeSpar