Dokument hochladen
Lädt ein Dokument (PDF, JPG oder PNG, max. 10 MB) hoch und gibt eine Dokument-ID zurück. Die Datei wird per SHA256-Hash dedupliziert. Die Dokument-ID kann anschließend beim Erstellen einer Buchung über POST /v1/bookings referenziert werden.
POST
/v1/documents Authorization
Authorization string header erforderlich API-Key im Format
ll_.... Übergabe als Bearer Token. Request Body multipart/form-data
file file erforderlich Beleg-Datei (PDF/JPG/PNG, max. 10 MB). MIME-Typ wird zusätzlich über Magic Bytes validiert.
Antworten
200
Erfolgreich
400
INVALID_FILE_TYPE
400
EMPTY_FILE
400
FILE_TOO_LARGE
400
MIME_MISMATCH
POST
cURL /v1/documents -cmd">curl --request -method">POST -punct">\
--url 'https://api.ledgerlou.de/v1/documents' -punct">\
--header 'Authorization: Bearer ll_your_key' 200 Response
JSON {
"id": "<string>",
"mime_type": "<string>",
"original_name": "<string>"
}