{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpay-so/json-schema/agentpay-so-agent-payment-intent-request-schema.json",
  "title": "AgentPaymentIntentRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpay-so-openapi.yml#/components/schemas/AgentPaymentIntentRequest",
  "type": "object",
  "required": [
    "merchantId",
    "agentId",
    "amount"
  ],
  "properties": {
    "merchantId": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of the merchant to pay"
    },
    "agentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Identifier for the paying agent (any string; UUID if registered)"
    },
    "amount": {
      "type": "number",
      "description": "Amount in USDC (e.g. 0.10 = $0.10)"
    },
    "currency": {
      "type": "string",
      "enum": [
        "USDC"
      ],
      "default": "USDC"
    },
    "metadata": {
      "type": "object",
      "description": "Optional key-value metadata attached to the intent"
    }
  }
}