The pain
Fixed obligations, known payees, and someone still has to remember, check and pay.
Who uses it
The person, or the couple.
Who buys it
The app that already serves them: an online accountant, a bank.
The gain
The assistant pays what the mandate allows; only the unexpected asks for your approval.
The flow, side by side
From the accountant's slip to a receipt kept with it.
The amount comes from the accountant; the assistant calculates nothing, reconciles nothing and pays nobody outside the mandate.
01Accountant
Slip of the month
The accountant sends the month's tax slip. The amount is theirs.
R$ 1,218.00 · due on the 20th02CodeSpar
Checked
The barcode marks it as a tax slip; the mandate's caps are checked before anything is sent.
tributo · collecting authority03CodeSpar
Paid, or waiting
Under the per-transaction cap the boleto is paid; above it, the payment waits for approval.
−R$ 1,218.00 · boleto04The app
Receipt with the slip
The signed receipt is kept with the slip in the app that serves you.
rcpt_demo_1020 · signed
Behind it
Mandate, slip, approval, receipt.
What the assistant may pay lives in a mandate you sign. The amount comes from the accountant; the platform checks the caps and keeps the proof.
SDK example · demo data · not run on this page
Later variations
Two more households, later.
Scene A is the one this page shows. B and C are candidates for later, with the same rules and no promise beyond them.
Scene BLater
A family
School, housekeeper, electricity and internet under one monthly cap. A one-off enrollment slip above the per-transaction cap waits for approval.
Scene CLater
A doctor with a PJ
Office rent and staff under the mandate; fees received from clinics kept in the history, with no automatic reconciliation. Equipment from a supplier no mandate names needs a new mandate first.
What exists today
Exists, sandbox, pilot or direction: one label per control.
What you can run with a test key today, what runs in the sandbox, what depends on a pilot or an integration, and what is only a direction.
Cookbook
The month's slip, paid under a mandate.
You sign the mandate on the consent page; the assistant pays the slip in plain language. Above the per-transaction cap the payment waits for approval; the assistant reads the outcome.
- A test keyFrom the Dashboard. Test keys are free; nothing moves real money.
- A mandatePurpose, per-transaction and monthly caps. The Dashboard opens the consent page; you sign it.
- The slipThe barcode line from the accountant. The amount is theirs; nothing is calculated.
// 1 · you signed the mandate on the consent page: tax slips, R$ 2,000.00 per transaction, R$ 6,000.00 a monthimport { CodeSpar, isApprovalRequired } from "@codespar/sdk";const session = await new CodeSpar().create("user_0000", { preset: "brazilian" }); // 2 · the assistant pays the slip on the boleto rail; the amount is the accountant'sconst run = await session.send("pay this month's tax slip from the accountant, due on the 20th");const pay = run.tool_calls.find((c) => c.tool_name === "codespar_pay"); // 3 · under the cap: paid · above it: waits for your approvalif (pay && isApprovalRequired(pay.output)) console.log(pay.output.approval_id, pay.output.expires_at);else if (pay) console.log((await session.paymentStatus(pay.id)).payment_status); // "succeeded"SDK example · demo data · not run on this page