{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-money-out-input-schema.json",
  "title": "MoneyOutInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyouts-api-openapi.yml#/components/schemas/MoneyOutInput",
  "required": [
    "accountId",
    "autoCommission"
  ],
  "type": "object",
  "properties": {
    "accountId": {
      "description": "Payment Account ID to be debited",
      "maxLength": 256,
      "minLength": 0,
      "type": "string"
    },
    "ibanId": {
      "format": "int64",
      "description": "IBAN ID\nIf no IBAN is specified, the last verified(validated) IBAN will be used.",
      "type": "integer"
    },
    "totalAmount": {
      "format": "int32",
      "description": "Total amount to debit from the Wallet\nThe client will receive on his bank account[totalAmount] minus[commissionAmount].\nAmounts are given as integer numbers in cents",
      "type": "integer"
    },
    "commissionAmount": {
      "format": "int32",
      "description": "Your fee\nAmounts are given as integer numbers in cents",
      "type": "integer"
    },
    "comment": {
      "description": "Payment Comment",
      "maxLength": 140,
      "minLength": 0,
      "type": "string"
    },
    "autoCommission": {
      "description": "This should be set to No (0) for most sites\nIf true:\n1. [amountCom] will be ignored and will be replaced with Lemonway's fee.\n2. You will not receive any fee.",
      "type": "boolean"
    },
    "reference": {
      "description": "Unique ID of the call, generated by your server. This ID can be used as a search field when looking for operation details",
      "maxLength": 50,
      "minLength": 0,
      "type": "string"
    }
  }
}