Skip to content

Financing Document

Documents attached to a financing case.

DELETE/api/documents/{id}

[DISABLED] Delete a document

[DISABLED] Soft-deletes the document. Not available: document deletion via API is out of scope and stays disabled for now.

Parameters

Path and query parameters for DELETE /api/documents/{id}
Name In Type Required Description
id path string yes FinancingDocument identifier

Code samples

curl -X DELETE 'https://sandbox.partner.miete24.com/api/documents/{id}' \
  -H 'X-Api-Key: YOUR_API_KEY'

Responses

Responses for DELETE /api/documents/{id}
Status Description Schema
204 FinancingDocument resource deleted —
403 Forbidden —
404 Resource not found —

GET/api/documents/{id}

Get document metadata

Returns metadata (name, size, category, review status, etc.) for a single document. Answers 404 for documents that are not available to you — the same set the document list omits.

Parameters

Path and query parameters for GET /api/documents/{id}
Name In Type Required Description
id path string yes FinancingDocument identifier

Code samples

curl -X GET 'https://sandbox.partner.miete24.com/api/documents/{id}' \
  -H 'X-Api-Key: YOUR_API_KEY'

Responses

Responses for GET /api/documents/{id}
Status Description Schema
200 FinancingDocument resource FinancingDocument.FinancingDocumentResponse-financing_document.read
403 Forbidden —
404 Resource not found —

GET/api/documents/{id}/download

Download document file

Downloads the actual file content of a document belonging to one of your financing cases. Only documents you are entitled to receive are served: files you provided yourself, plus the signed contract and the signed handover confirmation. Documents the end customer provided, Miete24-internal documents and superseded versions are not available and answer with 404 — the same documents are omitted from the document list.

Parameters

Path and query parameters for GET /api/documents/{id}/download
Name In Type Required Description
id path string yes FinancingDocument identifier

Code samples

curl -X GET 'https://sandbox.partner.miete24.com/api/documents/{id}/download' \
  -H 'X-Api-Key: YOUR_API_KEY'

Responses

Responses for GET /api/documents/{id}/download
Status Description Schema
200 FinancingDocument resource FinancingDocument
403 Forbidden —
404 Resource not found —

GET/api/financing-cases/{financingCaseId}/documents

List the documents of a financing case you may access

Returns the documents of the specified financing case that are available to you: the files you provided yourself, plus the signed contract and the signed handover confirmation. Customer-provided documents, Miete24-internal documents and superseded versions are omitted, so every returned downloadUrl is guaranteed to work.

Parameters

Path and query parameters for GET /api/financing-cases/{financingCaseId}/documents
Name In Type Required Description
financingCaseId path string yes FinancingDocument identifier
page query integer no The collection page number

Code samples

curl -X GET 'https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/documents' \
  -H 'X-Api-Key: YOUR_API_KEY'

Responses

Responses for GET /api/financing-cases/{financingCaseId}/documents
Status Description Schema
200 FinancingDocument collection array<FinancingDocument.FinancingDocumentResponse-financing_document.read>
403 Forbidden —

POST/api/financing-cases/{financingCaseId}/documents

Upload a document to a financing case

Uploads a file (PDF, PNG, JPG, max 10MB) to the specified financing case. Requires category. When answering a proof of a frame contract call-off, the optional fields invoiceNumber and invoiceDate (invoice proof) or handoverDate (delivery proof) carry its values; invalid values are refused with 422, for any other request they are ignored.

Parameters

Path and query parameters for POST /api/financing-cases/{financingCaseId}/documents
Name In Type Required Description
financingCaseId path string yes FinancingDocument identifier

Request body

Request body properties for POST /api/financing-cases/{financingCaseId}/documents
Name Type Required Description
file string yes The file to upload (PDF, PNG, JPG, max 10MB)
category string yes Document category (required). Must be a document-type RequestItemCategory; information, fill-and-return, system-generated and Miete24-internal categories are rejected with 400. handover_confirmation is signed by the customer via DocuSign and is only accepted on a simulated sandbox case, as the answer to its own request (requestedDocumentId).
requestedDocumentId integer no Optional: ID of the requested document to fulfill. Cannot be combined with requestedFillAndReturnId.
requestedFillAndReturnId integer no Optional: ID of the requested fill-and-return to fulfill. Cannot be combined with requestedDocumentId.
description string no Optional description of the document
invoiceNumber string no Optional: invoice number, when answering the invoice proof of a frame contract call-off. Ignored for any other request.
invoiceDate string no Optional: invoice date (YYYY-MM-DD, not in the future), when answering the invoice proof of a frame contract call-off. Ignored for any other request.
handoverDate string no Optional: handover date (YYYY-MM-DD, not in the future), when answering the delivery proof of a frame contract call-off. Ignored for any other request.

Code samples

curl -X POST 'https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/documents' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -F 'file=@document.pdf' \
  -F 'category=annual_financial_statement' \
  -F 'requestedDocumentId=34' \
  -F 'description=Jahresabschluss 2024'

Return a filled-in template (requestedFillAndReturnId)

curl -X POST 'https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/documents' \
  -H 'X-Api-Key: YOUR_API_KEY' \
  -F 'file=@document.pdf' \
  -F 'category=self_disclosure' \
  -F 'requestedFillAndReturnId=21'

Responses

Responses for POST /api/financing-cases/{financingCaseId}/documents
Status Description Schema
201 FinancingDocument resource created FinancingDocument.FinancingDocumentResponse-financing_document.read
400 Invalid input —
403 Forbidden —
422 Unprocessable entity —