{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ordogrid/json-schema/ordogrid-payment-create-schema.json",
  "title": "PaymentCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ordogrid-payments-api-openapi.yml#/components/schemas/PaymentCreate",
  "additionalProperties": false,
  "properties": {
    "amount": {
      "description": "Positive amount; prefer a decimal string. Excess minor-unit precision is refused.",
      "oneOf": [
        {
          "description": "Exact decimal currency amount; no binary arithmetic. Precision follows capabilities.currencies.",
          "pattern": "^-?[0-9]+(?:\\.[0-9]+)?$",
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "currency": {
      "enum": [
        "EUR",
        "USD",
        "GBP",
        "JPY"
      ],
      "type": "string"
    },
    "external_id": {
      "maxLength": 200,
      "minLength": 1,
      "type": "string"
    },
    "method": {
      "enum": [
        "cash",
        "card",
        "bank_transfer",
        "direct_debit",
        "other"
      ],
      "type": "string"
    },
    "occurred_at": {
      "description": "Confirmed movement occurrence with timezone.",
      "format": "date-time",
      "type": "string"
    },
    "reference": {
      "maxLength": 500,
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "external_id",
    "amount",
    "currency",
    "method",
    "occurred_at"
  ],
  "type": "object"
}