---
title: "Retrieve a document for a loan"
method: GET
path: "/Loans/{loanId}/document/{documentId}"
tags: ["Loans"]
---

# Retrieve a document for a loan

`GET /Loans/{loanId}/document/{documentId}`

## Request

- Base URL: `https://partners.staging-youlendapi.com/loan`
- URL: `https://partners.staging-youlendapi.com/loan/Loans/{loanId}/document/{documentId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://youlend-stag.eu.auth0.com/oauth/token`

## Path parameters

- `loanId` string, uuid, required: Loan ID (a GUID)
- `documentId` string, uuid, required: Document ID of Loan (a GUID)

## Headers

- `api-version` string

## Response `200`

Document successfully retrieved

- DocumentModel
  - `document` string, byte, nullable: Gets or sets the document byte array
  - `documentId` string, uuid: Gets or sets the document's unique identifier
  - `documentType` string, nullable: Gets or sets the document's type
  - `contractType` string, nullable: Gets or sets the agreement contract type for the loan (e.g. "RPA" or "LA").

## Other responses

- `400`: No such document was found for this loan... please check your Loan or Document ID
- `401`: Unauthorized request! Please check your bearer token

---

[API](https://skmtc.dev/youlend/apis/third-party-loan-api.md) - [All operations](https://skmtc.dev/youlend/apis/third-party-loan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/youlend/apis/third-party-loan-api/revisions/2336031a2fcf?raw)
