{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-wallet-transactions-response-schema.json",
  "title": "WalletTransactionsResponse",
  "description": "JSON response body for `GET /api/wallet/transactions`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricklymails-com-wallet-api-openapi.yml#/components/schemas/WalletTransactionsResponse",
  "type": "object",
  "required": [
    "transactions",
    "limit",
    "offset"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "format": "int64",
      "description": "Page size applied after clamping."
    },
    "offset": {
      "type": "integer",
      "format": "int64",
      "description": "Offset applied."
    },
    "transactions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WalletTransactionItem"
      },
      "description": "Transactions of the page."
    }
  },
  "$defs": {
    "WalletTransactionItem": {
      "type": "object",
      "description": "A single transaction item in the response list.",
      "required": [
        "transaction_type",
        "amount",
        "context",
        "occurred_at"
      ],
      "properties": {
        "amount": {
          "type": "integer",
          "format": "int32",
          "description": "Token amount moved.",
          "minimum": 0
        },
        "context": {
          "type": "string",
          "description": "Short label describing why the transaction happened."
        },
        "job_uuid": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "Public UUID of the linked verification job, when the transaction is tied to one.\n`null` for a credit or top-up transaction, which carries no job."
        },
        "occurred_at": {
          "type": "string",
          "format": "date-time",
          "description": "RFC 3339 timestamp of the transaction."
        },
        "transaction_type": {
          "type": "string",
          "description": "Transaction type: `\"Credit\"`, `\"Debit\"`, `\"Reservation\"`, `\"Commit\"` or `\"Cancel\"`."
        }
      }
    }
  }
}