---
title: "Create loan"
method: POST
path: "/leads/{leadId}/loan/create"
tags: ["Onboarding - Leads"]
---

# Create loan

`POST /leads/{leadId}/loan/create`

## Request

- Base URL: `https://partners.staging-youlendapi.com/testsupport`
- URL: `https://partners.staging-youlendapi.com/testsupport/leads/{leadId}/loan/create`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://youlend-stag.eu.auth0.com/oauth/token`

## Path parameters

- `leadId` string, uuid, required

## Headers

- `api-version` string

## Response `201`

Created

- CreateTestLoanResponse
  - `loanId` string, uuid
  - `loanNumber` integer
  - `status` string, nullable
  - `leadId` string, uuid
  - `sourceOfferId` string, uuid

## Other responses

- `400`: Bad Request

---

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