---
updatedAt: 2026-08-27T13:52:09.000Z
agentTools:
  projectIndex: https://docs.youlend.com/llms.txt
---

# Submit JSON bank statements.

> 📘 Good to know
>
> Bank statements can also be submitted as a file [Submit bankstatements](https://docs.youlend.com/reference/post_leads-leadid-documents-bankstatements)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Onboarding",
    "description": "Through this API you can can initiate the process of onboarding a borrower with YouLend",
    "contact": {
      "name": "Mark Ufland",
      "email": "mark.ufland@youlend.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://partners.staging-youlendapi.com/onboarding"
    }
  ],
  "paths": {
    "/Leads/{leadId}/bankstatements": {
      "post": {
        "tags": [
          "Create an Application"
        ],
        "summary": "Submit JSON bank statements.",
        "parameters": [
          {
            "name": "leadId",
            "in": "path",
            "description": "The lead id .",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The bank statements model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BankStatementModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BankStatementModel": {
        "required": [
          "currency",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets the Account Name."
          },
          "currency": {
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets the Currency."
          },
          "accountNo": {
            "type": "string",
            "description": "Gets or sets the Account Number. Required if Iban is null.",
            "nullable": true
          },
          "sortCode": {
            "type": "string",
            "description": "Gets or sets the Sort Code. Required if Iban is null.",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "description": "Gets or sets the Iban. Required if Account Number is null.",
            "nullable": true
          },
          "bic": {
            "type": "string",
            "description": "Gets or sets the Swift Code. Required if Account Number is null.",
            "nullable": true
          },
          "institutionName": {
            "maxLength": 255,
            "type": "string",
            "description": "Gets or sets the Institution Name.",
            "nullable": true
          },
          "startingBalance": {
            "type": "number",
            "description": "Gets or sets the Starting Balance.",
            "format": "double",
            "nullable": true
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionModel"
            },
            "description": "Gets or sets the list of Transactions.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Model containing Bank Statement."
      },
      "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": {}
      },
      "TransactionModel": {
        "required": [
          "date",
          "description"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "Gets or sets the Date.",
            "format": "date-time"
          },
          "description": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string",
            "description": "Gets or sets the Description."
          },
          "credit": {
            "type": "number",
            "description": "Gets or sets the Credit. Required if Debit is null.",
            "format": "double",
            "nullable": true
          },
          "debit": {
            "type": "number",
            "description": "Gets or sets the Debit. Required if Credit is null.",
            "format": "double",
            "nullable": true
          },
          "balance": {
            "type": "number",
            "description": "Gets or sets the Balance.",
            "format": "double",
            "nullable": true
          },
          "plaidCategoryId": {
            "type": "string",
            "description": "Gets or sets the Plaid Category Id.",
            "nullable": true
          },
          "plaidCategory": {
            "type": "string",
            "description": "Gets or sets the Plaid Category.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Model containing a Bank Statement Transaction."
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://youlend-stag.eu.auth0.com/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "tags": [
    {
      "name": "Create an Application"
    }
  ]
}
```