{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-3scale/json-schema/red-hat-3scale-payment-transaction-list-schema.json",
  "title": "PaymentTransactionList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-3scale-payment-transactions-api-openapi.yml#/components/schemas/PaymentTransactionList",
  "type": "object",
  "properties": {
    "payment_transactions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PaymentTransaction"
      }
    }
  },
  "$defs": {
    "PaymentTransaction": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "invoice_id": {
          "type": "integer"
        },
        "amount": {
          "type": "number"
        },
        "currency": {
          "type": "string"
        },
        "success": {
          "type": "boolean"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "reference": {
          "type": "string",
          "description": "Payment gateway reference or transaction ID"
        },
        "message": {
          "type": "string",
          "description": "Payment gateway response message"
        }
      }
    }
  }
}