---
updatedAt: 2026-09-03T16:30:22.000Z
agentTools:
  projectIndex: https://docs.youlend.com/llms.txt
---

# Create fixed offers

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "TestSupport",
    "description": "Through this API you can can initiate the process of testsupport a borrower with YouLend",
    "contact": {
      "name": "Mark Ufland",
      "email": "mark.ufland@youlend.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partners.staging-youlendapi.com/testsupport"
    }
  ],
  "paths": {
    "/leads/{leadId}/offers/fixed": {
      "post": {
        "tags": [
          "Onboarding - Leads"
        ],
        "parameters": [
          {
            "name": "leadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FixedOfferRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FixedOfferRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FixedOfferRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FixedOfferResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FixedOfferResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          }
        },
        "summary": "Create fixed offers"
      }
    }
  },
  "components": {
    "schemas": {
      "FixedOfferItemResponse": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "format": "uuid"
          },
          "youWillGet": {
            "type": "number",
            "format": "double"
          },
          "youWillRepay": {
            "type": "number",
            "format": "double"
          },
          "currencyISOCode": {
            "type": "string",
            "nullable": true
          },
          "sweep": {
            "type": "number",
            "format": "double"
          },
          "daysUntilRepayment": {
            "type": "integer",
            "format": "int32"
          },
          "minimumWeeklyRepayment": {
            "type": "number",
            "format": "double"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "FixedOfferRequest": {
        "required": [
          "offers"
        ],
        "type": "object",
        "properties": {
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FixedOfferRequestItem"
            }
          }
        },
        "additionalProperties": false
      },
      "FixedOfferRequestItem": {
        "type": "object",
        "properties": {
          "youWillGet": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "number",
            "format": "double"
          },
          "youWillRepay": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "number",
            "format": "double"
          },
          "currencyISOCode": {
            "type": "string",
            "nullable": true
          },
          "sweep": {
            "maximum": 100,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "daysUntilRepayment": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "integer",
            "format": "int32"
          },
          "minimumWeeklyRepayment": {
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "maturityDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "FixedOfferResponse": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string",
            "format": "uuid"
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FixedOfferItemResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ValidationProblemDetails": {
        "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
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": {}
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://youlend-stag.eu.auth0.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "tags": [
    {
      "name": "Onboarding - Leads"
    }
  ]
}
```