{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-send-payment-input-schema.json",
  "title": "SendPaymentInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-p2ps-api-openapi.yml#/components/schemas/SendPaymentInput",
  "required": [
    "debitAccountId",
    "creditAccountId"
  ],
  "type": "object",
  "properties": {
    "debitAccountId": {
      "description": "Account ID to be Debited",
      "maxLength": 256,
      "minLength": 0,
      "type": "string"
    },
    "creditAccountId": {
      "description": "Account ID to Credited",
      "maxLength": 256,
      "minLength": 0,
      "type": "string"
    },
    "amount": {
      "format": "int32",
      "description": "Payment Amount",
      "type": "integer"
    },
    "comment": {
      "description": "Payment Comment",
      "maxLength": 140,
      "minLength": 0,
      "type": "string"
    },
    "scheduledDate": {
      "description": "If scheduledDate is set, the following rules will apply:\n1. ScheduledDate cannot be equal to the current date, Paris time (CET).\n2. The payment will be inserted but not executed, the status will be pending and necessary checks like user balance or user status will not be checked.\n3. At 1am, Paris time (CET), on [scheduledDate], the checks will be performed and the payment will be finalized.\n**This feature is only available for some partners, contact commercial services for more information.**",
      "pattern": "^[12]\\d{3}\\/(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])$",
      "type": "string"
    },
    "privateData": {
      "$ref": "#/$defs/PrivateData"
    },
    "originTransactionId": {
      "format": "int32",
      "description": "Origin Transaction Identification",
      "type": "integer"
    },
    "reference": {
      "maxLength": 36,
      "minLength": 0,
      "type": "string"
    }
  },
  "$defs": {
    "PrivateData": {
      "description": "Data with multiple fields that you can associate to a payment and that you can search with GetPaymentDetails.",
      "type": "object",
      "properties": {
        "value": {
          "description": "Up to 20 fields of 256 maximum length",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}