Cofounder

Wallet

Connect a company wallet, send payments, and collect money.

Connect a payment wallet so your agent can pay vendors and collect money for your company. Wallet tools are not available to every company yet. Wallet funds are separate from Cofounder usage credits.

MCPCLIAPI

Connect a wallet

cofounder wallet connect
cofounder wallet get

In production, the calling administrator receives an invitation to choose an account and spending limits. The invitation asks for every permission the wallet tools use, so one approval covers payments, checkout, and cards. Follow the invitation and read the wallet again to check that it is connected. In sandbox, the command creates and connects a test account automatically. Sandbox funds have no real value.

Accept cards in your app

For a seeded product app, configure checkout with wallet_apps_setup or:

cofounder wallet apps setup --app-binding-id <app-binding-uuid>

Complete the administrator consent link if one is returned. Card-payment approval is required in production; sandbox connects automatically. Deploy the app after setup to load its settings, then use its Payments link. The app's server owns the prices and verifies each payment before showing confirmation.

Apps can also offer monthly memberships once recurring payments and payment notifications are enabled. Confirmed payment unlocks member access, and customers can cancel from their membership page.

This feature is not available to every company yet. Setup does not deploy the app or send funds. Existing app subscriptions continue to work separately.

Send and collect

Sending a payment moves real funds in production. Amounts are in USD cents. Use a new --operation-id for each intended payment. Reuse the same ID and arguments when retrying that payment.

cofounder wallet payments create \
  --operation-id 0c816309-e1bd-4f04-9fce-34c78719b690 \
  --amount-cents 1000 --counterparty-email vendor@example.com \
  --description "Invoice 42"

Requesting payment notifies the payer and returns a payment link.

cofounder wallet payment-requests create \
  --operation-id d9cced98-d99e-48b2-9170-88ce73264164 \
  --amount-cents 2500 --counterparty-email customer@example.com \
  --description "Invoice 43"

Check a payment

cofounder wallet operations get --operation-id 0c816309-e1bd-4f04-9fce-34c78719b690
cofounder wallet transactions list --limit 20

An unconfirmed submission has a null status. Retry the original call only when retry_same_operation is true. If it is false, contact support to reconcile the payment. Never use a new ID to retry an uncertain payment. For more transactions, pass the returned page.next_cursor as --cursor while page.has_more is true.

Pay with a card

When a merchant only takes cards, issue a single-use card that spends from the wallet. It approves one purchase up to --max-amount-cents and expires after --expires-in-minutes (60 by default).

cofounder wallet cards create \
  --operation-id 5fc2e8e4-af75-4a7a-81a5-6a6ad0996de2 \
  --max-amount-cents 2000 --merchant-name "Sandbox Coffee"
cofounder wallet cards details get --card-id <card_id>

Read the card number only right before entering it at checkout, and don't store it. In sandbox, every card uses the test number 4242 4242 4242 4242. Reuse the same operation ID and arguments to retry an uncertain request; it returns the same card.

cofounder wallet cards get --card-id <card_id>
cofounder wallet card-transactions list
cofounder wallet cards cancel --card-id <card_id>

A card is active until its purchase is approved, then used. Cancel a card you no longer need. Card transactions show purchases, declines with their reason, and refunds. Wallets connected before cards were available can't issue cards; contact support to reconnect.

Transfer sandbox credits

When your company has wallet access, you can transfer between sandbox wallet funds and Cofounder usage credits. Production transfers are not available.

cofounder wallet credits get
cofounder wallet credit-transfers create \
  --operation-id 35a6581d-8d24-41d8-91ce-d92a2684d1e1 \
  --direction to_wallet --amount-cents 100
cofounder wallet credit-transfers get \
  --operation-id 35a6581d-8d24-41d8-91ce-d92a2684d1e1

Only unused credits backed by verified customer payments can move to the wallet. Free credits, bonuses, and balances without payment receipts are excluded. Use --direction to_credits to buy credits from the wallet; this requires an active Cofounder credit subscription. One wallet cent buys one credit cent.

A pending cash-out holds the credits until payment completes or fails. Credits purchased from the wallet become spendable after payment completes. Retry an uncertain submission with the same command and ID, then check it again.