{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audit-domains/json-schema/audit-domains-card-agent-pay-schema.json",
  "title": "CardAgentPay",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audit-domains-machine-api-openapi.yml#/components/schemas/CardAgentPay",
  "type": "object",
  "required": [
    "action",
    "version",
    "operationId",
    "grantId",
    "cardRef",
    "domain",
    "maxSpendUsd"
  ],
  "properties": {
    "action": {
      "const": "card_agent_pay"
    },
    "version": {
      "const": "card-agent-1"
    },
    "operationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      "description": "Your idempotency key for this charge. Persist it before sending; repeat the identical request to recover any uncertain outcome."
    },
    "grantId": {
      "type": "string",
      "format": "uuid",
      "description": "An operator-issued grant naming product current_appraisal."
    },
    "cardRef": {
      "type": "string",
      "pattern": "^acr_[0-9a-f]{32}$",
      "description": "The enrolled card handle from enrollment. Never a card number."
    },
    "domain": {
      "type": "string"
    },
    "intent": {
      "type": "string",
      "const": "appraise"
    },
    "maxSpendUsd": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Your hard ceiling for this charge. Below the price, the answer is ceiling_below_price and nothing is charged."
    }
  }
}