{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-refund-money-in-input-schema.json",
  "title": "RefundMoneyInInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-refunds-api-openapi.yml#/components/schemas/RefundMoneyInInput",
  "type": "object",
  "properties": {
    "amountToRefund": {
      "format": "int32",
      "description": "Refund Amount. If empty, the total amount of the payment will be refunded.",
      "pattern": "^-?[0-9]{1,13}(.[0-9]{2}){0,1}$",
      "type": "integer"
    },
    "comment": {
      "description": "Comment on the refund. \n**Explain the reason for the refunded amount** \n**Note:** In the API Response displayed before the comment will appear the refund transaction id. Example: comment\": \"Refund 2763789 Items not wanted\"",
      "maxLength": 140,
      "minLength": 0,
      "type": "string"
    }
  }
}