{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentaos-ai/json-schema/agentaos-ai-refund-request-schema.json",
  "title": "RefundRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentaos-ai-transactions-api-openapi.yml#/components/schemas/RefundRequest",
  "type": "object",
  "properties": {
    "captureId": {
      "type": "string",
      "format": "uuid",
      "description": "The sale the request is about."
    },
    "status": {
      "type": "string",
      "enum": [
        "requested",
        "executed",
        "declined"
      ],
      "description": "`requested` while AgentaOS reviews it, `executed` once the buyer was refunded, `declined` with a note."
    },
    "requestedAt": {
      "type": "string",
      "format": "date-time"
    },
    "decidedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "AgentaOS's reason on a decline, shown to you. Null otherwise."
    }
  },
  "required": [
    "captureId",
    "status",
    "requestedAt",
    "decidedAt",
    "note"
  ]
}