{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-money-in-transfer-init-input-schema.json",
  "title": "MoneyInTransferInitInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-pay-by-bank-api-openapi.yml#/components/schemas/MoneyInTransferInitInput",
  "required": [
    "returnUrl",
    "cancelUrl",
    "errorUrl",
    "countryCode",
    "accountId"
  ],
  "type": "object",
  "properties": {
    "returnUrl": {
      "description": "returnUrl in case of success",
      "type": "string"
    },
    "cancelUrl": {
      "description": "cancelUrl in case of cancellation",
      "type": "string"
    },
    "errorUrl": {
      "description": "errorUrl in case of error",
      "type": "string"
    },
    "countryCode": {
      "description": "The country code associated with the payment bank. ISO Alpha-2 codes accepted: (FR) France, (ES) Spain, (IT) Italy, (DE) Germany, and (PT) Portugal",
      "type": "string"
    },
    "bankId": {
      "description": "If you use the bankId in the call, the end-user will be redirected to their bank. They will not have to select a bank from a list provided. To get a comprehensive list of `bankIds` call the `GET v2/moneyins/paybybank/transfer/banks` specifying the ISO Alpha-2 Country Code for example FR for France.",
      "type": "string"
    },
    "transferType": {
      "format": "int32",
      "description": "The 'TransferType' can be set to:\n- Instant: Faster SEPA instant transfer.Funds are credited within 15 minutes if supported by the payer's bank.\n- Classic: Standard SEPA credit transfer. Funds are credited in 2–3 business days.\n            \nIf not provided, the default value is 'Classic'.<br/>0 = Undefined.<br/>1 = Instant.<br/>2 = Classic.<br/>",
      "enum": [
        0,
        1,
        2
      ],
      "type": "integer"
    },
    "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"
    },
    "accountId": {
      "description": "Payment Account ID to Credit",
      "maxLength": 256,
      "minLength": 0,
      "type": "string"
    },
    "totalAmount": {
      "format": "int32",
      "description": "Amount to Debit\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": "Comment Regarding the Transaction",
      "maxLength": 140,
      "minLength": 0,
      "type": "string"
    },
    "autoCommission": {
      "description": "If true:\n1. [amountCom] will be ignored and will be replaced with Lemonway's fee  \n2. You will not receive any fee",
      "type": "boolean"
    }
  }
}