{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aspern-org/json-schema/aspern-org-receipt-request-schema.json",
  "title": "ReceiptRequest",
  "description": "What you did, in your words. The reference is stored and NOT verified: it is your evidence, and writing it here does not make it true.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aspern-org-alerts-api-openapi.yml#/components/schemas/ReceiptRequest",
  "type": "object",
  "required": [
    "subject",
    "action",
    "reference"
  ],
  "properties": {
    "subject": {
      "type": "string",
      "description": "The address you acted on."
    },
    "action": {
      "type": "string",
      "enum": [
        "payment",
        "tool_call"
      ],
      "description": "What you did."
    },
    "reference": {
      "type": "string",
      "description": "A transaction hash, or the digest of a signed payload."
    },
    "chain": {
      "type": "string",
      "description": "Where it settled, where it settled anywhere."
    },
    "amountUsd": {
      "type": "number",
      "description": "What you committed, in US dollars.",
      "x-unit": "usd"
    },
    "expected": {
      "type": "string",
      "description": "What you expected to follow. Yours to claim, ours to store."
    },
    "deadline": {
      "type": "string",
      "format": "date-time",
      "description": "When you expected it by. A time already past is REFUSED rather than accepted, because it is almost always seconds where milliseconds were meant, and it would produce a receipt overdue the moment it was written."
    },
    "policy": {
      "type": "string",
      "description": "The policy you evaluated under before acting."
    },
    "verdict": {
      "type": "string",
      "description": "The decision we gave you, so a later disagreement is read against what we said at the time."
    }
  }
}