Use cases
What agents build on top of CodeSpar.
Ten patterns early builders are shipping today, organized by the money movement they run: commerce, procurement, payroll, treasury and cross-border. Each one is a short composition of the same primitives: sessions, mandates, routing, audit.
CommerceProcurement / APPayroll + payoutsTreasuryCross-border
Commerce
06Autonomous fulfillment agentEnd-to-end order handling for LatAm marketplacesAn agent watches the order stream, charges the buyer on the cheapest local rail, issues the fiscal document, prints a shipping label, notifies on WhatsApp, and reconciles it all into the ERP. Unattended, audit-sealed.58sfrom order to sealed ledgerSee exampleWhatsApp commerce botConversational checkout that settles in chatCustomer browses, negotiates, and pays without leaving WhatsApp. The agent generates a Pix QR inline, confirms payment, issues the fiscal doc, and sends tracking once the carrier picks up. No links, no redirects.3-tapcheckout inside chatSee exampleSubscription billing agentMulti-currency charges with local railsCharge $10 USD equivalent in each customer's local currency, on the rail they prefer, with the right fiscal doc. Handles dunning, retries, downgrades, and mid-cycle changes without a human touching the payments.12 currenciesfrom one base priceSee exampleSupport refund agentTicket to refund in under a minuteThe agent reads the complaint, verifies the order against the ERP, refunds on the original rail, issues the credit note, and notifies the customer. Policy-checked against per-agent spend limits. Every step sealed.12scomplaint to refund + auditSee exampleMetered API accessPriced by what the call actually used, not a flat guessThe calling agent signs a spending cap before each API call runs. Meter tracks the real usage — pages processed, tokens spent, compute time — against that cap, and the unused difference refunds on-chain automatically the moment the job finishes. The receipt reseals with the true number, not the estimate.100%of the unused cap refunded automaticallySee exampleWhite-label monetizationRun CodeSpar's whole rate card, under your own brandA consumer fintech's org runs CodeSpar's entire published rate card white-label. Subscribers onboard as consumers scoped to the fintech's org, every fee accrues automatically against the same rate everyone pays, and the fintech's split sweeps to its own wallet on schedule. The R$4.90 monthly consumer cap is what makes a low-ticket subscriber plan actually pencil out.R$4.90consumer cap makes a low-ticket end-customer plan pencil outSee example
Procurement / AP
03Fiscal compliance autopilotNF-e, CFDI, Factura issued automaticallyEvery transaction triggers the right fiscal document in the right country. The agent validates CNPJ/RFC/CUIT, emits the document, stores the PDF + XML, and registers in the ERP. No more end-of-month fiscal panic.100%auto-issued on transactionSee exampleMulti-country ERP bridgeOne source of truth across Omie, Bling, SAPAgents write every transaction to the right ERP per country and entity. Currency-converted, fiscal-attached, counterparty-matched. The accounting team wakes up to a reconciled ledger, not a reconciliation to-do.Zeromanual reconciliation entriesSee exampleStorefront shopping agentRecurring reorders on the real store, no integration requiredThe agent drives a hosted browser session through the supplier's real VTEX storefront — search, cart, checkout — buying under a signed spending mandate. No API, no punch-out catalog, no vendor integration project: it shops the store exactly as it exists today, and every purchase closes into a sealed receipt.0API integrations requiredSee example
Treasury
04Treasury agentIdle balance managed by policyThe agent watches wallet balances across currency slots, keeps the operating float liquid, and moves the rest between BRL and USDC slots under the same mandate. One wallet, per-currency caps, every move sealed.1 walletBRL + USDC slots, no FX deskSee exampleAuto top-upThe float refills itselfWhen the BRL slot drops below the floor, the agent mints a dynamic Pix charge against the funding source and tops the wallet up, under the same mandate, inside the same caps. Payouts never stall at 2am because the float ran dry.0 stallsfloat keeps itself liquidSee exampleMachine spend (x402)Pay-per-call APIs in USDCAn x402-priced API answers with a quote; the agent settles it in USDC from its wallet slot, inside the per-tx cap, and the receipt is sealed with the mandate that allowed it. Machine-to-machine spend with a budget, not a blank check.1 USDCspent per call, sealed with the mandateSee exampleGoverned agent cardReal-time authorization, bound to the mandateThe agent holds a card scoped to its own spend mandate for ad-hoc purchases: a subscription renewal, a travel booking, a one-off vendor charge. Every attempted charge is evaluated in real time by CodeSpar's own authorizer, which runs on the platform, outside the PCI-scoped cardholder data environment on AWS: it works on the issued-card identifier and the mandate, never the card number.Previewauthorization decision, bound to the mandateSee example
Your idea is not here?It is probably just a few servers away.
Every use case above is a short composition of the same primitives — sessions, mandates, routing, audit. Open the sandbox and try yours in ten minutes.