{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-doc-external-book-transfer-request-schema.json",
  "title": "DocExternalBookTransferRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-payments-api-openapi.yml#/components/schemas/DocExternalBookTransferRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/ExternalBookTransferRequest"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ExternalBookTransferDetailsDTO": {
      "type": "object",
      "properties": {
        "amount": {
          "type": "number",
          "description": "Transaction dollar amount for transfer"
        },
        "longMemo": {
          "type": "string",
          "description": "Long descriptions Max 100 characters"
        },
        "shortMemo": {
          "type": "string",
          "description": "10 character memo"
        },
        "clientTransactionIdentifier": {
          "type": "string",
          "description": "Client transaction reference identifier"
        }
      },
      "required": [
        "amount",
        "shortMemo"
      ]
    },
    "ExternalBookTransferRequest": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "originatingClientOrgAccount": {
          "$ref": "#/$defs/OriginatingClientOrgAccountDTO"
        },
        "receivingClientOrgAccount": {
          "$ref": "#/$defs/ReceivingClientOrgAccountDTO"
        },
        "clientOrgTransaction": {
          "$ref": "#/$defs/ExternalBookTransferDetailsDTO"
        }
      },
      "required": [
        "clientOrg",
        "clientOrgTransaction",
        "originatingClientOrgAccount",
        "receivingClientOrgAccount"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "OriginatingClientOrgAccountDTO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The UUID of the account funds will be pulled from"
        }
      },
      "required": [
        "id"
      ]
    },
    "ReceivingClientOrgAccountDTO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": " The UUID of the account funds will be deposited into"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}