---
title: "Calculate loan offers."
method: POST
path: "/Leads/{leadId}/calculateoffers"
tags: ["Offers and Signing"]
---

# Calculate loan offers.

`POST /Leads/{leadId}/calculateoffers`

## Request

- Base URL: `https://partners.staging-youlendapi.com/onboarding`
- URL: `https://partners.staging-youlendapi.com/onboarding/Leads/{leadId}/calculateoffers`
- 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

## Request body

- CalculateOffersModel: Model containing amount to calculate offers.
  - `amount` integer: Gets or sets the Amount.

## Response `200`

OK

- FlexOffersModel: Model containing details about calculated offers.
  - `leadId` string, uuid: Gets or sets LeadId.
  - `providedOffers` FlexLoanOfferDetails[], nullable: Gets or sets the list of provided offers.
    - `offerId` string, uuid
    - `youWillGet` number, double
    - `youWillRepay` number, double
    - `sweep` number, double
    - `daysUntilRepayment` integer
    - `currencyISOCode` string, nullable
    - `repaymentMethod` string, nullable
    - `repaymentFrequency` string, nullable
    - `expectedRepayment` number, double
  - `errorMessage` string, nullable: Gets or sets the error message.

## 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)
