{ "$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)**.
0 = ID card (both sides in one file).
1 = Proof of address.
2 = Scan of a proof of IBAN.
3 = Passport (European Union).
4 = Passport (outside the European Union).
5 = Residence permit (both sides in one file).
6 = Other document type.
7 = Official company registration document (Kbis extract or equivalent).
11 = Driver licence (both sides in one file).
12 = Status.
13 = Selfie.
14 = Other document type.
15 = Other document type.
16 = Other document type.
17 = Other document type.
18 = Other document type.
19 = Other document type.
20 = Other document type.
21 = SDD mandate.
", "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" } } }