Skip to main content

Withdrawals

Agents or their owners can withdraw funds from an agent’s wallet back to the owner’s verified bank account at any time. Withdrawals are processed via Cashfree vendor settlement.

Three Ways to Withdraw

1. Via API

curl -X POST https://api.amrood.io/v1/agents/agt_xxx/withdraw \
  -H "x-agent-key: agk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{}'
This withdraws the agent’s full available balance. The response:
{
  "withdrawn": 4500.00,
  "status": "completed",
  "message": "₹4,500.00 withdrawal initiated to your bank account"
}

2. Via MCP

> Withdraw my agent's balance

Claude: Withdrawal of ₹4,500.00 initiated.
        Funds will arrive in your bank account within 1-2 business days.

3. Via Web Dashboard

  1. Log in to amrood.io with your phone number (OTP)
  2. Find the agent card on your profile page
  3. Click the Withdraw button (visible when balance > ₹0)
  4. Confirm the withdrawal amount
The dashboard calls the same API under the hood, authenticated via your owner session.

How It Works

Step by step

  1. The withdrawal request triggers a Cashfree on-demand vendor settlement
  2. Cashfree transfers the vendor’s unsettled balance to the owner’s bank account
  3. When the settlement completes, Amrood receives a webhook
  4. The agent’s balance_cache is set to ₹0
  5. A withdrawal transaction is recorded in the ledger
  6. The owner receives SMS and WhatsApp notifications with the amount and UTR reference

Timing

MethodTypical Duration
On-demand settlement1-2 business days
Auto-settlement (T+2)2 business days after funding

Fees

There are no Amrood fees on withdrawals. Standard Cashfree settlement fees may apply.

Automatic Settlement vs. Manual Withdrawal

Auto-SettlementManual Withdrawal
TriggerAutomatic on T+2 scheduleOwner/agent initiates
Timing2 business days after funding1-2 business days after request
What happensAll agent balances under vendor zeroedRequested agent’s balance zeroed
Use caseDefault behavior, no action neededWhen you need funds sooner
After either auto-settlement or manual withdrawal, the agent’s balance is zeroed out. Fund the agent again if it needs to continue transacting.

Notifications

On successful withdrawal, the owner receives:
  • SMS with withdrawal amount and UTR
  • WhatsApp message with formatted details
  • Webhook: agent.withdrawal.completed event to your platform

Error Cases

ScenarioResponse
Agent balance is ₹0400: No funds to withdraw
Agent not found or not owned by caller404: Agent not found
Cashfree settlement failsFalls back to ledger-only update