Customer Deposits

Let your AI Agents users fund the AI Agent spends directly through automatically generated payment links.

Quick Start

// Generate a deposit link for a user
payload = {
  customerId: "[email protected]", // Let's assume your Agent system stores users unique by email address
  amountDecimal: "0.5", // Ask the customer to deposit 0.5 USD - note Payman fees will be deducted from this so actual amount received will be slightly less
  ignoreCustomerSpendLimits: false, //[Optional] enable this to true if you do not care about specific funding by customer
};

How It Works

Your agent generates a checkout link using the Generate Customer Deposit Link API.

  • User completes payment through the link
  • Funds are credited to that user’s balance
  • Your agent can now spend from that specific user’s balance
  • Key Features

    Automatic Balance Tracking

  • Payman tracks each customers balance for your AI Agent
  • Payments automatically deduct from the correct user’s balance
  • Built-in overspend protection (optional)
  • Customer ID System

  • Use your existing user IDs (email, internal ID, etc.)
  • Must be unique within your organization
  • Payman automatically creates customer profiles based on your IDs
  • Ignore Customer Spend Limits

    There may be scenarios in which you do not care for the AI Agent to spend based on customer, but would like it to still collect funds from customers. An example of this might be pooling funds from people in a game type setting and then letting the AI Agent decide what to do with those funds. In this case enable ignoreCustomerSpendLimits to true.