---
title: "Get document for the given order"
method: GET
path: "/mortgages/orders/{orderId}/document"
tags: ["Mortgage Order"]
---

# Get document for the given order

`GET /mortgages/orders/{orderId}/document`

Get document for given order, this can be used by TPP to display offer content.

## Path parameters

- `orderId` string, uuid, required — Uuid v4 of the order defined by FI.

## Query parameters

- `language` 'de' | 'fr' | 'it' | 'en', required

## Headers

- `X-CorAPI-Client-ID` string, required
- `X-Correlation-ID` string, required
- `User-Agent` string, required

## Response `200`

OK.

- object
  - `document` Document — Document containing information for given document type for given order.
    - `name` string, required — Name of the document.
    - `content` string — base64 Encoded Content.
    - `contentType` string — Content type.
    - `createDate` string, date — Date format.
    - `modifyDate` string, date — Date format.
    - `parentId` string, uuid — Id for parent object of given document.

## Other responses

- `400` — Bad Request - The server cannot or will not process the request due to something that is perceived to be a client error as malformed request syntax.
- `401` — Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
- `403` — Forbidden - The server understood the request but refuses to authorize it.
- `404` — Not Found - The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
- `405` — Method Not Allowed - The method received in the request-line is known by the origin server but not supported by the target resource.
- `500` — Internal Server Error - The server encountered an unexpected condition that prevented it from fulfilling the request.
- `501` — Not Implemented - The server does not support the functionality required to fulfill the request.
- `503` — Service Unavailable - The server is currently unable to handle the request due to a temporary overload or scheduled maintenance.

---

[API](https://skmtc.net/swissfintechinnovations/apis/common-mortgage-api-public-2.md) · [All operations](https://skmtc.net/swissfintechinnovations/apis/common-mortgage-api-public-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swissfintechinnovations/common-mortgage-api-public-2/versions/32dae0ff8520/schema)
