{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xrpay/json-schema/xrpay-refund-create-schema.json",
  "title": "RefundCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xrpay-refunds-api-openapi.yml#/components/schemas/RefundCreate",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "payment_intent_id"
  ],
  "properties": {
    "payment_intent_id": {
      "type": "string"
    },
    "amount_minor": {
      "type": "integer",
      "minimum": 1,
      "description": "Omit to refund the remaining refundable amount."
    },
    "reason": {
      "type": "string",
      "maxLength": 500
    },
    "external_refund_id": {
      "type": "string",
      "maxLength": 200
    }
  }
}