---
title: "List settlement details with an account opening letter."
method: GET
path: "/Leads/{leadId}/documents/accountopeningletter"
tags: ["GET Details"]
---

# List settlement details with an account opening letter.

`GET /Leads/{leadId}/documents/accountopeningletter`

## Request

- Base URL: `https://partners.staging-youlendapi.com/onboarding`
- URL: `https://partners.staging-youlendapi.com/onboarding/Leads/{leadId}/documents/accountopeningletter`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://youlend-stag.eu.auth0.com/oauth/token`

## Path parameters

- `leadId` string, uuid, required

## Query parameters

- `filterByThirdPartyCustomerId` boolean

## Headers

- `api-version` string

## Response `200`

OK

- SettlementAccountDetails[]
  - `iban` string, nullable: Gets or sets the account iban.
  - `virtualIban` string, nullable: Gets or sets the account virtual iban.
  - `secondaryVirtualIban` string, nullable: Gets or sets the account secondary virtual iban.
  - `accountName` string, nullable: Gets or sets the name of the account.
  - `currencyISOCode` string, nullable: Gets or sets the currency of the account.
  - `accountOpeningLetter` DocumentModel: Model containing the metadata and byte array for a document.
    - `documentId` string, uuid: Gets or sets the document id, a GUID.
    - `document` string, byte, nullable: Gets or sets the docment content (a byte[]).
    - `documentName` string, nullable: Gets or sets the document name.
    - `documentType` string, nullable: Gets or sets the document type.
  - `domesticAccountNumber` string, nullable: Gets or sets the account number. In the case of US accounts, this holds the bank account number.
  - `domesticSortCode` string, nullable: Gets or sets the sort code. In the case of US accounts, this holds the routing number.
  - `partner` string, nullable: Gets or sets the partner name.
  - `swift` string, nullable: Gets or sets the swift code.
  - `thirdPartyCustomerId` string, nullable: Gets or sets the third party customer id.
  - `thirdPartyCustomerIdOnAccount` string, nullable: Gets or sets the third party customer id on the account.
  - `secondarySwiftCode` string, nullable: Gets or sets the secondary swift code.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/youlend/apis/onboarding.md) - [All operations](https://skmtc.dev/youlend/apis/onboarding/llms.txt) - [OpenAPI document](https://skmtc.dev/youlend/apis/onboarding/revisions/32aa9c8d752a?raw)
