{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cm-com/json-schema/cm-com-refund-schema.json",
  "title": "Refund",
  "description": "Refund an already successfully processed payment.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-checkout-api-openapi.yml#/components/schemas/Refund",
  "type": "object",
  "properties": {
    "amount": {
      "$ref": "#/$defs/Amount",
      "description": "Denomination in the smallest currency subunit, as for example euro cents. If empty, the refund amount will be the remaining available amount of the transaction (i.e., total payment amount minus already refunded amounts minus the amounts of the pending refund requests).\n"
    },
    "reason": {
      "$ref": "#/$defs/RefundReason"
    }
  },
  "$defs": {
    "Amount": {
      "description": "Denomination in the smallest currency subunit, as for example euro cents.",
      "type": "integer",
      "minimum": 1,
      "maximum": 99999999
    },
    "RefundReason": {
      "description": "The description for the refund for administrative purpose only. This reason will be visible in the portal.\n",
      "type": "string",
      "maxLength": 255
    }
  }
}