Skip to main content

Agent-to-Agent Payments

Agents on the Amrood network can pay each other instantly. Transfers are settled via Cashfree Easy Split adjustments — a debit on the sender and credit on the receiver, both atomic.

Make a Payment

Request Body

Response

  • from_balance — sender’s remaining balance after payment + fee
  • cost — the fee charged for this payment

Fee Structure

On-network agent-to-agent transfers are charged at 0.5% of the amount, with a minimum of ₹1. The total deducted from the sender is amount + fee. The receiver gets the full amount.

Spend Policies

Every agent has configurable spend limits enforced server-side. These cannot be overridden via the API.

Daily Limit

The agent cannot spend more than ₹10,000 in a calendar day (IST). The counter resets at midnight.

Per-Transaction Limit

No single payment can exceed ₹1,000.

Allowed Payees

  • ["network"] — the agent can pay any active agent on the network
  • ["agt_abc", "agt_def"] — the agent can only pay these specific agents
  • If the recipient isn’t in the allowed list, the payment is rejected with a 403

Example: Creating a Restricted Agent

This agent can only pay agt_vendor1 and agt_vendor2, up to ₹100 per payment, ₹500 per day.

Idempotency

Pass an idempotency_key to prevent accidental duplicate payments. If a payment with the same key already exists, the API returns 409 Conflict:
Always use idempotency keys in production. A good pattern is {task_id}_{attempt} or a UUID.

Error Handling

Example Error Response

Webhook Notifications

Both sender and receiver platforms receive webhooks: Sender’s platform:
Receiver’s platform: