{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lemonway/main/json-schema/lemonway-upload-document-input-schema.json",
  "title": "UploadDocumentInput",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-directkit-api-2-0-openapi.yml#/components/schemas/UploadDocumentInput",
  "required": [
    "name",
    "type",
    "buffer"
  ],
  "type": "object",
  "properties": {
    "name": {
      "description": "Document Name",
      "type": "string"
    },
    "type": {
      "format": "int32",
      "description": "Document Type:  \r\n**Note:**  \r\n If you have previously uploaded a document in a reserved **slot(0-13)** and need to upload another document of the same type, use the slot **Other document(6, 14-20)**.<br/>0 = ID card (both sides in one file).<br/>1 = Proof of address.<br/>2 = Scan of a proof of IBAN.<br/>3 = Passport (European Union).<br/>4 = Passport (outside the European Union).<br/>5 = Residence permit (both sides in one file).<br/>6 = Other document type.<br/>7 = Official company registration document (Kbis extract or equivalent).<br/>11 = Driver licence (both sides in one file).<br/>12 = Status.<br/>13 = Selfie.<br/>14 = Other document type.<br/>15 = Other document type.<br/>16 = Other document type.<br/>17 = Other document type.<br/>18 = Other document type.<br/>19 = Other document type.<br/>20 = Other document type.<br/>21 = SDD mandate.<br/>",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        11,
        12,
        13,
        14,
        15,
        16,
        17,
        18,
        19,
        20,
        21
      ],
      "type": "integer"
    },
    "buffer": {
      "description": "Byte array with the document. Encode in base 64 if necessary.",
      "type": "string"
    },
    "sddMandateId": {
      "format": "int64",
      "description": "Lets you upload your signed(with your own signing partner) mandate document, to validate a mandate ID you previously created with `RegisterSddMandate`.",
      "type": "integer"
    }
  }
}