---
updatedAt: 2025-05-15T21:03:25.000Z
agentTools:
  projectIndex: https://docs.youlend.com/llms.txt
---

# Create a lead

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "YouLend Third Party Onboarding FastTrack API",
    "description": "Through this API you can create new onboarding FastTrack leads.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partners.staging-youlendapi.com/onboarding/fasttrack"
    }
  ],
  "paths": {
    "/leads": {
      "post": {
        "tags": [
          "FastTrackLeads"
        ],
        "summary": "Create a lead",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "A YL.Web.Api.ThirdParty.Onboarding.FastTrack.Models.InputModels.FastTrackModel containing the data required to create a FastTrack request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FastTrackModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns a FastTrackResultModel, alongside a Id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FastTrackResultModel"
                }
              }
            }
          },
          "400": {
            "description": "Something else went wrong."
          },
          "401": {
            "description": "Unauthorized request."
          },
          "422": {
            "description": "The model provided has invalid data."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountDetailModel": {
        "type": "object",
        "properties": {
          "merchantIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "merchantAccountDetails": {
            "$ref": "#/components/schemas/BankDetailModel"
          },
          "settlementAccountDetails": {
            "$ref": "#/components/schemas/BankDetailModel"
          }
        },
        "additionalProperties": false
      },
      "Address": {
        "required": [
          "areaCode",
          "city",
          "country",
          "line1"
        ],
        "type": "object",
        "properties": {
          "line1": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "line2": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "line3": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "city": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "region": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "areaCode": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "country": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "BankDetailModel": {
        "type": "object",
        "properties": {
          "accountNumber": {
            "type": "string",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "nullable": true
          },
          "swift": {
            "type": "string",
            "nullable": true
          },
          "accountCountry": {
            "type": "string",
            "nullable": true
          },
          "accountCurrency": {
            "type": "string",
            "nullable": true
          },
          "masterAccountIban": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompanyDetailModel": {
        "required": [
          "address",
          "companyName",
          "companyType",
          "formationDate",
          "thirdPartyCustomerId"
        ],
        "type": "object",
        "properties": {
          "thirdPartyCustomerId": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "companyType": {
            "minLength": 1,
            "type": "string"
          },
          "companyName": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "companyNumber": {
            "type": "string",
            "nullable": true
          },
          "storeName": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "websiteURL": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "formationDate": {
            "minLength": 1,
            "type": "string",
            "format": "date-time"
          },
          "merchantIds": {
            "type": "array",
            "items": {
              "maxLength": 255,
              "type": "string"
            },
            "nullable": true
          },
          "countryIsoCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FastTrackModel": {
        "required": [
          "accountDetails",
          "bankDetail",
          "companyDetail",
          "financingDetail",
          "personalDetail",
          "significantPeople"
        ],
        "type": "object",
        "properties": {
          "productType": {
            "type": "string",
            "nullable": true
          },
          "furtherApprovalsNeeded": {
            "type": "boolean"
          },
          "companyDetail": {
            "$ref": "#/components/schemas/CompanyDetailModel"
          },
          "personalDetail": {
            "$ref": "#/components/schemas/PersonDetailModel"
          },
          "significantPeople": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PersonDetailModel"
            }
          },
          "bankDetail": {
            "$ref": "#/components/schemas/BankDetailModel"
          },
          "financingDetail": {
            "$ref": "#/components/schemas/FinancingDetailModel"
          },
          "accountDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountDetailModel"
            },
            "nullable": true
          },
          "instantSettlementDetail": {
            "$ref": "#/components/schemas/InstantSettlementDetailModel"
          }
        },
        "additionalProperties": false,
        "description": "A model representing a fast track request and its child models."
      },
      "FastTrackResultModel": {
        "type": "object",
        "properties": {
          "fastTrackLeadId": {
            "type": "string",
            "format": "uuid"
          },
          "productType": {
            "type": "string",
            "nullable": true
          },
          "furtherApprovalsNeeded": {
            "type": "boolean"
          },
          "companyDetail": {
            "$ref": "#/components/schemas/CompanyDetailModel"
          },
          "personalDetail": {
            "$ref": "#/components/schemas/PersonDetailModel"
          },
          "significantPeople": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PersonDetailModel"
            },
            "nullable": true
          },
          "bankDetail": {
            "$ref": "#/components/schemas/BankDetailModel"
          },
          "financingDetail": {
            "$ref": "#/components/schemas/FinancingDetailModel"
          },
          "accountDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountDetailModel"
            },
            "nullable": true
          },
          "instantSettlementDetail": {
            "$ref": "#/components/schemas/InstantSettlementDetailModel"
          }
        },
        "additionalProperties": false,
        "description": "The result of creating a fast track request model."
      },
      "FinancingDetailModel": {
        "type": "object",
        "properties": {
          "fundingAmount": {
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "factorRate": {
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "partnerSweepPercentage": {
            "type": "number",
            "format": "double"
          },
          "youLendSweepPercentage": {
            "type": "number",
            "format": "double"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expectedRepaymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InstantSettlementDetailModel": {
        "required": [
          "currencyISOCode",
          "percentageToInstantSettle",
          "settlementCycleLengthDays"
        ],
        "type": "object",
        "properties": {
          "settlementCycleLengthDays": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "number",
            "format": "double"
          },
          "currencyISOCode": {
            "minLength": 1,
            "type": "string"
          },
          "percentageToInstantSettle": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "number",
            "format": "double"
          },
          "percentageFee": {
            "type": "number",
            "format": "double"
          },
          "feeAccountIban": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          },
          "acquirer": {
            "maxLength": 255,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PersonDetailModel": {
        "required": [
          "address",
          "dateOfBirth",
          "firstName",
          "surname",
          "thirdPartyPersonId"
        ],
        "type": "object",
        "properties": {
          "thirdPartyPersonId": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "firstName": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "surname": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "dateOfBirth": {
            "minLength": 1,
            "type": "string",
            "format": "date-time"
          },
          "placeOfBirth": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "mobilePhoneNumber": {
            "type": "string",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://youlend-stag.eu.auth0.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ]
}
```