{"info":{"_postman_id":"4adb1798-1284-4582-ae95-890cacff9abd","name":"ECG Lead Source API","description":"<html><head></head><body><p>(Document ver. 2.2.1)</p>\n<p>Use the Lead Source API endpoint to submit a new Lead to ECG Sales, add document(s) to an existing Lead, or request details or documents for an existing Lead.</p>\n<h4 id=\"urls\">URLs</h4>\n<p>ECG maintains separate URL endpoints for <strong>Development</strong> (testing), <strong>Preview</strong> (pre-production), and <strong>Production</strong> (live production).</p>\n<h4 id=\"development\">Development:</h4>\n<p><strong>Development URL</strong> - <a href=\"https://api.dev.ecg.com\">https://api.dev.ecg.com</a></p>\n<p>Use the provided <strong>Development Token</strong> and <strong>Development URL endpoint</strong> to send Leads to the ECG Development environment. This environment is strictly for testing purposes only. These Leads will NOT be worked and offers will NOT be submitted. We do not guarantee that data submitted to this environment will be retained for longer than one week.</p>\n<h4 id=\"preview-pre-production\">Preview (Pre-Production):</h4>\n<p><strong>Preview URL</strong> - <a href=\"https://api.preview.ecg.com\">https://api.preview.ecg.com</a></p>\n<p>Use the provided <strong>Production Token</strong> and <strong>Preview URL endpoint</strong> to send Leads to the ECG Preview environment. This environment uses production data with pre-production code. Any data submitted to this environment will be worked as if it were production data.</p>\n<h4 id=\"production\">Production:</h4>\n<p><strong>Production URL</strong> - <a href=\"https://api.prod.ecg.com\">https://api.prod.ecg.com</a></p>\n<p>Use the provided <strong>Production Token</strong> and <strong>Production URL endpoint</strong> to send Leads to the ECG Production environment. This environment uses both production data and production code. Any data submitted to this environment will be worked.</p>\n<p>Use this API to:</p>\n<ul>\n<li>Add a Lead with 1 or 2 owners</li>\n<li>Add a Document to a Lead</li>\n<li>Get Lead Details</li>\n<li>Get Document Details</li>\n</ul>\n<p>Refer to <a href=\"https://e20co-cdn.s3-us-west-2.amazonaws.com/Tips+for+Using+Postman.pdf\">Tips for Using Postman</a> for instructions on where to insert your ECG Token.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5947704","collectionId":"4adb1798-1284-4582-ae95-890cacff9abd","publishedId":"SVSEtrG1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-15T15:10:06.000Z"},"item":[{"name":"Add Lead with Owners","item":[{"name":"Create Zoho Lead, Contact & Account","event":[{"listen":"test","script":{"id":"d356dc9d-fa95-451f-a041-ce23ddc70b8a","exec":["pm.test(\"Lead & 2 Owners-added successfully\", function () {","    pm.response.to.have.status(201);","});","pm.test(\"Bus DBA-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.dba).to.eql(\"Tester's ABC Company Store\");","});","pm.test(\"Bus Phone1-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.phone).to.eql(\"1886662222\");","});","pm.test(\"Bus Email-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.email).to.eql(\"TesterABC@notanemail.com\");","});","pm.test(\"Bus Entity Type (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.type).to.eql(\"LLC\");","});","pm.test(\"Bus Tax ID (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.tax_id).to.eql(\"333236595\");","});","pm.test(\"Bus Industry (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.industry).to.eql(\"Restaurant & Bar Establishments\");","});","pm.test(\"Bus Street (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.street).to.eql(\"1001 N Main\");","});","pm.test(\"Bus City (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.city).to.eql(\"Sioux Falls\");","});","pm.test(\"Bus State (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.state).to.eql(\"SD\");","});","pm.test(\"Bus Zip (optional)-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.zip).to.eql(\"57108\");","});","pm.test(\"Bus Start Date (optional)-added successfully\", function () {","    pm.expect(pm.response.text()).to.include(\"2004-11-30\");","});","pm.test(\"Owner 1 First Name-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].first_name).to.eql(\"Pat\");","});","pm.test(\"Owner 1 Last Name-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].last_name).to.eql(\"Ting\");","});","pm.test(\"Owner 1 Ownership %-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].ownership_percentage).to.eql(\"51\");","});","pm.test(\"Owner 1 Street-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].street).to.eql(\"2001 Main Ave\");","});","pm.test(\"Owner 1 City-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].city).to.eql(\"Rapid City\");","});","pm.test(\"Owner 1 State-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].state).to.eql(\"SD\");","});","pm.test(\"Owner 1 Zip-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].zip).to.eql(\"57105\");","});","pm.test(\"Owner 1 Phone-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].phone).to.eql(\"6053054411\");","});    ","pm.test(\"Owner 1 Email-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].email).to.eql(\"pat@notanemail.com\");","});    ","pm.test(\"Owner 1 SSN-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].ssn).to.eql(\"505556666\");","});    ","pm.test(\"Owner 1 DOB-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[0].dob).to.eql(\"1982-10-22\");","});","pm.test(\"Owner 2 First Name-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].first_name).to.eql(\"Manny\");","});","pm.test(\"Owner 2 Last Name-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].last_name).to.eql(\"Pops\");","});","pm.test(\"Owner 2 Ownership %-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].ownership_percentage).to.eql(\"26\");","});","pm.test(\"Owner 2 Street-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].street).to.eql(\"3003 S Main Ave\");","});","pm.test(\"Owner 2 City-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].city).to.eql(\"Sioux City\");","});","pm.test(\"Owner 2 State-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].state).to.eql(\"SD\");","});","pm.test(\"Owner 2 Zip-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].zip).to.eql(\"57108\");","});","pm.test(\"Owner 2 Phone-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].phone).to.eql(\"7079997777\");","});    ","pm.test(\"Owner 2 Email-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].email).to.eql(\"manny@NOTANEMAIL.COM\");","});    ","pm.test(\"Owner 2 SSN-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].ssn).to.eql(\"100225555\");","});    ","pm.test(\"Owner 2 DOB-added successfully\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.owners[1].dob).to.eql(\"1969-02-13\");","});"],"type":"text/javascript"}}],"id":"6bf1eaaa-2705-40ea-a120-488c054a40d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"ECG Testing Co.\",\r\n\t\"street\":\"109 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"0012360005\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2005-11-30\",\r\n\t\"phone\":\"0059991484\",\r\n\t\"email\":\"ECGTestcostore@notanemail.com\",\r\n\t\"credit_score_range\":\"Under 460\",\r\n\t\"business_checking_account\":\"Yes\",\r\n\t\"years_in_business\":\"1-3 years\",\r\n\t\"funding_amount_requested\":\"105000\",\r\n\t\"monthly_sales\":\"$5,000 - $10,000\",\r\n\t\"funding_date_requested\":\"1-3 weeks\",\r\n\t\"use_of_funds\":\"Advertising/Promotion\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"51\",\r\n        \t\"first_name\":\"TestECGfirst\",\r\n        \t\"last_name\":\"ECGlast\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"5001 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"10-22-1985\",\r\n            \"ssn\": \"001004009\",\r\n            \"phone\": \"090008452\",\r\n            \"email\": \"ectestkl@notanemail.com\"\r\n        },\r\n          {\r\n            \"ownership_percentage\":\"26\",\r\n            \"first_name\": \"john\",\r\n            \"last_name\": \"expansion\",\r\n            \"city\": \"Sioux City\",\r\n        \t\"street\": \"4003 S Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57108\",\r\n            \"dob\": \"1969-02-13\",\r\n            \"ssn\": \"6605418730\",\r\n            \"phone\": \"087042100\",\r\n            \"email\": \"johnecgtest@NOTANEMAIL.COM\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://api.dev.ecg.com/api/v1/leads","description":"<h1 id=\"add-a-lead-with-owners\">Add a Lead with Owner(s)</h1>\n<p>Enter required information to add a Lead with one or two owners.</p>\n<h5 id=\"possible-lead-submission-return-codes\">Possible Lead Submission Return Codes:</h5>\n<ul>\n<li>Pass (Code 201) Lead &amp; Owner(s) Added</li>\n<li>Fail (Code 400) Invalid, missing or blank required information-Lead not added</li>\n<li>Fail (Code 400) Total Ownership Percentage(s) total &gt; 100%-Lead not added</li>\n<li>Fail (Code 400) Duplicate Business Email or Phone found in the system-Lead not added</li>\n</ul>\n<h5 id=\"required-business-information\">Required Business Information:</h5>\n<ul>\n<li>Business DBA Name (dba)</li>\n<li>Business Phone (phone)</li>\n<li>Business Email (email)</li>\n</ul>\n<h5 id=\"optional-business-information\">Optional Business Information:</h5>\n<ul>\n<li>Business Industry (industry)*</li>\n<li>Business Legal Entity Type (type)*</li>\n<li>Business Tax ID Number (tax_id)</li>\n<li>Business Start Date (start_date)</li>\n<li>Business Street Address (street)</li>\n<li>Business City (city)</li>\n<li>Business State (state)</li>\n<li>Business Zip (zip)</li>\n<li>Funding Amount Requested (funding_amount_requested)</li>\n<li>Years in Business (years_in_business)*</li>\n<li>Monthly Sales (monthly_sales)</li>\n<li>Credit Score Range (credit_score_range)*</li>\n<li>Business Checking Account? (business_checking_account)*</li>\n<li>Funding Date Requested (funding_date_requested)</li>\n<li>Use of Funds (use_of_funds)</li>\n</ul>\n<h5 id=\"required-owner-information\">Required Owner Information:</h5>\n<ul>\n<li>Ownership Percentage (ownership_percentage)</li>\n<li>Owner First Name (first_name)</li>\n<li>Owner Last Name (last_name)</li>\n</ul>\n<h5 id=\"optional-owner-information\">Optional Owner Information:</h5>\n<ul>\n<li>Owner Street (street)</li>\n<li>Owner City (city)</li>\n<li>Owner State (state)</li>\n<li>Owner Zip (zip)</li>\n<li>Owner DOB (Date of Birth) (dob)</li>\n<li>Owner SSN (ssn)</li>\n<li>Owner Phone (phone)</li>\n<li>Owner Email (email)</li>\n</ul>\n<p>*See the <a href=\"http://cdn.e20.co/Lead+Source+API+Doc+Appendix+V1.0.0.pdf\">Lead Source API Documentation Appendix</a> for the full Lead Submission Schema and a complete list of accepted values.</p>\n","urlObject":{"protocol":"https","path":["api","v1","leads"],"host":["api","dev","ecg","com"],"query":[],"variable":[]}},"response":[{"id":"0b0ba5f2-baa1-4981-aac0-0f70880e9a08","name":"Error-Missing or Blank Required Info-Lead NOT Added (Error Code 400)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"\",\r\n\t\"street\":\"101 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"154236595\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2002-11-30\",\r\n\t\"phone\":\"1116662222\",\r\n\t\"email\":\"TestABC@notanemail.com\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"51\",\r\n        \t\"first_name\":\"Peter\",\r\n        \t\"last_name\":\"Pan\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"200 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"1980-10-22\",\r\n            \"ssn\": \"888556666\",\r\n            \"phone\": \"6055554411\",\r\n            \"email\": \"peter@notanemail.com\"\r\n        },\r\n          {\r\n            \"ownership_percentage\":\"26\",\r\n            \"first_name\": \"Mary\",\r\n            \"last_name\": \"Poppins\",\r\n            \"city\": \"Sioux City\",\r\n        \t\"street\": \"300 S Main Ave\",\r\n        \t\"state\": \"IA\",\r\n            \"zip\": \"54444\",\r\n            \"dob\": \"1965-02-13\",\r\n            \"ssn\": \"111225555\",\r\n            \"phone\": \"5559997777\",\r\n            \"email\": \"Mary@NOTANEMAIL.COM\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://ecg-connect.dev.e20.co/api/v1/leads"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:36:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"153"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"The following fields are required: dba. \",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"},{"id":"796ec838-dd45-4bda-930c-c2a6c1ccbbca","name":"Lead & 1 Owner Added (Pass Code 201)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"Test ABC Company's Store\",\r\n\t\"street\":\"101 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"154236595\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2002-11-30\",\r\n\t\"phone\":\"1116662222\",\r\n\t\"email\":\"TestABC@notanemail.com\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"100\",\r\n        \t\"first_name\":\"Peter\",\r\n        \t\"last_name\":\"Pan\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"200 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"1980-10-22\",\r\n            \"ssn\": \"888556666\",\r\n            \"phone\": \"6055554411\",\r\n            \"email\": \"peter@notanemail.com\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://ecg-connect.dev.e20.co/api/v1/leads"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:34:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"532"}],"cookie":[],"responseTime":null,"body":"{\n    \"city\": \"Sioux Falls\",\n    \"dba\": \"Test ABC Company's Store\",\n    \"email\": \"TestABC@notanemail.com\",\n    \"id\": \"3744578000000295223\",\n    \"industry\": \"Restaurant & Bar Establishments\",\n    \"owners\": [\n        {\n            \"city\": \"Rapid City\",\n            \"dob\": \"1980-10-22\",\n            \"email\": \"peter@notanemail.com\",\n            \"first_name\": \"Peter\",\n            \"last_name\": \"Pan\",\n            \"ownership_percentage\": \"100\",\n            \"phone\": \"6055554411\",\n            \"ssn\": \"888556666\",\n            \"state\": \"SD\",\n            \"street\": \"200 Main Ave\",\n            \"zip\": \"57105\"\n        }\n    ],\n    \"phone\": \"1116662222\",\n    \"start_date\": \"2002-11-30\",\n    \"state\": \"SD\",\n    \"street\": \"101 N Main\",\n    \"tax_id\": \"154236595\",\n    \"type\": \"LLC\",\n    \"zip\": \"57108\"\n}"},{"id":"a933b225-a669-4f7e-94a9-23ce30224182","name":"Error-Ownership Percentage Total >100% (Error Code 400)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"Test ABC Company's Store\",\r\n\t\"street\":\"101 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"154236595\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2002-11-30\",\r\n\t\"phone\":\"1116662222\",\r\n\t\"email\":\"TestABC@notanemail.com\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"100\",\r\n        \t\"first_name\":\"Peter\",\r\n        \t\"last_name\":\"Pan\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"200 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"1980-10-22\",\r\n            \"ssn\": \"888556666\",\r\n            \"phone\": \"6055554411\",\r\n            \"email\": \"peter@notanemail.com\"\r\n        },\r\n          {\r\n            \"ownership_percentage\":\"26\",\r\n            \"first_name\": \"Mary\",\r\n            \"last_name\": \"Poppins\",\r\n            \"city\": \"Sioux City\",\r\n        \t\"street\": \"300 S Main Ave\",\r\n        \t\"state\": \"IA\",\r\n            \"zip\": \"54444\",\r\n            \"dob\": \"1965-02-13\",\r\n            \"ssn\": \"111225555\",\r\n            \"phone\": \"5559997777\",\r\n            \"email\": \"Mary@NOTANEMAIL.COM\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://ecg-connect.dev.e20.co/api/v1/leads"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:38:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"164"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Ownership percentages must total between 0 and 100.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"},{"id":"ca573edc-8c1e-4e68-91c0-59087a8e2c21","name":"Lead & 2 Owners Added (Pass Code 201)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"Test ABC Company's Store\",\r\n\t\"street\":\"101 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"154236595\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2002-11-30\",\r\n\t\"phone\":\"1116662222\",\r\n\t\"email\":\"TestABC@notanemail.com\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"51\",\r\n        \t\"first_name\":\"Peter\",\r\n        \t\"last_name\":\"Pan\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"200 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"1980-10-22\",\r\n            \"ssn\": \"888556666\",\r\n            \"phone\": \"6055554411\",\r\n            \"email\": \"peter@notanemail.com\"\r\n        },\r\n          {\r\n            \"ownership_percentage\":\"26\",\r\n            \"first_name\": \"Mary\",\r\n            \"last_name\": \"Poppins\",\r\n            \"city\": \"Sioux City\",\r\n        \t\"street\": \"300 S Main Ave\",\r\n        \t\"state\": \"IA\",\r\n            \"zip\": \"54444\",\r\n            \"dob\": \"1965-02-13\",\r\n            \"ssn\": \"111225555\",\r\n            \"phone\": \"5559997777\",\r\n            \"email\": \"Mary@NOTANEMAIL.COM\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://ecg-connect.dev.e20.co/api/v1/leads"},"status":"CREATED","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:36:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"764"}],"cookie":[],"responseTime":null,"body":"{\n    \"city\": \"Sioux Falls\",\n    \"dba\": \"Test ABC Company's Store\",\n    \"email\": \"TestABC@notanemail.com\",\n    \"id\": \"3744578000000368201\",\n    \"industry\": \"Restaurant & Bar Establishments\",\n    \"owners\": [\n        {\n            \"city\": \"Rapid City\",\n            \"dob\": \"1980-10-22\",\n            \"email\": \"peter@notanemail.com\",\n            \"first_name\": \"Peter\",\n            \"last_name\": \"Pan\",\n            \"ownership_percentage\": \"51\",\n            \"phone\": \"6055554411\",\n            \"ssn\": \"888556666\",\n            \"state\": \"SD\",\n            \"street\": \"200 Main Ave\",\n            \"zip\": \"57105\"\n        },\n        {\n            \"city\": \"Sioux City\",\n            \"dob\": \"1965-02-13\",\n            \"email\": \"Mary@NOTANEMAIL.COM\",\n            \"first_name\": \"Mary\",\n            \"last_name\": \"Poppins\",\n            \"ownership_percentage\": \"26\",\n            \"phone\": \"5559997777\",\n            \"ssn\": \"111225555\",\n            \"state\": \"IA\",\n            \"street\": \"300 S Main Ave\",\n            \"zip\": \"54444\"\n        }\n    ],\n    \"phone\": \"1116662222\",\n    \"start_date\": \"2002-11-30\",\n    \"state\": \"SD\",\n    \"street\": \"101 N Main\",\n    \"tax_id\": \"154236595\",\n    \"type\": \"LLC\",\n    \"zip\": \"57108\"\n}"},{"id":"d65b8860-eb36-441c-9be6-0ceaa8e1a11a","name":"Error-Duplicate Phone/Email Exists in the System (Error 400)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"Test ABC Company's Store\",\r\n\t\"street\":\"101 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"154236595\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2002-11-30\",\r\n\t\"phone\":\"1116662222\",\r\n\t\"email\":\"TestABC@notanemail.com\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"51\",\r\n        \t\"first_name\":\"Peter\",\r\n        \t\"last_name\":\"Pan\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"200 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"1980-10-22\",\r\n            \"ssn\": \"888556666\",\r\n            \"phone\": \"6055554411\",\r\n            \"email\": \"peter@notanemail.com\"\r\n        },\r\n          {\r\n            \"ownership_percentage\":\"26\",\r\n            \"first_name\": \"Mary\",\r\n            \"last_name\": \"Poppins\",\r\n            \"city\": \"Sioux City\",\r\n        \t\"street\": \"300 S Main Ave\",\r\n        \t\"state\": \"IA\",\r\n            \"zip\": \"54444\",\r\n            \"dob\": \"1965-02-13\",\r\n            \"ssn\": \"111225555\",\r\n            \"phone\": \"5559997777\",\r\n            \"email\": \"Mary@NOTANEMAIL.COM\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://ecg-connect.dev.e20.co/api/v1/leads"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:38:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"181"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Lead could not be added. Duplicate phone or email has been detected.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"},{"id":"f55dade1-cb79-48be-b434-fafa9f19b44f","name":"Error-Invalid Required Info-Lead Not Added (Error Code 400)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\"dba\":\"Test ABC Company's Store\",\r\n\t\"street\":\"101 N Main\",\r\n\t\"city\":\"Sioux Falls\",\r\n\t\"state\":\"SD\",\r\n\t\"zip\":\"57108\",\r\n\t\"type\":\"LLC\",\r\n\t\"tax_id\":\"154236595\",\r\n\t\"industry\":\"Restaurant & Bar Establishments\",\r\n\t\"start_date\":\"2002-11-30\",\r\n\t\"phone\":\"1116662222\",\r\n\t\"email\":\"TestABC@notanemail.com\",\r\n\t\"owners\":[\r\n    \t  {\r\n        \t\"ownership_percentage\":\"a\",\r\n        \t\"first_name\":\"Peter\",\r\n        \t\"last_name\":\"Pan\",\r\n        \t\"city\": \"Rapid City\",\r\n        \t\"street\": \"200 Main Ave\",\r\n        \t\"state\": \"SD\",\r\n            \"zip\": \"57105\",\r\n            \"dob\": \"1980-10-22\",\r\n            \"ssn\": \"888556666\",\r\n            \"phone\": \"6055554411\",\r\n            \"email\": \"peter@notanemail.com\"\r\n        },\r\n          {\r\n            \"ownership_percentage\":\"26\",\r\n            \"first_name\": \"Mary\",\r\n            \"last_name\": \"Poppins\",\r\n            \"city\": \"Sioux City\",\r\n        \t\"street\": \"300 S Main Ave\",\r\n        \t\"state\": \"IA\",\r\n            \"zip\": \"54444\",\r\n            \"dob\": \"1965-02-13\",\r\n            \"ssn\": \"111225555\",\r\n            \"phone\": \"5559997777\",\r\n            \"email\": \"Mary@NOTANEMAIL.COM\"\r\n        }\r\n\t]\r\n}\r\n\r\n"},"url":"https://ecg-connect.dev.e20.co/api/v1/leads"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:37:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"226"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Lead could not be added. The following fields must be an integer or an integer-like string: ownership_percentage.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"}],"_postman_id":"6bf1eaaa-2705-40ea-a120-488c054a40d9"}],"id":"029648dd-b83f-41af-8bad-becac0c3421e","description":"<p>A Lead with one or two owners can be added. See the <a href=\"http://cdn.e20.co/Lead+Source+API+Doc+Appendix+V1.0.0.pdf\">Lead Source API Documentation Appendix</a> for the complete Lead Submission Schema.</p>\n<h5 id=\"required-business-fields\">Required Business Fields:</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>• Business DBA Name (Do Business As)\n• Business Phone\n• Bussiness Email\n</code></pre><h5 id=\"required-owner-fields\">Required Owner Fields:</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>• Ownership Percentage\n• Owner First Name\n• Owner Last Name\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"20a4a5fb-7c85-4c62-97af-c3eae01f111e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1f6c2dc7-86e0-4731-8309-ca01d4b7464e","type":"text/javascript","exec":[""]}}],"_postman_id":"029648dd-b83f-41af-8bad-becac0c3421e"},{"name":"Add Document","item":[{"name":"Add Document","event":[{"listen":"prerequest","script":{"id":"3dcfe0ef-bad4-4717-9d20-8e2ec47e3b51","exec":["pm.variables.set(\"lead_id\", \"3744578000000592002\");"],"type":"text/javascript"}},{"listen":"test","script":{"id":"493ba760-c267-4ec4-a3aa-a0e52118b9c8","exec":["pm.test(\"File was successfully added\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"56f13655-ac34-437d-9481-e01210702238","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Contracts.PDF"},{"key":"file","type":"file","src":"/C:/Users/Kandice Lewin/Downloads/Import Test Data/2017 Project Capitalization Report.xlsm"}]},"url":"https://api.dev.ecg.com/api/v1/leads/{{lead_id}}/documents","description":"<h1 id=\"add-a-document-to-a-lead\">Add a Document to a Lead</h1>\n<p>Specify a <strong>Lead ID</strong>, enter the Document Name and browse to select the document. </p>\n<h5 id=\"possible-document-submission-return-codes\">Possible Document Submission Return Codes:</h5>\n<ul>\n<li>Pass (Code 200) Document added to selected lead</li>\n<li>Fail (Code 400) File size exceeds the 60MB maximum-Document not added</li>\n<li>Fail (Code 400) Lead ID not found-Document not added</li>\n</ul>\n<h5 id=\"required-document-information\">Required Document Information:</h5>\n<ul>\n<li>Document Name</li>\n</ul>\n<h5 id=\"document-restrictions\">Document Restrictions:</h5>\n<ul>\n<li>Max file size is 60 MB</li>\n<li>Disallowed File Types: .exe and .dll</li>\n</ul>\n<p>See the <a href=\"http://cdn.e20.co/Lead+Source+API+Doc+Appendix+V1.0.0.pdf\">Lead Source API Documentation Appendix</a> for the full Lead Submission Schema. </p>\n","urlObject":{"protocol":"https","path":["api","v1","leads","{{lead_id}}","documents"],"host":["api","dev","ecg","com"],"query":[],"variable":[]}},"response":[{"id":"00d1c75a-e885-4f76-924a-bf85b3aefd15","name":"Doc Added to Lead (Pass Code 200)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Contracts.PDF"},{"key":"file","type":"file","warning":"This file resides outside the working directory. Collaborators might not have the same file path.","src":"/C:/Users/Kandice Lewin/Downloads/Import Test Data/201850_analytics.xlsx"}]},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/{{lead_id}}/documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:53:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"85"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"file_name\": \"Contracts.PDF\",\n        \"size\": \"22821\",\n        \"time_modified\": \"2019-06-18 14:53:32\"\n    }\n]"},{"id":"6efe20f0-d545-4f62-9f39-67bd42d07b5e","name":"Error-File Size >60 MB-Doc Not Added (Error Code 400)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Contracts.PDF"},{"key":"file","type":"file","warning":"This file resides outside the working directory. Collaborators might not have the same file path.","src":"/C:/Users/Kandice Lewin/Downloads/Import Test Data/Presentation2.pdf"}]},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/{{lead_id}}/documents"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:54:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"146"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"File size must be less than 60MB.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"},{"id":"94fadc2c-75e1-449f-a2df-6f4ba9aeeb7e","name":"Error-Lead ID Not Found-Doc Not Added (Error Code 400)","originalRequest":{"method":"POST","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Contracts.PDF"},{"key":"file","type":"file","warning":"This file resides outside the working directory. Collaborators might not have the same file path.","src":"/C:/Users/Kandice Lewin/Downloads/Import Test Data/201850_analytics.xlsx"}]},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/{{lead_id}}/documents"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:54:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"139"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Could not process request.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"}],"_postman_id":"56f13655-ac34-437d-9481-e01210702238"}],"id":"bd44d5d0-b504-45c3-8a85-11c0bbeefc6e","description":"<p>Documents can be subsequently added to a Lead. See the <a href=\"http://cdn.e20.co/Lead+Source+API+Doc+Appendix+V1.0.0.pdf\">Lead Source API Documentation Appendix</a> for the complete Lead Submission Schema.</p>\n","event":[{"listen":"prerequest","script":{"id":"c8d322b9-7197-4043-9b68-8cd2e2047751","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5f1fd758-4868-4e58-8dd0-4a8acfec516d","type":"text/javascript","exec":[""]}}],"_postman_id":"bd44d5d0-b504-45c3-8a85-11c0bbeefc6e"},{"name":"Get Lead Details","item":[{"name":"Get Single Lead Details","event":[{"listen":"test","script":{"id":"e3432f28-2b20-4fe0-bd8d-a10dd866c3b8","exec":["pm.test(\"Lead & Owner Details successfully Returned\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"6c5f56de-e019-42fb-998a-73d46544c197","exec":["pm.variables.set(\"lead_id\", \"374457800000029552\");"],"type":"text/javascript"}}],"id":"7ee953f2-69ef-4118-a9c4-0972b2bd8809","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://api.dev.ecg.com/api/v1/leads/{{lead_id}}","description":"<h1 id=\"get-single-lead-details\">Get Single Lead Details</h1>\n<p>Specify a <strong>Lead ID</strong> to return the business and owner details for the Lead.</p>\n<h5 id=\"possible-lead-submission-return-codes\">Possible Lead Submission Return Codes:</h5>\n<ul>\n<li>Pass (Code 200) Lead Details Returned</li>\n<li>Fail (Code 400) Lead ID Not Found</li>\n</ul>\n<h5 id=\"business-information-returned\">Business Information Returned:</h5>\n<ul>\n<li>Lead ID (id)</li>\n<li>Business DBA Name (dba)</li>\n<li>Business Industry (industry) (Optional)*</li>\n<li>Entity Legal Entity Type (type) (Optional)*</li>\n<li>Business Tax ID Number (tax_id) (Optional)</li>\n<li>Business Start Date (start_date) (Optional)</li>\n<li>Business Email (email) </li>\n<li>Business Phone (phone)</li>\n<li>Business Street Address (street) (Optional)</li>\n<li>Business City (city) (Optional)</li>\n<li>Business State (state) (Optional)</li>\n<li>Business Zip (zip) (Optional)</li>\n</ul>\n<h5 id=\"owner-information-returned\">Owner Information Returned:</h5>\n<ul>\n<li>Ownership Percentage (ownership_percentage) (Optional)</li>\n<li>Owner First Name (first_name)</li>\n<li>Owner Last Name (last_name)</li>\n<li>Owner DOB (dob) (Optional)</li>\n<li>Owner SSN (ssn) (Optional)</li>\n<li>Owner Email (email) (Optional)</li>\n<li>Owner Phone (phone) (Optional)</li>\n<li>Owner Street (street) (Optional)</li>\n<li>Owner City (city) (Optional)</li>\n<li>Owner State (state) (Optional)</li>\n<li>Owner Zip (zip) (Optional)</li>\n</ul>\n<p>*See the <a href=\"http://cdn.e20.co/Lead+Source+API+Doc+Appendix+V1.0.0.pdf\">Lead Source API Documentation Appendix</a> for the full Lead Submission Schema and a complete list of accepted values.</p>\n","urlObject":{"protocol":"https","path":["api","v1","leads","{{lead_id}}"],"host":["api","dev","ecg","com"],"query":[],"variable":[]}},"response":[{"id":"2ebea2f9-981c-43f9-acc2-20bca8cc8256","name":"Error-Selected Lead ID Not Found (Error Code 400)","originalRequest":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/hal+json","disabled":true}],"body":{"mode":"raw","raw":""},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/{{lead_id}}"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:51:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"139"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Could not process request.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"},{"id":"acfc7085-ee01-43f9-8c09-a79ef04bc27f","name":"Single Lead & 1 Owner-Detail Returned (Pass Code 200)","originalRequest":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/hal+json","disabled":true}],"body":{"mode":"raw","raw":""},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/{{lead_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:50:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"531"}],"cookie":[],"responseTime":null,"body":"{\n    \"city\": \"Sioux Falls\",\n    \"dba\": \"Test ABC Company's Store\",\n    \"email\": \"TestABC@notanemail.com\",\n    \"id\": \"3744578000000294101\",\n    \"industry\": \"Restaurant & Bar Establishments\",\n    \"owners\": [\n        {\n            \"city\": \"Rapid City\",\n            \"dob\": \"1980-10-22\",\n            \"email\": \"peter@notanemail.com\",\n            \"first_name\": \"Peter\",\n            \"last_name\": \"Pan\",\n            \"ownership_percentage\": \"51\",\n            \"phone\": \"6055554411\",\n            \"ssn\": \"888556666\",\n            \"state\": \"SD\",\n            \"street\": \"200 Main Ave\",\n            \"zip\": \"57105\"\n        }\n    ],\n    \"phone\": \"1116662222\",\n    \"start_date\": \"2002-11-30\",\n    \"state\": \"SD\",\n    \"street\": \"101 N Main\",\n    \"tax_id\": \"154236595\",\n    \"type\": \"LLC\",\n    \"zip\": \"57108\"\n}"},{"id":"eae21409-70f0-4749-b3bc-1789c856540d","name":"Single Lead & 2 Owners-Detail Returned (Pass Code 200)","originalRequest":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Content-Type","type":"text","value":"application/hal+json","disabled":true}],"body":{"mode":"raw","raw":""},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/{{lead_id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Tue, 18 Jun 2019 19:51:09 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"764"}],"cookie":[],"responseTime":null,"body":"{\n    \"city\": \"Sioux Falls\",\n    \"dba\": \"Test ABC Company's Store\",\n    \"email\": \"TestABC@notanemail.com\",\n    \"id\": \"3744578000000295502\",\n    \"industry\": \"Restaurant & Bar Establishments\",\n    \"owners\": [\n        {\n            \"city\": \"Rapid City\",\n            \"dob\": \"1980-10-22\",\n            \"email\": \"peter@notanemail.com\",\n            \"first_name\": \"Peter\",\n            \"last_name\": \"Pan\",\n            \"ownership_percentage\": \"51\",\n            \"phone\": \"6055554411\",\n            \"ssn\": \"888556666\",\n            \"state\": \"SD\",\n            \"street\": \"200 Main Ave\",\n            \"zip\": \"57105\"\n        },\n        {\n            \"city\": \"Sioux City\",\n            \"dob\": \"1965-02-13\",\n            \"email\": \"Mary@NOTANEMAIL.COM\",\n            \"first_name\": \"Mary\",\n            \"last_name\": \"Poppins\",\n            \"ownership_percentage\": \"26\",\n            \"phone\": \"5559997777\",\n            \"ssn\": \"111225555\",\n            \"state\": \"IA\",\n            \"street\": \"300 S Main Ave\",\n            \"zip\": \"54444\"\n        }\n    ],\n    \"phone\": \"1116662222\",\n    \"start_date\": \"2002-11-30\",\n    \"state\": \"SD\",\n    \"street\": \"101 N Main\",\n    \"tax_id\": \"154236595\",\n    \"type\": \"LLC\",\n    \"zip\": \"57108\"\n}"}],"_postman_id":"7ee953f2-69ef-4118-a9c4-0972b2bd8809"},{"name":"Get Document Details","event":[{"listen":"test","script":{"id":"c92eb218-4875-4cde-be01-5d2bbe98e320","exec":["pm.test(\"Doc details returned successfully\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"31c31622-1f29-4ce6-aa40-037bd47c5364","exec":["pm.variables.set(\"lead_id\", \"254399\");"],"type":"text/javascript"}}],"id":"b0445107-7699-4b7e-b5c7-4c1da39c1f2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[]},"url":"https://api.dev.ecg.com/api/v1/leads/{{lead_id}}/documents","description":"<h1 id=\"get-document-details\">Get Document Details</h1>\n<p>Specify a <strong>Lead ID</strong> to return details for document(s) uploaded for a Lead.</p>\n<h5 id=\"possible-lead-submission-return-codes\">Possible Lead Submission Return Codes:</h5>\n<ul>\n<li>Pass (Code 200) Document(s) Details Returned</li>\n<li>Fail (Code 400) Lead ID Not Found</li>\n</ul>\n<h5 id=\"document-details-returned\">Document Details Returned:</h5>\n<ul>\n<li>Checksum</li>\n<li>Document ID</li>\n<li>File Name</li>\n<li>File Size</li>\n<li>Status</li>\n<li>Last Updated Date</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","leads","{{lead_id}}","documents"],"host":["api","dev","ecg","com"],"query":[],"variable":[]}},"response":[{"id":"19771c09-5c0d-4fab-b4ec-554c28d2a050","name":"Doc Details Returned (Pass Code 200) ","originalRequest":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[{"key":"name","type":"text","value":"Contract.PDF"},{"key":"file","type":"file","value":null}]},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/3747507000000276327/documents"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Wed, 01 May 2019 13:56:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"86"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"file_name\": \"Contract.PDF\",\n        \"size\": \"8011062\",\n        \"time_modified\": \"2019-05-01 08:54:45\"\n    }\n]"},{"id":"dac09d9f-15b0-40cb-b2ac-b4ba9880eca0","name":"Error-Selected Lead ID Not Found (Error Code 400) ","originalRequest":{"method":"GET","header":[{"key":"x-authtoken","type":"text","value":"<token>"}],"body":{"mode":"formdata","formdata":[]},"url":"https://ecg-connect.dev.e20.co/api/v1/leads/3747507000000276327/documents"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"gunicorn/19.9.0"},{"key":"Date","value":"Wed, 01 May 2019 14:39:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"139"}],"cookie":[],"responseTime":null,"body":"{\n    \"detail\": \"Could not process request.\",\n    \"status\": 400,\n    \"title\": \"Bad Request\",\n    \"type\": \"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html\"\n}"}],"_postman_id":"b0445107-7699-4b7e-b5c7-4c1da39c1f2d"}],"id":"b7b510df-6e00-4e3a-8dc2-203fae5bfbf6","description":"<p>The Lead Details requests are used to return various details regarding the Lead. See the <a href=\"http://cdn.e20.co/Lead+Source+API+Doc+Appendix+V1.0.0.pdf\">Lead Source API Documentation Appendix</a> for the complete Lead Submission Schema.</p>\n<h5 id=\"lead-submission-details-available\">Lead Submission Details Available:</h5>\n<ul>\n<li>Single Lead &amp; Owner(s) Details</li>\n<li>Document Details</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"a323adc3-8e99-49af-9528-675941c282fe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d5a528dd-26cb-49ec-a3c7-af0001c3eadd","type":"text/javascript","exec":[""]}}],"_postman_id":"b7b510df-6e00-4e3a-8dc2-203fae5bfbf6"}],"event":[{"listen":"prerequest","script":{"id":"c67da738-b101-48ec-8537-b4e127a77aad","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3a48f0ac-258b-4ca6-96bb-0794dff9dd3e","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token","value":"<token>"}]}