{"info":{"_postman_id":"36349a88-f809-483d-b7e3-f9acb736c135","name":"Lendzi API v2.0","description":"<html><head></head><body><h2 id=\"welcome-to-lendzis-api-\">Welcome to Lendzi's API .</h2>\n<p>Version 2.0</p>\n<p><strong>End Points:</strong></p>\n<ul>\n<li><p><strong>Production</strong> : <a href=\"https://apiv2.lendzi.com/api/\">https://apiv2.lendzi.com/api/</a></p>\n</li>\n<li><p><strong>Staging</strong> : <a href=\"https://stage-apiv2.lendzi.com/api/\">https://stage-apiv2.lendzi.com/api/</a></p>\n</li>\n</ul>\n<p><em>For support and inquiry, send an email to</em> <a href=\"https://mailto:service@lendzi.com\">service@lendzi.com</a> <em>.</em></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"46852034","collectionId":"36349a88-f809-483d-b7e3-f9acb736c135","publishedId":"2sB34imL8f","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-07-23T14:35:10.000Z"},"item":[{"name":"POST Lead","event":[{"listen":"test","script":{"id":"84e9ac32-6c85-450c-bc58-0a03b2eacc3c","exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Title</th>","        <th>Description</th>","    </tr>","    ","    <tr>","        <td>Documentation</td>","        <td>Laravel has wonderful documentation covering every aspect of the framework. Whether you are a newcomer or have prior experience with Laravel, we recommend reading our documentation from beginning to end.</td>","    </tr>","    ","    <tr>","        <td>Laracasts</td>","        <td>Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process.</td>","    </tr>","    ","    <tr>","        <td>Laravel News</td>","        <td>Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials.</td>","    </tr>","    ","    <tr>","        <td>Vibrant Ecosystem</td>","        <td>Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more.</td>","    </tr>","</table>","`;","","function constructVisualizerPayload() {","    // No need to modify the response as it is an HTML structure","    return { response: pm.response.text() }","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","packages":{}}}],"id":"8d94faa5-e6b0-455c-b47b-45aca7cb2544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer <Request from Lendzi Team>","type":"text"}],"body":{"mode":"raw","raw":"        {  \n        \"partner_id\":\"Lendzi\",\n        \"first_name\":\"Jay-test\",\n        \"last_name\":\"Omayan-test\",\n        \"date_of_birth\":\"1974-05-25\",\n        \"business_street\":\"1420 S Fig St\",\n        \"business_street2\":\"N/A\",\n        \"business_city\":\"Los Angeles\",\n        \"business_state\":\"CA\",\n        \"business_zip\":\"90015\",\n        \"owner_street\":\"1420 S F\",\n        \"owner_street2\":\"N/A\",\n        \"owner_city\":\"Los Angeles\",\n        \"owner_state\":\"CA\",\n        \"owner_zip\":\"90015\",\n        \"email\":\"jomayan@gmail.com\",\n        \"phone\":\"8183886513\",\n        \"mobile_phone\":\"8183886513\",\n        \"personal_credit_score\":\"720\",\n        \"annual_personal_income\": 120000,\n        \"business_name\":\"Jay's Bakery\",\n        \"annual_revenue\": 320000,\n        \"business_entity_type\":\"LLC\",\n        \"business_start_date\":\"1980-01-15\",\n        \"time_in_business\":\"1-2 Years\",\n        \"industry_code\":\"31212\",\n        \"industry_type\":\"Restaurant\",\n        \"number_of_employees\":11,\n        \"purpose_of_funds\":\"Expansion\",\n        \"requested_funding_amount\": 35000,\n        \"lender_name\":\"Bitty\",\n        \"factor_rate\" : \"1.48\",\n        \"term\" : \"120 Days\",\n        \"offer_amount\" : 25000,\n        \"decline_reason\":\"NA\",\n        \"partner_lead_id\":\"12345LeadID\",\n        \"partner_campaign_id\":\"12345CampaignID\",\n        \"click_id\":\"12345ClickID\",\n        \"tracking_id\":\"12345TrackingID\",\n        \"universal_lead_id\":\"JornayaID\"\n        }","options":{"raw":{"language":"json"}}},"url":"{{Host}}/lead","description":"<p>This API endpoint allows you to submit a new lead by sending an HTTP POST request to the specified URL. The request should include a payload in the raw request body type with various parameters such as partner details, contact information, financial details, and purpose of funds. Upon successful execution, the API will return a status code of 200 along with a JSON response containing a success indicator, user ID, lead ID, and a message.</p>\n<p>The last call to this endpoint used a payload with multiple parameters, and the response indicated a successful operation with a message and relevant IDs.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th><strong>Sample Value</strong></th>\n<th><strong>Notes</strong></th>\n<th><strong>Mandatory</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>partner_id</td>\n<td>string</td>\n<td>Lendzi</td>\n<td></td>\n<td>x</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>Jay-test</td>\n<td>for testing in stage, please add the word \"test\"</td>\n<td>x</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>Omayan-test</td>\n<td>for testing in stage, please add the word \"test\"</td>\n<td>x</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>date</td>\n<td>1974-05-25</td>\n<td>Format YYYY-MM-DD</td>\n<td></td>\n</tr>\n<tr>\n<td>business_street</td>\n<td>string</td>\n<td>1420 S Fig St</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>business_street2</td>\n<td>string</td>\n<td>Suite 451</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>business_city</td>\n<td>string</td>\n<td>Los Angeles</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>business_state</td>\n<td>string</td>\n<td>CA</td>\n<td>Two letter State Abbreviation</td>\n<td></td>\n</tr>\n<tr>\n<td>business_zip</td>\n<td>string</td>\n<td>90065</td>\n<td>string in numeric format</td>\n<td></td>\n</tr>\n<tr>\n<td>owner_street</td>\n<td>string</td>\n<td>1420 S Fig St</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>owner_street2</td>\n<td>string</td>\n<td>N/A</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>owner_city</td>\n<td>string</td>\n<td>Los Angeles</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>owner_state</td>\n<td>string</td>\n<td>CA</td>\n<td>Two letter State Abbreviation</td>\n<td></td>\n</tr>\n<tr>\n<td>owner_zip</td>\n<td>string</td>\n<td>90087</td>\n<td>string in numeric format</td>\n<td></td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td><a href=\"https://mailto:jomayan@gmail.com\">jomayan@gmail.com</a></td>\n<td>must be valid email</td>\n<td>x</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>string</td>\n<td>8183886513</td>\n<td>string in numeric format</td>\n<td>x</td>\n</tr>\n<tr>\n<td>mobile_phone</td>\n<td>string</td>\n<td>8183886512</td>\n<td>string in numeric format</td>\n<td></td>\n</tr>\n<tr>\n<td>personal_credit_score</td>\n<td>string</td>\n<td>678</td>\n<td>string in numeric format</td>\n<td></td>\n</tr>\n<tr>\n<td>annual_personal_income</td>\n<td>numeric</td>\n<td>120000</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>business_name</td>\n<td>string</td>\n<td>Jay's Bakery</td>\n<td></td>\n<td>x</td>\n</tr>\n<tr>\n<td>annual_revenue</td>\n<td>numeric</td>\n<td>320000</td>\n<td></td>\n<td>x</td>\n</tr>\n<tr>\n<td>business_entity_type</td>\n<td>string</td>\n<td>LLC</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>business_start_date</td>\n<td>date</td>\n<td>1980-01-15</td>\n<td>Format YYYY-MM-DD</td>\n<td></td>\n</tr>\n<tr>\n<td>time_in_business</td>\n<td>string</td>\n<td>1-2 years</td>\n<td>Must be one of these values:  <br />\"Not yet started\", \"1-6 months\", \"6-12 months\", \"1-2 years\", \"2-5 years\", \"5+ years\"</td>\n<td></td>\n</tr>\n<tr>\n<td>industry_code</td>\n<td>string</td>\n<td>311811</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>industry_type</td>\n<td>string</td>\n<td>Retail Bakeries</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>number_of_employees</td>\n<td>numeric</td>\n<td>11</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>purpose_of_funds</td>\n<td>string</td>\n<td>Inventory</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>requested_funding_amount</td>\n<td>numeric</td>\n<td>35000</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>partner_lead_id</td>\n<td>string</td>\n<td>12345LeadID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>lender_name</td>\n<td>stroing</td>\n<td>Bitty</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>factor_rate</td>\n<td>numeric</td>\n<td>1.48</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>term</td>\n<td>string</td>\n<td>250 Days</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>offer_amount</td>\n<td>numberic</td>\n<td>25000</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>decline_reason</td>\n<td>string</td>\n<td>n/a</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>partner_campaign_id</td>\n<td>string</td>\n<td>12345CampaignID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>click_id</td>\n<td>string</td>\n<td>12345ClickID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>tracking_id</td>\n<td>string</td>\n<td>12345TrackingID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>universal_lead_id</td>\n<td>string</td>\n<td>JornayaID</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>tax_id</td>\n<td>string</td>\n<td>123456789</td>\n<td>Tax ID/EIN number</td>\n<td></td>\n</tr>\n<tr>\n<td>ownership_percentage</td>\n<td>decimal</td>\n<td>75.50</td>\n<td>Percentage of business ownership (0-100)</td>\n<td></td>\n</tr>\n<tr>\n<td>owner_ssn</td>\n<td>string</td>\n<td>123-45-6789</td>\n<td>Social Security Number</td>\n<td></td>\n</tr>\n<tr>\n<td>avg_daily_bank_balance</td>\n<td>decimal</td>\n<td>15000.00</td>\n<td>Average daily bank balance</td>\n<td></td>\n</tr>\n<tr>\n<td>is_us_citizen</td>\n<td>boolean</td>\n<td>true</td>\n<td>US Citizenship status (true/false)</td>\n<td></td>\n</tr>\n<tr>\n<td>tenant_name</td>\n<td>string</td>\n<td>Lendzi</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["lead"],"host":["{{Host}}"],"query":[],"variable":[]}},"response":[{"id":"bb009a06-5535-409c-bd88-74c785f83d32","name":"POST Lead with success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"        {  \n        \"partner_id\":\"Lendzi\",\n        \"first_name\":\"Jay\",\n        \"last_name\":\"Omayan\",\n        \"date_of_birth\":\"1974-05-15\",\n        \"business_street\":\"1420 S Fig St\",\n        \"business_street2\":\"N/A\",\n        \"business_city\":\"Los Angeles\",\n        \"business_state\":\"CA\",\n        \"business_zip\":\"90015\",\n        \"owner_street\":\"1420 S F\",\n        \"owner_street2\":\"N/A\",\n        \"owner_city\":\"Los Angeles\",\n        \"owner_state\":\"CA\",\n        \"owner_zip\":\"90015\",\n        \"email\":\"jomayan@gmail.com\",\n        \"phone\":\"8183886513\",\n        \"mobile_phone\":\"8183886513\",\n        \"personal_credit_score\":\"720\",\n        \"annual_personal_income\": 120000,\n        \"business_name\":\"Jay's Bakery\",\n        \"annual_revenue\": 320000,\n        \"business_entity_type\":\"LLC\",\n        \"business_start_date\":\"1980-01-15\",\n        \"industry_code\":\"31212\",\n        \"industry_type\":\"Restaurant\",\n        \"number_of_employees\":11,\n        \"purpose_of_funds\":\"Expansion\",\n        \"requested_funding_amount\": 35000,\n        \"partner_lead_id\":\"12345LeadID\",\n        \"partner_campaign_id\":\"12345CampaignID\",\n        \"click_id\":\"12345ClickID\",\n        \"tracking_id\":\"12345TrackingID\",\n        \"universal_lead_id\":\"JornayaID\"\n        }","options":{"raw":{"language":"json"}}},"url":"{{Host}}/lead"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 08 Dec 2023 17:34:35 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"user_id\": 1,\n    \"lead_id\": \"-4470003000734474810\",\n    \"message\": \"Lead successfully created!\"\n}"},{"id":"9e7b1b84-fffe-460f-b56a-d3e446dc1b3f","name":"POST Lead with error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"        {  \n        \"partner_id\":\"Lendzi\",\n        \"first_name\":\"Jay\",\n        \"last_name\":\"Omayan\",\n        \"date_of_birth\":\"05-15-1974\",\n        \"business_street\":\"1420 S Fig St\",\n        \"business_street2\":\"N/A\",\n        \"business_city\":\"Los Angeles\",\n        \"business_state\":\"CA\",\n        \"business_zip\":\"90015\",\n        \"owner_street\":\"1420 S F\",\n        \"owner_street2\":\"N/A\",\n        \"owner_city\":\"Los Angeles\",\n        \"owner_state\":\"CA\",\n        \"owner_zip\":\"90015\",\n        \"email\":\"jomayan@gmail.com\",\n        \"phone\":\"8183886513\",\n        \"mobile_phone\":\"8183886513\",\n        \"personal_credit_score\":\"720\",\n        \"annual_personal_income\": 120000,\n        \"business_name\":\"Jay's Bakery\",\n        \"annual_revenue\": 320000,\n        \"business_entity_type\":\"LLC\",\n        \"business_start_date\":\"1980-01-15\",\n        \"industry_code\":\"31212\",\n        \"industry_type\":\"Restaurant\",\n        \"number_of_employees\":11,\n        \"purpose_of_funds\":\"Expansion\",\n        \"requested_funding_amount\": 35000,\n        \"partner_lead_id\":\"12345LeadID\",\n        \"partner_campaign_id\":\"12345CampaignID\",\n        \"click_id\":\"12345ClickID\",\n        \"tracking_id\":\"12345TrackingID\",\n        \"universal_lead_id\":\"JornayaID\"\n        }","options":{"raw":{"language":"json"}}},"url":"{{Host}}/lead"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 08 Dec 2023 17:35:10 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"errors\": [\n        \"The date of birth field must be a valid date.\"\n    ]\n}"}],"_postman_id":"8d94faa5-e6b0-455c-b47b-45aca7cb2544"},{"name":"POST Doc","event":[{"listen":"test","script":{"exec":["var template = `","<style type=\"text/css\">","    .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}","    .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;}","    .tftable tr {background-color:#ffffff;}","    .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}","    .tftable tr:hover {background-color:#e0ffff;}","</style>","","<table class=\"tftable\" border=\"1\">","    <tr>","        <th>Title</th>","        <th>Description</th>","    </tr>","    ","    <tr>","        <td>Documentation</td>","        <td>Laravel has wonderful documentation covering every aspect of the framework. Whether you are a newcomer or have prior experience with Laravel, we recommend reading our documentation from beginning to end.</td>","    </tr>","    ","    <tr>","        <td>Laracasts</td>","        <td>Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process.</td>","    </tr>","    ","    <tr>","        <td>Laravel News</td>","        <td>Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials.</td>","    </tr>","    ","    <tr>","        <td>Vibrant Ecosystem</td>","        <td>Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more.</td>","    </tr>","</table>","`;","","function constructVisualizerPayload() {","    // No need to modify the response as it is an HTML structure","    return { response: pm.response.text() }","}","","pm.visualizer.set(template, constructVisualizerPayload());"],"type":"text/javascript","id":"7709ee3c-8005-47a1-9370-87ac65ea2e0e"}}],"id":"6ce0f11d-4339-4c72-8ecb-d884d2bafa8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer <Please Request for Token from Lendzi>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"lead_id","value":"4470003000734474810","type":"text"},{"key":"document_type","value":"Bank Statement","type":"text"},{"key":"file","type":"file","src":"/Users/jayomayan/Downloads/screencapture-mail-google-mail-u-0-d-AEoRXRRvzhwrlmE15GnbEcjE-T-C3f4mXGMwOTWja3tJCWEtDF4n-2023-12-06-09_12_14.png"}]},"url":"{{Host}}/doc","description":"<p>This endpoint is used to submit a POST request to the Lendzi API in the staging environment. The request should be sent with form-data in the body, including parameters for lead_id, document_type, and file. The lead_id parameter should be of type text and is used to specify the lead ID, while the document_type parameter of type text is used to specify the type of document being submitted. The file parameter should be of type file and is used to upload the document file.</p>\n<p><em><strong>*Only one file can be accepted at a time.</strong></em></p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>lead_id (text): Specifies the lead ID.</li>\n<li>document_type (text): Specifies the type of document being submitted.</li>\n<li>file (file): Uploads the document file.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the API returns a JSON response with a status code of 200, along with a \"success\" boolean indicating the success status of the operation and an optional \"message\" string providing additional information.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"message\": \"Document Uploaded!\"\n}\n\n</code></pre>\n","urlObject":{"path":["doc"],"host":["{{Host}}"],"query":[],"variable":[]}},"response":[{"id":"e4117a59-5d0d-41bc-9f30-22350c6d42a9","name":"POST Doc with success","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"lead_id","value":"4470003000734474810","type":"text"},{"key":"document_type","value":"Bank Statement","type":"text"},{"key":"file","type":"file","src":["/Users/jayomayan/Downloads/Untitled-1.png","/Users/jayomayan/Downloads/Untitled-2.png"]}]},"url":"{{Host}}/doc"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 08 Dec 2023 16:11:13 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Document Uploaded!\"\n}"},{"id":"41251a10-6768-49d3-a5a9-33ac3b1c46e9","name":"POST Doc with error","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"lead_id","value":"4470003000734474810","type":"text"},{"key":"document_type","value":"Bank Statement","type":"text"},{"key":"file","type":"file","src":["/Users/jayomayan/Downloads/astronaut-holding-flag.svg"]}]},"url":"{{Host}}/doc"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Fri, 08 Dec 2023 18:00:56 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"errors\": [\n        \"The file field must be a file of type: pdf, png, jpeg, jpg.\"\n    ]\n}"},{"id":"f140170a-d710-4895-a2c2-e0fd351bfa7d","name":"POST Doc with wrong Lead ID","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Please Request for Token from Lendzi>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"lead_id","value":"4470003000734474810x","type":"text"},{"key":"document_type","value":"Bank Statement","type":"text"},{"key":"file","type":"file","src":["/Users/jayomayan/Downloads/screencapture-campaigns-zoho-campaigns-org717176166-TemplatePreviewAction-do-2023-12-06-11_42_55.png"]}]},"url":"{{Host}}/doc"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 09 Dec 2023 01:09:20 GMT"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Lead ID not found.\"\n}"}],"_postman_id":"6ce0f11d-4339-4c72-8ecb-d884d2bafa8b"},{"name":"Lead Queueing","event":[{"listen":"test","script":{"exec":[""],"type":"text/javascript","packages":{},"id":"8b685ea8-bb43-45ba-bfa8-9dbd2b873b8b"}}],"id":"0c2d866c-c608-4ad5-82cb-0a73845cadde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <You Bearer Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"csv_file","type":"file","src":"/Users/jayomayan/Downloads/sample_leads.csv"},{"key":"num_leads","value":"10","type":"text","disabled":true},{"key":"run_freq","value":"5","type":"text"}]},"url":"{{Host}}/leadsqueue","description":"<h3 id=\"post-leads-queue\">POST Leads Queue</h3>\n<p>This endpoint allows you to enqueue leads by submitting a CSV file along with the number of leads and the run frequency.</p>\n<h4 id=\"request-body-parameters\">Request Body Parameters</h4>\n<ul>\n<li><p><code>csv_file</code> (file): The CSV file containing the leads data with headers.</p>\n</li>\n<li><p><code>num_leads</code> (integer): The number of leads to be processed.</p>\n</li>\n<li><p><code>run_freq</code> (integer): The frequency(in minutes) at which the leads should be processed .</p>\n</li>\n</ul>\n<h4 id=\"csv-file-headers\">CSV File Headers</h4>\n<p><a href=\"https://apiv2.lendzi.com/files/sample_leads.csv\">Download Sample File</a></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header</strong></th>\n<th><strong>Sample Data</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>partner_id</td>\n<td>NerdWallet</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>Jay</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>Omayan</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>1971-05-17</td>\n</tr>\n<tr>\n<td>business_street</td>\n<td>12211 W Washington Blvd</td>\n</tr>\n<tr>\n<td>business_street2</td>\n<td>Suite 110</td>\n</tr>\n<tr>\n<td>business_city</td>\n<td>Los Angeles</td>\n</tr>\n<tr>\n<td>business_state</td>\n<td>CA</td>\n</tr>\n<tr>\n<td>business_zip</td>\n<td>90066</td>\n</tr>\n<tr>\n<td>owner_street</td>\n<td>5401 S Figurua St</td>\n</tr>\n<tr>\n<td>owner_street2</td>\n<td>545</td>\n</tr>\n<tr>\n<td>owner_city</td>\n<td>Los Angeles</td>\n</tr>\n<tr>\n<td>owner_state</td>\n<td>CA</td>\n</tr>\n<tr>\n<td>owner_zip</td>\n<td>90015</td>\n</tr>\n<tr>\n<td>email</td>\n<td><a href=\"https://mailto:jomayan@home.com\">jomayan@home.com</a></td>\n</tr>\n<tr>\n<td>phone</td>\n<td>8183886500</td>\n</tr>\n<tr>\n<td>mobile_phone</td>\n<td>8183887634</td>\n</tr>\n<tr>\n<td>personal_credit_score</td>\n<td>770</td>\n</tr>\n<tr>\n<td>annual_personal_income</td>\n<td>195000</td>\n</tr>\n<tr>\n<td>business_name</td>\n<td>Jays Bakery</td>\n</tr>\n<tr>\n<td>annual_revenue</td>\n<td>550000</td>\n</tr>\n<tr>\n<td>business_entity_type</td>\n<td>LLC</td>\n</tr>\n<tr>\n<td>business_start_date</td>\n<td>2012-01-23</td>\n</tr>\n<tr>\n<td>industry_code</td>\n<td>19876</td>\n</tr>\n<tr>\n<td>industry_type</td>\n<td>Food and Beverage</td>\n</tr>\n<tr>\n<td>number_of_employees</td>\n<td>21</td>\n</tr>\n<tr>\n<td>purpose_of_funds</td>\n<td>Expansion</td>\n</tr>\n<tr>\n<td>requested_funding_amount</td>\n<td>20000</td>\n</tr>\n<tr>\n<td>partner_lead_id</td>\n<td>xxxx</td>\n</tr>\n<tr>\n<td>partner_campaign_id</td>\n<td>xxxx</td>\n</tr>\n<tr>\n<td>click_id</td>\n<td>xxxx</td>\n</tr>\n<tr>\n<td>tracking_id</td>\n<td>xxxxx</td>\n</tr>\n<tr>\n<td>universal_lead_id</td>\n<td>xxxxx</td>\n</tr>\n<tr>\n<td>tax_id</td>\n<td>123456789</td>\n</tr>\n<tr>\n<td>ownership_percentage</td>\n<td>75.50</td>\n</tr>\n<tr>\n<td>owner_ssn</td>\n<td>123-45-6789</td>\n</tr>\n<tr>\n<td>avg_daily_bank_balance</td>\n<td>15000.00</td>\n</tr>\n<tr>\n<td>is_us_citizen</td>\n<td>true</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"message\": \"CSV data imported successfully.\"\n}\n\n</code></pre>\n","urlObject":{"path":["leadsqueue"],"host":["{{Host}}"],"query":[],"variable":[]}},"response":[{"id":"45c07487-2814-47a8-8eec-8e193c2ff747","name":"Lead Queueing - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Bearer Token>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"csv_file","type":"file","src":["/Users/jayomayan/Downloads/sample_leads.csv"]},{"key":"num_leads","value":"10","type":"text"},{"key":"run_freq","value":"5","type":"text"}]},"url":"https://apiv2.lendzi.com/api/leadsqueue"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"CSV data imported successfully.\"\n}"},{"id":"1dd41008-e2c2-401a-9705-dacf955f604d","name":"Lead Queueing - fail","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <Your Bearer Token from Lendzi>","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"csv_file","type":"file","src":["/Users/jayomayan/Downloads/sample_leads.csv"]},{"key":"num_leads","value":"10","type":"text"},{"key":"run_freq","value":"5","type":"text"}]},"url":"{{Host}}/leadsqueue"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Number of leads each run is not set.\"\n}"}],"_postman_id":"0c2d866c-c608-4ad5-82cb-0a73845cadde"}]}