---
updatedAt: 2026-08-26T08:48:54.000Z
agentTools:
  projectIndex: https://docs.youlend.com/llms.txt
---

# Generate a prequalified offer for an existing customer (renewal)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Prequalification",
    "description": "Through this API you can can check if a merchant pre qualifies for a Youlend loan",
    "contact": {
      "name": "Mark Ufland",
      "email": "mark.ufland@youlend.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partners.staging-youlendapi.com/prequalification"
    }
  ],
  "paths": {
    "/Requests/renewal": {
      "post": {
        "tags": [
          "Requests"
        ],
        "summary": "Generate a prequalified offer for an existing customer (renewal)",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "A YL.Web.Api.ThirdParty.PreQualification.Models.RenewalPreQualificationModel",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenewalPreQualificationModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns RenewalPreQualificationResultDocument.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenewalPreQualificationResultDocument"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/RenewalPreQualificationResultDocument"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Countries": {
        "enum": [
          "GBR",
          "IRE",
          "NLD",
          "POL",
          "BEL",
          "ESP",
          "DEU",
          "FRA",
          "DNK",
          "USA"
        ],
        "type": "string"
      },
      "Currencies": {
        "enum": [
          "GBP",
          "EUR",
          "PLN",
          "USD"
        ],
        "type": "string"
      },
      "LoanOptionDocument": {
        "type": "object",
        "properties": {
          "currencyISOCode": {
            "type": "string",
            "nullable": true
          },
          "fee": {
            "type": "number",
            "format": "double"
          },
          "fundedAmount": {
            "type": "number",
            "format": "double"
          },
          "loanAmount": {
            "type": "number",
            "format": "double"
          },
          "sweep": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "PaymentDataRowModel": {
        "required": [
          "currencyISOCode",
          "paymentDate"
        ],
        "type": "object",
        "properties": {
          "paymentDate": {
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets the date the payment occurred",
            "format": "date-time"
          },
          "amount": {
            "minimum": 0,
            "type": "number",
            "description": "Gets or sets the payment amount",
            "format": "double"
          },
          "currencyISOCode": {
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets the currency of the payment"
          }
        },
        "additionalProperties": false,
        "description": "Payment Data model for the company"
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "RenewalPreQualificationModel": {
        "required": [
          "countryISOCode",
          "leadId",
          "loanCurrencyISOCode",
          "paymentData"
        ],
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string",
            "description": "Gets or sets the leadId for the customer's most recent previous funding",
            "format": "uuid"
          },
          "countryISOCode": {
            "$ref": "#/components/schemas/Countries"
          },
          "loanCurrencyISOCode": {
            "$ref": "#/components/schemas/Currencies"
          },
          "paymentData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentDataRowModel"
            }
          }
        },
        "additionalProperties": false
      },
      "RenewalPreQualificationResultDocument": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string",
            "format": "uuid"
          },
          "loanOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoanOptionDocument"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://youlend-stag.eu.auth0.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ]
}
```