{"info":{"_postman_id":"c3374a76-579b-4f2e-912a-39237b4ce11c","name":"Obligo API v0.1","description":"<html><head></head><body><p>The Obligo API is organized around REST and uses traditional HTTP request methods and response codes. Our API accepts form-encoded requests and returns JSON-encoded responses.</p>\n<p>Feel free to contact us via <a href=\"mailto:support@myobligo.com\">support@myobligo.com</a> if you have questions.  </p>\n<hr>\n<h1 id=\"testing\">Testing</h1>\n<p>You can test the Obligo API using our Sandbox environment.  </p>\n<p>It works exactly like the production environment and allows you to test your code prior to going live.</p>\n<p>The base URL for the Sandbox environment is <a href=\"https://api.sandbox.myobligo.com/\">https://api.sandbox.myobligo.com/</a>  </p>\n<hr>\n<h1 id=\"metadata\">Metadata</h1>\n<p>The Obligo API supports passing key-value metadata objects on all resources.  </p>\n<p>If you need to match a certain resource on the Obligo API to one of you internal resources, the metadata object is where you would want to represent that.</p>\n<p>For example, a metadata object may look like this:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n   “myForeignKey”: “4e82b0c2-63b2-4be4-ae3e-5f716edac928”\n}\n\n</code></pre><p>A metadata value can be of one of the following types: String, Number or Boolean  </p>\n<hr>\n<h1 id=\"commonly-used-data-types\">Commonly Used Data Types</h1>\n<h3 id=\"address\">Address</h3>\n<p>Describes a single address  </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>line</td>\n<td>String</td>\n<td>Address line</td>\n</tr>\n<tr>\n<td>city</td>\n<td>String</td>\n<td>City</td>\n</tr>\n<tr>\n<td>state</td>\n<td>String</td>\n<td>A two letter state name (ISO)</td>\n</tr>\n<tr>\n<td>country</td>\n<td>String</td>\n<td>A two letter country name (ISO Alpha-2)</td>\n</tr>\n<tr>\n<td>postalCode</td>\n<td>String</td>\n<td>Postal code</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"pagination-sorting-and-search\">Pagination, Sorting and Search</h1>\n<p>The Obligo API supports pagination, sorting and search functionalities for all <code>list</code> requests for our resources.  </p>\n<p>All parameters should be passed in the query string for <code>GET</code> requests and in the body for <code>POST</code> requests. (some resources allow listing with a <code>POST</code> method)  </p>\n<h3 id=\"pagination\">Pagination</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Min</th>\n<th>Max</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>offset</td>\n<td>0</td>\n<td>-</td>\n<td>0</td>\n<td>Indicate the starting point to return rows from a result set</td>\n</tr>\n<tr>\n<td>limit</td>\n<td>1</td>\n<td>100</td>\n<td>10</td>\n<td>How many items should return in the result set</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"sorting\">Sorting</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sortBy</td>\n<td>Which field to sort by, inner fields should be represented by a separating dot</td>\n</tr>\n<tr>\n<td>descending</td>\n<td>Whether the result set should be ordered from top to bottom</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"searching\">Searching</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>search</td>\n<td>The term used to search the data</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"idempotency-identifiers\">Idempotency Identifiers</h1>\n<p>The Obligo API allows users to pass an idempotency identifier with the request.  </p>\n<p>This way a sensitive action will not be performed more than once by mistake.</p>\n<p>Idempotency works by caching the response for a certain request for the provided identifier, including cases of unexpected errors (<code>500</code>).  </p>\n<p>The cashed responses expire after 24 hours.</p>\n<p>For example:  </p>\n<p>When you request a risk analysis on a certain tenant, with an idempotency identifier, and the request results in a successful response (<code>200</code>), that response will be cached.  </p>\n<p>All subsequent requests with that same identifier will yield the same successful response, without actually executing the action again.</p>\n<p>You may pass the idempotency identifier in the query string as follows:  </p>\n<p><code>...&amp;idempotencyId=...</code></p>\n<p>Idempotency identifiers are available for all <code>POST</code> methods. Avoid passing the idempotency identifier for <code>GET</code> and <code>DELETE</code> methods.  </p>\n<hr>\n<h1 id=\"errors\">Errors</h1>\n<p>The Obligo API uses the following error codes:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Error Code</th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request -- Your request is invalid</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized -- Your API token is invalid or it needs to be refreshed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden -- You are not allowed to access the requested resource</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found -- The specified resource could not be found</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Method Not Allowed -- You tried to access a resource with an invalid HTTP method</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Conflict -- The request conflicts with the current state of the server</td>\n</tr>\n<tr>\n<td>423</td>\n<td>Locked -- The resource that is being accessed is locked</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests -- You've gone over your request limit</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error -- We had a problem with our server. Try again later</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Service Unavailable -- We're temporarily offline for maintenance. Try again later</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h1 id=\"important-notes\">Important Notes</h1>\n<p>There are few important things you need to know when working with the Obligo API:</p>\n<ul>\n<li>All variables are camelCase.</li>\n<li>Money is counted in cents in our platform - a variable named <code>amount</code> with a value of <code>250000</code> would represent an amount equal to <code>250,000 cents</code> or <code>$2,500</code>.</li>\n<li>All types and statuses are capitalized. Some examples: <code>BillingAuthorization</code>, <code>CashDeposit</code>, <code>Approved</code>, <code>Canceled</code>, etc…</li>\n<li>All date-time fields are formatted as ISO 8601 strings</li>\n</ul>\n<hr>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The authentication to the Obligo API is performed using HTTP Basic Auth.</p>\n<p>We provide you with a <code>client ID</code> and <code>client secret</code>, which you'll use to build your API authentication key. In order to build your API authentication key you will need to follow these steps:</p>\n<ul>\n<li>Concat the client ID and secret with a colon between them \"clientId:clientSecret\"</li>\n<li>Encode the concatinated string to base 64</li>\n</ul>\n<p>The API key is expected to be included in all API requests using a basic token header, in the following way:  </p>\n<p><code>Authorization: Basic Qdahjk47892743...</code></p>\n<p>Your API secret keys must be kept securely! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, etc...</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Testing","slug":"testing"},{"content":"Metadata","slug":"metadata"},{"content":"Commonly Used Data Types","slug":"commonly-used-data-types"},{"content":"Pagination, Sorting and Search","slug":"pagination-sorting-and-search"},{"content":"Idempotency Identifiers","slug":"idempotency-identifiers"},{"content":"Errors","slug":"errors"},{"content":"Important Notes","slug":"important-notes"},{"content":"Authentication","slug":"authentication"}],"owner":"3973695","collectionId":"c3374a76-579b-4f2e-912a-39237b4ce11c","publishedId":"SW7Z3U3Z","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"182040","highlight":"23C9F7"},"publishDate":"2022-01-05T10:22:44.000Z"},"item":[{"name":"Accounts","item":[{"name":"Get account","id":"8e456c3c-d8be-4902-86c7-43b2e8b4e0bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKeyV01}}","type":"text"}],"url":"{{apiHost}}/v0.1/accounts/:accountId","urlObject":{"path":["v0.1","accounts",":accountId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The account ID</p>\n","type":"text/plain"},"type":"string","value":"7d50dfe3-03cf-4513-b292-a3ed7bbba132","key":"accountId"}]}},"response":[{"id":"720912bb-c2fc-4c71-9d6e-fc5bf6c370a0","name":"Get account data","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/accounts/:accountId","host":["{{apiHost}}"],"path":["v0.1","accounts",":accountId"],"variable":[{"key":"accountId","value":"961065c9-0647-4ec7-b9a1-11abc5fbb2cc","description":"The account ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"649"},{"key":"Connection","value":"keep-alive"},{"key":"x-response-time","value":"249ms"},{"key":"Date","value":"Thu, 14 Nov 2019 07:01:54 GMT"},{"key":"X-Kong-Upstream-Latency","value":"253"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"Via","value":"kong/0.14.1"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"961065c9-0647-4ec7-b9a1-11abc5fbb2cc\",\n    \"referenceCode\": \"F5L5KJ059\",\n    \"name\": \"Demos Account\",\n    \"active\": true,\n    \"metadata\": {},\n    \"createdAt\": \"2019-03-12T22:34:01.000Z\",\n    \"updatedAt\": \"2019-11-14T04:47:59.000Z\"\n}"}],"_postman_id":"8e456c3c-d8be-4902-86c7-43b2e8b4e0bf"},{"name":"List accounts","id":"f5e8d491-3ca4-4fb3-882a-b5383cf28661","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{apiHost}}/v0.1/accounts","urlObject":{"path":["v0.1","accounts"],"host":["{{apiHost}}"],"query":[],"variable":[]}},"response":[{"id":"56c0c42a-c14b-4fe7-bd89-fb3a03a97f23","name":"Show first 10 results","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/accounts?limit=10&offset=0","host":["{{apiHost}}"],"path":["v0.1","accounts"],"query":[{"key":"limit","value":"10","description":"How many items should return in the result set"},{"key":"offset","value":"0","description":"Indicate the starting point to return rows from a result set"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"215"},{"key":"Connection","value":"keep-alive"},{"key":"x-response-time","value":"344ms"},{"key":"Date","value":"Thu, 14 Nov 2019 05:23:40 GMT"},{"key":"X-Kong-Upstream-Latency","value":"352"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"Via","value":"kong/0.14.1"}],"cookie":[],"responseTime":null,"body":"{\n    \"items\": [...],\n    \"totalItems\": 1\n}"},{"id":"51116ec8-57d6-4d26-accb-f40755224450","name":"List connected accounts (coming soon)","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{apiHost}}/v0.1/accounts?connected=true","host":["{{apiHost}}"],"path":["v0.1","accounts"],"query":[{"key":"connected","value":"true"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"items\": [...],\n    \"totalItems\": 1\n}"}],"_postman_id":"f5e8d491-3ca4-4fb3-882a-b5383cf28661"},{"name":"Create account (coming soon)","id":"40be6b28-dc5c-4ee2-a830-fc3320676377","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/accounts","urlObject":{"path":["v0.1","accounts"],"host":["{{apiHost}}"],"query":[],"variable":[]}},"response":[{"id":"2a8ab9a7-8cc2-4b4f-9c59-81951e1f9892","name":"Create connected account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"New Connected Account","type":"text"},{"key":"metadata[customId]","value":"123456789","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"{{apiHost}}/v0.1/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"3a36a185-d0e8-4718-9f4a-0bca944724c1\"\n}\n"}],"_postman_id":"40be6b28-dc5c-4ee2-a830-fc3320676377"},{"name":"Update account (coming soon)","id":"75b3b54d-27c8-4249-91de-5ef4ac32b509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{apiHost}}/v0.1/accounts/:accountId","urlObject":{"path":["v0.1","accounts",":accountId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The account ID</p>\n","type":"text/plain"},"type":"any","value":"","key":"accountId"}]}},"response":[{"id":"dc51ce35-69a3-4512-9d31-e8ed7f8e99b8","name":"Update account name and metadata","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"New Account Name","type":"text"},{"key":"metadata[customKey]","value":"New Value","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/accounts/:accountId","host":["{{apiHost}}"],"path":["v0.1","accounts",":accountId"],"variable":[{"key":"accountId","value":"9b71efe7-7f4f-40fb-bc3e-1b0ea45577dc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"updated\": true\n}"}],"_postman_id":"75b3b54d-27c8-4249-91de-5ef4ac32b509"}],"id":"9208322f-a796-49f6-a5ee-7933e1f1480c","description":"<p>Accounts are the root entities in the Obligo API. When generating a private app for a single integration, you will have access to only one account. However, if you’re building a public app, you will have access to multiple accounts.\n<br /><br /></p>\n<h3 id=\"the-account-data-type\">The Account Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>referenceCode</td>\n<td>String</td>\n<td>A human readable unique identifier</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>The account’s name</td>\n</tr>\n<tr>\n<td>active</td>\n<td>Boolean</td>\n<td>Indicates whether the account is active or not</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Custom key-value store</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>ISO</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>ISO</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>owner (coming soon)</td>\n<td>AccountOwner</td>\n<td>May be different than the connectedToAccountId</td>\n</tr>\n<tr>\n<td>connectedToAccountId (coming soon)</td>\n<td>UUID</td>\n<td>A unique identifier of the manager account</td>\n</tr>\n</tbody>\n</table>\n</div><br />\n\n<h3 id=\"the-account-owner-data-type\">The Account Owner Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>'User' | 'Account'</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"19723834-3537-4277-b14c-09ffab204d04","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b4640ec0-e4b4-42c4-b73c-16f56f2d333f","type":"text/javascript","exec":[""]}}],"_postman_id":"9208322f-a796-49f6-a5ee-7933e1f1480c"},{"name":"Account/Payment Types","item":[{"name":"List payment types","id":"540d9eb3-bbe6-4911-8cbb-bfde7234de33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{apiHost}}/v0.1/accounts/:accountId/payment-types","urlObject":{"path":["v0.1","accounts",":accountId","payment-types"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The account ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"accountId"}]}},"response":[{"id":"0fa03dfd-3633-4d1f-96c3-d8358f965aaf","name":"List account payment types","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/accounts/:accountId/payment-types","host":["{{apiHost}}"],"path":["v0.1","accounts",":accountId","payment-types"],"variable":[{"key":"accountId","value":"","description":"The account ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"215"},{"key":"Connection","value":"keep-alive"},{"key":"x-response-time","value":"344ms"},{"key":"Date","value":"Thu, 14 Nov 2019 05:23:40 GMT"},{"key":"X-Kong-Upstream-Latency","value":"352"},{"key":"X-Kong-Proxy-Latency","value":"0"},{"key":"Via","value":"kong/0.14.1"}],"cookie":[],"responseTime":null,"body":"[\n\t{\n\t\t\"id\": \"d299fd59-0fe3-4222-8d81-be1a416fff93\",\n\t\t\"type\": \"RentAdvance\",\n\t\t\"description\": \"First Month's Rent\"\n\t},\n\t{\n\t\t\"id\": \"ff836b44-3141-41d8-ac6e-bc66bc5ff4d9\",\n\t\t\"type\": \"PetFee\",\n\t\t\"description\": \"Pet Fee\"\n\t}\n]"}],"_postman_id":"540d9eb3-bbe6-4911-8cbb-bfde7234de33"}],"id":"e8d1041c-cd77-4380-967e-516d89a9d115","description":"<p>Payment types are used to categorize the different possible payments for the account and are a subresource of accounts.\n<br /><br /></p>\n<h3 id=\"the-payment-type-data-type\">The Payment Type Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>A unique string identifier for the type</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>A short human readable string describing the payment type</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"ca8e5566-ad56-4797-8393-6c171ac35c46","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0800e468-e5a5-49d8-81b1-df1f269eb180","type":"text/javascript","exec":[""]}}],"_postman_id":"e8d1041c-cd77-4380-967e-516d89a9d115"},{"name":"Assets","item":[{"name":"Get asset","id":"2ac7d040-7fe9-4a99-88fe-08dfa2fced33","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/assets/:assetId","urlObject":{"path":["v0.1","assets",":assetId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The asset ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"assetId"}]}},"response":[{"id":"6c46176c-8ecd-4a03-8616-c64645975e3c","name":"Get a specific asset","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/assets/:assetId","host":["{{apiHost}}"],"path":["v0.1","assets",":assetId"],"variable":[{"key":"assetId","value":"","type":"string","description":"The asset ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"8ca3711d-2063-4b07-9336-ee48f2a3ee43\",\n\t\"accountId\": \"30853db4-18ac-43dc-b00b-e119d24e8c2c\",\n\t\"referenceCode\": \"SCKTKD232\",\n\t\"type\": \"MultiFamily\",\n\t\"name\": \"34 Broadway street\",\n\t\"displayName\": \"34 Broadway street\",\n\t\"address\": {\n\t  \"line\": \"34 Broadway\",\n\t  \"city\": \"New York\",\n\t  \"state\": \"NY\",\n\t  \"country\": \"US\",\n\t  \"postalCode\": \"10006\"\n\t},\n\t\"metadata\": {},\n\t\"createdAt\": \"2019-03-6T22:34:01.000Z\",\n\t\"updatedAt\": \"2019-03-18T04:47:59.000Z\"\n}"}],"_postman_id":"2ac7d040-7fe9-4a99-88fe-08dfa2fced33"},{"name":"List assets","id":"cc4c27aa-559a-4f78-85d8-c06582f55a62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/assets","urlObject":{"path":["v0.1","assets"],"host":["{{apiHost}}"],"query":[],"variable":[]}},"response":[{"id":"4af013bf-6e12-4753-a2b3-f7c847219746","name":"List the first 10 assets","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/assets?offset=0&limit=10&sortBy=displayName&descending=false","host":["{{apiHost}}"],"path":["v0.1","assets"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"10"},{"key":"sortBy","value":"displayName"},{"key":"descending","value":"false"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"totalItems\": 2,\n\t\"items\": [...]\n}"},{"id":"7b54fe04-b732-40ed-83a8-3ff1e26540df","name":"List connected account assets (coming soon)","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"},{"key":"X-Account-Id","value":"4b0de4ae-c765-43b8-8af7-862bdb2b6c16","type":"text"}],"url":"{{apiHost}}/v0.1/assets"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"totalItems\": 2,\n\t\"items\": [...]\n}"}],"_postman_id":"cc4c27aa-559a-4f78-85d8-c06582f55a62"},{"name":"Create asset (coming soon)","id":"15e65816-410b-4c96-a674-26ba63cfc83a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/assets","urlObject":{"path":["v0.1","assets"],"host":["{{apiHost}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"15e65816-410b-4c96-a674-26ba63cfc83a"},{"name":"Update asset","id":"ccf38359-bb2a-4343-bb52-67d041d64738","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{currentAccessToken}}"},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"settings\":{\"addressLeaseMapping\": {\"addressFromIntegration\": true}}\n}","options":{"raw":{"language":"json"}}},"url":"{{apiHost}}/api/v0.1/assets/:assetId","urlObject":{"path":["api","v0.1","assets",":assetId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The asset ID</p>\n","type":"text/plain"},"type":"string","value":"{{assetId}}","key":"assetId"}]}},"response":[{"id":"e976b0d7-01ca-447a-a1e0-31ccdd91d8c4","name":"Update connected account asset metadata (coming soon)","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"X-Account-Id","value":"4b0de4ae-c765-43b8-8af7-862bdb2b6c16","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"metadata[myForeignKey]","value":"123456789","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/assets/:assetId","host":["{{apiHost}}"],"path":["v0.1","assets",":assetId"],"variable":[{"key":"assetId","value":"","type":"string","description":"The asset ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"ccf38359-bb2a-4343-bb52-67d041d64738"}],"id":"bfcf30d4-dd22-447c-b477-2b7ba4bfe3f0","description":"<p>Assets are entities that represent actual assets related to the account such as a multi family building or a portfolio of single family homes.</p>\n<p>There are currently two types of assets: <code>MultiFamily</code> and <code>Portfolio</code>. The difference between them is that a <code>MultiFamily</code> asset has an address and <code>Portfolio</code> doesn’t.<br />\nWhen creating a lease on a <code>Portfolio</code> asset, you will have to supply an address as well.\n<br /><br /></p>\n<h3 id=\"the-asset-data-type\">The Asset Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>UUID</td>\n<td>The account that created the asset</td>\n</tr>\n<tr>\n<td>referenceCode</td>\n<td>String</td>\n<td>A human readable unique identifier</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>Either <code>MultiFamily</code> or <code>Portfolio</code></td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>The asset’s name for the landlord</td>\n</tr>\n<tr>\n<td>displayName</td>\n<td>String</td>\n<td>The asset’s name that the tenants will see</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Address or [Address]</td>\n<td>Either one or multiple addresses listed on the asset</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>ISO</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>ISO</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Custom key-value store</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"be0ba14e-83f8-4d38-8177-1d6f322f9840","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"08ead9d7-ff85-4c64-a0a4-77e5871063fa","type":"text/javascript","exec":[""]}}],"_postman_id":"bfcf30d4-dd22-447c-b477-2b7ba4bfe3f0"},{"name":"Beneficiaries (coming soon)","item":[{"name":"Create beneficiary","id":"40a98e3b-d351-4094-ac5d-fbab425ea410","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"string  (required)","description":"<p>The business name, must be at least 5 characters.</p>\n","type":"text"},{"key":"type","value":"string  (required)","description":"<p>On of the following: Company, Individual</p>\n","type":"text"},{"key":"subType","value":"String","description":"<p>One of the following company sub types:  CORP, LLC, SOLE-PROPRIETORSHIP, Estate, IRA, TRUST</p>\n","type":"text"},{"key":"address","value":"Address","description":"<p>An object containing information about the address of the beneficiary</p>\n","type":"text"},{"key":"taxId","value":"String","description":"<p>EIN construct of a 9 characters string</p>\n","type":"text"},{"key":"phoneNumber","value":"String","description":"<p>The phone number associated with the beneficiary</p>\n","type":"text"},{"key":"email","value":"string","description":"<p>An email address associated to the beneficiary</p>\n","type":"text"},{"key":"dob","value":"Date","description":"<p>Beneficiary's date-of-birth(individual)/formation-date(company</p>\n","type":"text"},{"key":"representatives","value":"[Representative]","description":"<p>An array of objects containing information about the beneficiary's representatives</p>\n","type":"text"},{"key":"metadata","value":"Object","description":"<p>Set of key-value data that can be attached to an account, may be used for any additional information necessary.</p>\n","type":"text"}]},"url":"{{apiHost}}/v0.1/account/:accountId/beneficiaries","urlObject":{"path":["v0.1","account",":accountId","beneficiaries"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The account id</p>\n","type":"text/plain"},"type":"any","value":"uuid  (required)","key":"accountId"}]}},"response":[],"_postman_id":"40a98e3b-d351-4094-ac5d-fbab425ea410"},{"name":"Add representative","id":"bd063b6b-adb0-4ed8-b454-b5d9a7059fbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","type":"text","value":"string"},{"key":"lastName","type":"text","value":"string"},{"key":"ssnLastFour","type":"text","value":"String"},{"key":"phoneNumber","type":"text","value":"String"},{"key":"email","type":"text","value":"string  (required)"},{"key":"dob","type":"text","value":"Date"}]},"url":"{{apiHost}}/v0.1/beneficiary/:beneficiaryId/representative","urlObject":{"path":["v0.1","beneficiary",":beneficiaryId","representative"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The beneficiary id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"beneficiaryId"}]}},"response":[],"_postman_id":"bd063b6b-adb0-4ed8-b454-b5d9a7059fbc"},{"name":"Update representative","id":"232140d2-e117-43d4-8ee7-ca34d3854544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","type":"text","value":"string"},{"key":"lastName","type":"text","value":"string"},{"key":"ssnLastFour","type":"text","value":"String"},{"key":"phoneNumber","type":"text","value":"String"},{"key":"dob","type":"text","value":"Date"}]},"url":"{{apiHost}}/v0.1/beneficiary/:beneficiaryId/representative/:representativeId","urlObject":{"path":["v0.1","beneficiary",":beneficiaryId","representative",":representativeId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The beneficiary id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"beneficiaryId"},{"description":{"content":"<p>The representative id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"representativeId"}]}},"response":[],"_postman_id":"232140d2-e117-43d4-8ee7-ca34d3854544"},{"name":"Update beneficiary","id":"9e2bd3fe-5d67-41a4-b358-7ef618da4928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"string  (required)","description":"<p>The business name, must be at least 5 characters.</p>\n","type":"text"},{"key":"type","value":"string  (required)","description":"<p>On of the following: Company, Individual</p>\n","type":"text"},{"key":"subType","value":"String","description":"<p>One of the following company sub types:  CORP, LLC, SOLE-PROPRIETORSHIP, Estate, IRA, TRUST</p>\n","type":"text"},{"key":"address","value":"Address","description":"<p>An object containing information about the address of the beneficiary</p>\n","type":"text"},{"key":"taxId","value":"String","description":"<p>EIN construct of a 9 characters string</p>\n","type":"text"},{"key":"phoneNumber","value":"String","description":"<p>The phone number associated with the beneficiary</p>\n","type":"text"},{"key":"email","value":"string","description":"<p>An email address associated to the beneficiary</p>\n","type":"text"},{"key":"dob","value":"Date","description":"<p>Beneficiary's date-of-birth(individual)/formation-date(company</p>\n","type":"text"},{"key":"metadata","value":"Object","description":"<p>Set of key-value data that can be attached to an account, may be used for any additional information necessary.</p>\n","type":"text"}]},"url":"{{apiHost}}/v0.1/beneficiaries/:beneficiaryId","urlObject":{"path":["v0.1","beneficiaries",":beneficiaryId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The beneficiary id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"beneficiaryId"}]}},"response":[],"_postman_id":"9e2bd3fe-5d67-41a4-b358-7ef618da4928"},{"name":"Get beneficiary","id":"0a591ef1-e48d-4c1d-9a42-8fe99c34f584","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{apiHost}}/v0.1/beneficiaries/:beneficiaryId","description":"<p>Get beneficiary by his Id.</p>\n<h3 id=\"returns\">Returns</h3>\n<p>If succeed, return the beneficiary object.<br />Return an <a href=\"https://doc01.myobligo.com/#errors\">error</a> in case of non exist beneficiary id.</p>\n","urlObject":{"path":["v0.1","beneficiaries",":beneficiaryId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The beneficiary id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"beneficiaryId"}]}},"response":[],"_postman_id":"0a591ef1-e48d-4c1d-9a42-8fe99c34f584"},{"name":"List beneficieries","id":"b224c398-f1b6-4bdd-bc2f-97afb2aa71ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{apiHost}}/v0.1/accounts/:accountId/beneficiaries?sortBy=string&offset=integer&limit=integer&descending =boolean","description":"<p>Get a list of all the beneficiaries of your account.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<p><strong>search</strong> (optional)</p>\n<p><strong>limit</strong> (optional)</p>\n<p>Limit the number of objects to be returned.</p>\n<p><strong>offset</strong> (optional)</p>\n<p>Mark the starting index of the returned objects, the objects that returns will be the only objects that come after this index. For example if you set it to 10 in a 20 objects list, only the 10 last objects in the list will be returned.</p>\n<p><strong>sortBy</strong> (optional)</p>\n<p>Sort the list by one of the beneficiary data type attributes.<br />Default is list sorted by beneficiary creation time.</p>\n<p><strong>descending</strong> (optional)<br />Boolean for sorting the list in descending order. Default is sorted in ascending order.</p>\n<h3 id=\"returns\">Returns</h3>\n<p>Return a list of beneficiary objects, filtered by the parameters.</p>\n","urlObject":{"path":["v0.1","accounts",":accountId","beneficiaries"],"host":["{{apiHost}}"],"query":[{"description":{"content":"<p>Supported values: 'id', 'name' and the various timestamp fields (default 'createdAt')</p>\n","type":"text/plain"},"key":"sortBy","value":"string"},{"description":{"content":"<p>A non negative value to offset the start the list by (default is 0)</p>\n","type":"text/plain"},"key":"offset","value":"integer"},{"description":{"content":"<p>A non negative value to limit the number of results to</p>\n","type":"text/plain"},"key":"limit","value":"integer"},{"description":{"content":"<p>A boolean inducating whether the result set should be ordered from top to bottom (default is false)</p>\n","type":"text/plain"},"key":"descending ","value":"boolean"}],"variable":[{"description":{"content":"<p>The account id</p>\n","type":"text/plain"},"type":"any","value":"","key":"accountId"}]}},"response":[],"_postman_id":"b224c398-f1b6-4bdd-bc2f-97afb2aa71ff"}],"id":"5651e491-5a89-4bb0-be3b-8bb0408944c2","description":"<h3 id=\"the-beneficiary-object-coming-soon\">The Beneficiary Object [<strong>Coming soon</strong>]</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>referenceCode</td>\n<td>String</td>\n<td>A human readable unique identifier</td>\n</tr>\n<tr>\n<td>accountId</td>\n<td>UUID</td>\n<td>The id of the account that created the beneficiary</td>\n</tr>\n<tr>\n<td>name</td>\n<td>String</td>\n<td>The beneficiary's business name</td>\n</tr>\n<tr>\n<td>address</td>\n<td><a href=\"#address\">Address</a></td>\n<td>An object containing information about the address of the beneficiary</td>\n</tr>\n<tr>\n<td>taxId</td>\n<td>String</td>\n<td>Beneficiary's EIN construct of a 9 characters string</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>One of the following types: Company, Individual</td>\n</tr>\n<tr>\n<td>subType</td>\n<td>String</td>\n<td>One of the following company sub types:  <br />CORP, LLC, SOLE-PROPRIETORSHIP, Estate, IRA, TRUST</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>String</td>\n<td>The phone number associated with the beneficiary</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>An email address associated to the beneficiary</td>\n</tr>\n<tr>\n<td>dob</td>\n<td>Date</td>\n<td>Beneficiary's date-of-birth(individual)/formation-date(company)</td>\n</tr>\n<tr>\n<td>representatives</td>\n<td><a href=\"#representative\">[Representative]</a></td>\n<td>An array of objects containing information about the beneficiary's representatives</td>\n</tr>\n<tr>\n<td>capabiliites</td>\n<td><a href=\"#capabilities\">Capabilities</a></td>\n<td>An object containing information about the state of the debit/credit capabilities</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>ISO</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>ISO</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Custom key-value store</td>\n</tr>\n</tbody>\n</table>\n</div><p><br /><br /></p>\n<h5 id></h5>\n<p><a href=\"representative\"></a>The Representative Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>dob</td>\n<td>Date</td>\n<td>Beneficiary's representative date of birth</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>String</td>\n<td>Beneficiary's representative first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>String</td>\n<td>Beneficiary's representative last name</td>\n</tr>\n<tr>\n<td>ssnLastFour</td>\n<td>String</td>\n<td>Last 4 digits of Beneficiary's representative SSN</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>String</td>\n<td>A phone number associated to the beneficiary's representative</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>An email address associated to the beneficiary's representative</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"-1\"></h5>\n<p><a href=\"capabilities\"></a>The Capabilities Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>credit</td>\n<td><a href=\"#capability\">Capability</a></td>\n<td>The details of the credit capability</td>\n</tr>\n<tr>\n<td>debit</td>\n<td><a href=\"#capability\">Capability</a></td>\n<td>The details of the debit capability</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"-2\"></h5>\n<p><a href=\"capability\"></a>The Capabily Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>enabled</td>\n<td>Boolean</td>\n<td>indicates if the capability can be used of not</td>\n</tr>\n<tr>\n<td>requirements</td>\n<td><a href=\"#requirements\">Requirements</a></td>\n<td>The requirements to enable the capability (or prevent it from being disabled)</td>\n</tr>\n</tbody>\n</table>\n</div><h5 id=\"-3\"></h5>\n<p><a href=\"Requirements\"></a>The Requirements Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>A Path to the Beneficiary's attribute the requirement relates to. For example: \"taxId\", \"representative.ssnLastFour\"</td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>A readable status, possible values are: Due, PendingVerification, Error</td>\n</tr>\n<tr>\n<td>errorCode</td>\n<td>String</td>\n<td>A programmer friendly error code that can be mapped to the error in verifying the requirements supplied data</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"11172d92-c304-48de-b06a-4f3f9c70fd64","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"821109dd-ed3d-4e31-9d72-ade6ae5eeecb","type":"text/javascript","exec":[""]}}],"_postman_id":"5651e491-5a89-4bb0-be3b-8bb0408944c2"},{"name":"Beneficiaries/Payment Methods (coming soon)","item":[{"name":"Create payment method","id":"31c517de-78e1-4acd-9912-3310ba1294cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>The bank account number</p>\n","key":"accountNumber","type":"text","value":"string (required)"},{"description":"<p>The bank account routing number</p>\n","key":"routingNumber","type":"text","value":"string (required)"},{"description":"<p>Name of the bank account holder as defined in the bank</p>\n","key":"holderName","type":"text","value":"String (required)"},{"description":"<p>The name of the payment method</p>\n","key":"title","type":"text","value":"String"}]},"url":"{{apiHost}}/v0.1/beneficiary/:beneficiaryId/payment-methods","urlObject":{"path":["v0.1","beneficiary",":beneficiaryId","payment-methods"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The beneficiary id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"beneficiaryId"}]}},"response":[],"_postman_id":"31c517de-78e1-4acd-9912-3310ba1294cb"},{"name":"Update payment method","id":"683cce47-6e4f-411a-8844-2972607d726d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>The name of the payment method</p>\n","key":"title","type":"text","value":"String"},{"key":"metadata","value":"Object","description":"<p>Set of key-value data that can be attached to an account, may be used for any additional information necessary.</p>\n","type":"text"}]},"url":"{{apiHost}}/v0.1/payment-methods/:paymentMethodId","urlObject":{"path":["v0.1","payment-methods",":paymentMethodId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The payment method id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"paymentMethodId"}]}},"response":[],"_postman_id":"683cce47-6e4f-411a-8844-2972607d726d"},{"name":"Get payment method","id":"b8ef034e-c060-4f6e-8f2b-7fb154484f8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/payment-methods/:paymentMethodId","urlObject":{"path":["v0.1","payment-methods",":paymentMethodId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The payment method id</p>\n","type":"text/plain"},"type":"any","value":"uudi","key":"paymentMethodId"}]}},"response":[],"_postman_id":"b8ef034e-c060-4f6e-8f2b-7fb154484f8b"},{"name":"List payment methods","id":"ed2d8caa-f8a3-44ee-91c6-97e1952fda3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"raw","raw":""},"url":"{{apiHost}}/v0.1/beneficiary/:beneficiaryId/payment-methods?sortBy=string&offset=integer&limit=integer&descending =boolean","urlObject":{"path":["v0.1","beneficiary",":beneficiaryId","payment-methods"],"host":["{{apiHost}}"],"query":[{"description":{"content":"<p>Supported values: 'id', 'title' and the various timestamp fields (default 'createdAt')</p>\n","type":"text/plain"},"key":"sortBy","value":"string"},{"description":{"content":"<p>A non negative value to offset the start the list by (default is 0)</p>\n","type":"text/plain"},"key":"offset","value":"integer"},{"description":{"content":"<p>A non negative value to limit the number of results to</p>\n","type":"text/plain"},"key":"limit","value":"integer"},{"description":{"content":"<p>A boolean inducating whether the result set should be ordered from top to bottom (default is false)</p>\n","type":"text/plain"},"key":"descending ","value":"boolean"}],"variable":[{"type":"any","value":"","key":"beneficiaryId"}]}},"response":[],"_postman_id":"ed2d8caa-f8a3-44ee-91c6-97e1952fda3c"}],"id":"1f458c64-7145-4427-a752-ce303cbbf9dc","description":"<h3 id=\"the-payment-method-object-coming-soon\">The Payment Method Object [<strong>Coming soon</strong>]</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>title</td>\n<td>String</td>\n<td>The name of the payment method</td>\n</tr>\n<tr>\n<td>attributes</td>\n<td><a href=\"#attributes\">Attributes</a></td>\n<td>A key-value object holding specific attributes of the payment method like type, holderName and more</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>ISO</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>ISO</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Custom key-value store</td>\n</tr>\n</tbody>\n</table>\n</div><p><br /><br /></p>\n<h5 id></h5>\n<p><a href=\"attributes\"></a>The Attributes Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The account type, one of: checking, savings</td>\n</tr>\n<tr>\n<td>lastFour</td>\n<td>String</td>\n<td>The last four digits of the bank account</td>\n</tr>\n<tr>\n<td>holderName</td>\n<td>String</td>\n<td>Name of the bank account holder as defined in the bank</td>\n</tr>\n<tr>\n<td>routingNumber</td>\n<td>String</td>\n<td>The routing number of the bank account</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"8d33e434-2d3f-4ce5-ad53-737519fb90a9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"de0cf7b6-f79f-49c6-864c-7761a6d53c4d","type":"text/javascript","exec":[""]}}],"_postman_id":"1f458c64-7145-4427-a752-ce303cbbf9dc"},{"name":"Leases","item":[{"name":"Get lease","id":"060160c9-397f-4fde-b3a8-fe77b910b847","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/leases/:leaseId","urlObject":{"path":["v0.1","leases",":leaseId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The Lease ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"leaseId"}]}},"response":[{"id":"b43cded3-fa59-4d26-b333-9de2b54a4f51","name":"Get lease","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId"],"variable":[{"key":"leaseId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1","type":"string","description":"The Lease ID"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"e78cfa5f-a48a-4f8e-b7d4-9b3f47615d98\",\n  \"referenceCode\": \"02L84T9N0\",\n  \"assetId\": \"00e24028-fea8-414a-b70f-50e2f46db4cb\",\n  \"unit\": \"test\",\n  \"startsAt\": \"2019-09-17\",\n  \"endsAt\": \"2020-09-16\",\n  \"address\": {\n    \"line\": \"12450b Burbank Boulevard\",\n    \"city\": \"Los Angeles\",\n    \"country\": \"US\",\n    \"state\": \"California\",\n    \"postalCode\": \"91607\"\n  },\n  \"rent\": 150000,\n  \"security\": {\n    \"deducted\": 0,\n    \"graceDays\": 45,\n    \"requiredAmount\": 150000,\n    \"availableAmount\": 150000,\n    \"status\": \"Approved\",\n    \"type\": \"BillingAuthorization\"\n  },\n  \"autoReleaseAt\": null,\n  \"metadata\": {},\n  \"createdAt\": \"2019-09-10T14:09:40.484Z\",\n  \"approvedAt\": \"2019-09-10T14:11:41.828Z\",\n  \"terminatedAt\": null\n}\n"}],"_postman_id":"060160c9-397f-4fde-b3a8-fe77b910b847"},{"name":"List leases","id":"4c29df6e-3beb-457e-9fe0-387011a52bd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/leases","urlObject":{"path":["v0.1","leases"],"host":["{{apiHost}}"],"query":[],"variable":[]}},"response":[{"id":"9a097724-37ed-4ffe-b4b2-d0d9aa58b0cf","name":"List first 10 leases","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{apiHost}}/v0.1/leases?offset=0&limit=10","host":["{{apiHost}}"],"path":["v0.1","leases"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"totalItems\": 78,\n\t\"items\": [...]\n}"},{"id":"9e056c4e-86b7-4c47-abb7-7a439a76942b","name":"Search for a specific lease","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":{"raw":"{{apiHost}}/v0.1/leases?search=john doe","host":["{{apiHost}}"],"path":["v0.1","leases"],"query":[{"key":"search","value":"john doe"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"totalItems\": 6,\n\t\"items\": [...]\n}"}],"_postman_id":"4c29df6e-3beb-457e-9fe0-387011a52bd0"},{"name":"Create lease","id":"a59d0e7e-d18a-4da6-bc85-63c2cb401c5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/leases","urlObject":{"path":["v0.1","leases"],"host":["{{apiHost}}"],"query":[],"variable":[]}},"response":[{"id":"5fd8457d-3f65-4a6b-8e19-13e851cb1fea","name":"Create lease with sub-resources","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"assetId","value":"00e24028-fea8-414a-b70f-50e2f46db4cb","type":"text"},{"key":"unit","value":"11B","type":"text"},{"key":"sendInvitation","value":"false","type":"text"},{"key":"security[requiredAmount]","value":"190000","type":"text"},{"key":"rent","value":"150000","type":"text"},{"key":"startsAt","value":"2019-12-11","type":"text"},{"key":"endsAt","value":"2020-12-10","type":"text"},{"key":"tenants[0][email]","value":"c103gKsGs5F7@myobligo.com","type":"text"},{"key":"tenants[0][firstName]","value":"Fake","type":"text"},{"key":"tenants[0][lastName]","value":"Fakeson","type":"text"},{"key":"tenants[0][phoneNumber]","value":"+12122222222","type":"text"},{"key":"tenants[0][leadTenant]","value":"true","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"{{apiHost}}/v0.1/leases"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"3a36a185-d0e8-4718-9f4a-0bca944724c1\"\n}\n"}],"_postman_id":"a59d0e7e-d18a-4da6-bc85-63c2cb401c5b"},{"name":"Terminate lease","id":"2af6a839-bb12-4ceb-b783-8335d76f69bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"{{apiHost}}/v0.1/leases/:leaseId/terminate","urlObject":{"path":["v0.1","leases",":leaseId","terminate"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The lease ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"leaseId"}]}},"response":[{"id":"6a79d116-0ba8-4eb9-ba92-5a8e3769e47f","name":"Terminate lease","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId/terminate","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId","terminate"],"variable":[{"key":"leaseId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1","type":"string","description":"The lease ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"2af6a839-bb12-4ceb-b783-8335d76f69bc"},{"name":"Update lease","id":"9e0ebefb-ec7d-453a-8334-ff17eee1840b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/leases/:leaseId","urlObject":{"path":["v0.1","leases",":leaseId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The Lease ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"leaseId"}]}},"response":[{"id":"da944832-c31d-4a5c-a49c-85bfbfc4683d","name":"Update lease unit and lease end date","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"endsAt","value":"2021-02-24","type":"text"},{"key":"unit","value":"15C","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId"],"variable":[{"key":"leaseId","value":"e78cfa5f-a48a-4f8e-b7d4-9b3f47615d98","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"updated\": true\n}"}],"_postman_id":"9e0ebefb-ec7d-453a-8334-ff17eee1840b"}],"id":"d5addb2c-86fd-446f-aed1-e444411e2ee2","description":"<p>Leases are the most important resources in the Obligo API.<br />\nA lease object may represent a lease with a tenant that’s already been approved by the landlord and needs to pay their security deposit and/or move-in payments, or an application for a new tenant.\n<br />\nThere are two components to the leases API:</p>\n<ul>\n<li><em>Security</em> - Either a cash deposit or a billing authorization</li>\n<li><em>Tenants</em> - A sub resource that includes the tenants' data, and allows managing Risk Analyses. (More on that in the Tenants and Risk Analyses sub-resources)</li>\n</ul>\n<br />\nThese 2 components are independent, can be requested separately and in any order that suits your flow. \nThe lease object in itself does not have a status since the components related to it all have independent statuses.\n<br /><br />\n\n<h3 id=\"the-security-status\">The Security Status</h3>\n<p><strong>Draft</strong> - Not all required fields have been provided on the lease.</p>\n<p><strong>Pending</strong> - Pending the tenant's action. At this point - the lead tenant should be sent to their invitation link.</p>\n<p><strong>PendingConfirmation</strong> - The tenant has initiated a payment, and it has not been approved yet.</p>\n<p><strong>Approved</strong> - Obligo has approved that this tenant has provided the required security.</p>\n<p><strong>Canceled</strong> - The lease was terminated prior to Obligo approving the security component.</p>\n<p><strong>Released</strong> - The lease was terminated after Obligo approved the security component.\n<br /><br /></p>\n<h3 id=\"promoting-the-security-status-from-draft-to-pending\">Promoting the Security Status from Draft to Pending</h3>\n<p>In order to promote the security status from 'Draft' to 'Pending', the following data must be provided on the lease, in any order that suits your flow:</p>\n<ul>\n<li>Lease dates (startsAt, endsAt)</li>\n<li>Rent amount (rent)</li>\n<li>Required security amount (security.requiredAmount)</li>\n<li>The asset associated to this lease (assetId)</li>\n<li>A lead tenant</li>\n</ul>\n<p><br /><br /></p>\n<h3 id=\"exmaple\">Exmaple</h3>\n<p>In order to understand the lease flow, please review the following diagram:</p>\n<p><img src=\"https://cdn.myobligo.com/img/api-docs/lease-flow-1.png\" alt=\"Lease flow\" /></p>\n<p><br /><br /></p>\n<h2 id=\"data-types\">Data Types</h2>\n<h3 id=\"the-lease-data-type\">The Lease Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>referenceCode</td>\n<td>String</td>\n<td>A human readable unique identifier</td>\n</tr>\n<tr>\n<td>startsAt</td>\n<td>String</td>\n<td>Lease start date (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>endsAt</td>\n<td>String</td>\n<td>Lease end date (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>assetId</td>\n<td>UUID</td>\n<td>The asset related to this lease</td>\n</tr>\n<tr>\n<td>unit</td>\n<td>String</td>\n<td>The unit name</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Address</td>\n<td>If the asset type is <code>Portfolio</code>, an address should be supplied</td>\n</tr>\n<tr>\n<td>rent</td>\n<td>Number</td>\n<td>The monthly rent amount (in cents)</td>\n</tr>\n<tr>\n<td>managementUrl</td>\n<td>String</td>\n<td>The url that leads to Obligo's platform</td>\n</tr>\n<tr>\n<td>security</td>\n<td>Security</td>\n<td>Data related to the security deposit</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Metadata related to this lease</td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>ISO</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>approvedAt</td>\n<td>ISO</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>terminatedAt</td>\n<td>ISO</td>\n<td>Termination timestamp</td>\n</tr>\n</tbody>\n</table>\n</div><p><br /><br /></p>\n<h3 id=\"the-security-data-type\">The Security Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>requiredAmount</td>\n<td>Number</td>\n<td>The required security amount (in cents)</td>\n</tr>\n<tr>\n<td>availableAmount</td>\n<td>Number</td>\n<td>The security amount of provided by tenant/s (in cents)</td>\n</tr>\n<tr>\n<td>deducted</td>\n<td>Number</td>\n<td>The amount of security that was deducted from the billing authorization (in cents)</td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>Current security status.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>What is the security type provided. Either <code>BillingAuthorization</code> or <code>CashDeposit</code></td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"0d8f41e8-3ffb-4909-842b-479c65defaff","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0355da73-f82e-4f24-aca9-30186669b022","type":"text/javascript","exec":[""]}}],"_postman_id":"d5addb2c-86fd-446f-aed1-e444411e2ee2"},{"name":"Lease/Tenants","item":[{"name":"Get tenant","id":"dfc02736-9426-485a-b14e-a7f60a3915e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/tenants/:tenantId","description":"<p><code>leaseId</code> will be included in the response when getting a tenant.</p>\n","urlObject":{"path":["v0.1","tenants",":tenantId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The tenant ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenantId"}]}},"response":[{"id":"0e13f46b-c29a-4a49-8423-39b24cecae44","name":"Get tenant","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId"],"variable":[{"key":"tenantId","value":"","description":"The tenant ID"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"770dd0ce-f977-4e57-a334-29e24e8f96b0\",\n\t\"leaseId\": \"e78cfa5f-a48a-4f8e-b7d4-9b3f47615d98\",\n    \"leadTenant\": true,\n    \"firstName\": \"Fake\",\n    \"lastName\": \"Fakeson\",\n    \"email\": \"09yiugfghv@myobligo.com\",\n    \"phoneNumber\": \"+12122222222\",\n    \"invitationUrl\": \"https://tenants.myobligo.com/invitation/BMff2Z5htX9hExUfs3s\",\n    \"consents\": [\"BackgroundCheck\"],\n    \"dateOfBirth\": \"1993-06-17\",\n    \"lastAddress\": {\n\t    \"line\" : \"Mock Lane\",\n\t    \"city\" : \"Orangeburg\",\n\t    \"state\" : \"South Carolina\",\n\t\t\"country\" : \"US\",\n\t    \"postalCode\" : \"29118\"\n    },\n    \"ssnLastFour\": \"6789\",\n    \"metadata\": {},\n    \"invitationLastSentAt\": \"2019-09-09T12:08:12.441Z\",\n    \"invitationLastOpenedAt\": \"2019-09-10T14:10:15.541Z\"\n}"}],"_postman_id":"dfc02736-9426-485a-b14e-a7f60a3915e7"},{"name":"List tenants","id":"d7b49318-3ca5-444a-b73d-cdccac06e9e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/leases/:leaseId/tenants","urlObject":{"path":["v0.1","leases",":leaseId","tenants"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The lease ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"leaseId"}]}},"response":[{"id":"e4d61934-9255-4b90-abaa-c93d303bf06e","name":"List all tenants for a specific lease","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId/tenants","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId","tenants"],"variable":[{"key":"leaseId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1","type":"string"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"totalItems\": 1,\n\t\"items\": [...]\n}"}],"_postman_id":"d7b49318-3ca5-444a-b73d-cdccac06e9e2"},{"name":"Create tenant","id":"3919132b-f070-4391-8a69-3553fde643e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"{{apiHost}}/v0.1/leases/:leaseId/tenants","urlObject":{"path":["v0.1","leases",":leaseId","tenants"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The lease ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"leaseId"}]}},"response":[{"id":"bbc978fc-97d8-4f59-abee-08fb3c46428f","name":"Create tenant","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Fake","type":"text"},{"key":"lastName","value":"Fakeson","type":"text"},{"key":"email","value":"fake_fakeson11@myobligo.com","type":"text"},{"key":"leadTenant","value":"true","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId/tenants","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId","tenants"],"variable":[{"key":"leaseId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1","type":"string","description":"The tenant ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n\tid: \"770dd0ce-f977-4e57-a334-29e24e8f96b0\"\n}"}],"_postman_id":"3919132b-f070-4391-8a69-3553fde643e4"},{"name":"Update tenant","id":"bffd57d2-4e57-43da-85b5-ea3927f8aecb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/tenants/:tenantId","description":"<p><strong>Note</strong> that in order to update tenant consents, a timestamp and tenant ip address must be provided with the request.<br />\nSee 'Update tenant consent' example request for more details.</p>\n","urlObject":{"path":["v0.1","tenants",":tenantId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The tenant ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenantId"}]}},"response":[{"id":"846fce5b-5b4f-42d0-b7a9-f048a02c5bfc","name":"Update tenant consent","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"consent[types]","value":"[\"BackgroundCheck\", \"CreditReport\"]","type":"text"},{"key":"consent[timestamp]","value":"2019-12-31T18:22:20.000Z","type":"text"},{"key":"consent[ipAddress]","value":"78.157.67.148","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId"],"variable":[{"key":"tenantId","value":"","type":"string","description":"The tenant ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{}"},{"id":"8dd78c9f-1faf-4933-bb9d-0998b7acec00","name":"Update tenant first and last name","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"firstName","value":"Real","type":"text"},{"key":"lastName","value":"Realson","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId"],"variable":[{"key":"tenantId","value":"","type":"string","description":"The Lease ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"bffd57d2-4e57-43da-85b5-ea3927f8aecb"},{"name":"Delete tenant","id":"dd912c00-0673-4911-a5b7-78473f53dc77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/tenants/:tenantId","urlObject":{"path":["v0.1","tenants",":tenantId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The tenant ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenantId"}]}},"response":[{"id":"75fbd960-6891-45bb-b3a3-0dbb5bbf6438","name":"Delete tenant","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId"],"variable":[{"key":"tenantId","value":"cdc024ed-2de1-44df-9965-1adf22c067c4","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"dd912c00-0673-4911-a5b7-78473f53dc77"},{"name":"Send invitation email to tenant","id":"9fbeaf3f-981f-4fe7-becf-d524f595f12e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/tenants/:tenantId/send-invitation","description":"<p>Sending and invitation email to the tenant is only possible when the security status is <code>Pending</code></p>\n","urlObject":{"path":["v0.1","tenants",":tenantId","send-invitation"],"host":["{{apiHost}}"],"query":[],"variable":[{"type":"string","value":"","key":"tenantId"}]}},"response":[{"id":"721ff2fd-fe05-4c04-aa19-3e41d5e8c980","name":"Send invitation email to tenant","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId/send-invitation","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId","send-invitation"],"variable":[{"key":"tenantId","value":"decb0b70-06f6-4e4c-9630-1bb7941c7c70"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"9fbeaf3f-981f-4fe7-becf-d524f595f12e"},{"name":"Create a user session","id":"7aa841ba-dd39-4814-98ae-ce0077a00002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>The ID of the tenant for who will be accessing the Obligo embedded experience</p>\n","key":"tenantId","type":"text","value":"uuid  (required)"}]},"url":"{{apiHost}}/v0.1/leases/:leaseId/user-sessions","urlObject":{"path":["v0.1","leases",":leaseId","user-sessions"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The lease id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"leaseId"}]}},"response":[],"_postman_id":"7aa841ba-dd39-4814-98ae-ce0077a00002"}],"id":"f59aaba0-a7da-4a5c-a691-9d0d78bd1b17","description":"<p>Tenants are a subresource of a lease.</p>\n<p>Each lease must have a <em>lead tenant</em>, who is responsible for completing the onboarding flow in the Obligo platform.<br />\nThere can only be one lead tenant per lease.\n<br /><br /></p>\n<h3 id=\"the-tenant-data-type\">The Tenant Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>String</td>\n<td>The tenant's first name</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>String</td>\n<td>The tenant's last name</td>\n</tr>\n<tr>\n<td>phoneNumber</td>\n<td>String</td>\n<td>The tenant's phone number</td>\n</tr>\n<tr>\n<td>email</td>\n<td>String</td>\n<td>The tenant's email</td>\n</tr>\n<tr>\n<td>leadTenant</td>\n<td>Boolean</td>\n<td>An indicator as to wether or not this is the lead tenant</td>\n</tr>\n<tr>\n<td>invitationUrl</td>\n<td>URL</td>\n<td>A url for the tenant's onboarding flow in the Obligo platform, value will be null for non-lead tenants</td>\n</tr>\n<tr>\n<td>dateOfBirth</td>\n<td>String</td>\n<td>The tenant's date of birth (YYYY-MM-DD)</td>\n</tr>\n<tr>\n<td>lastAddress</td>\n<td>Address</td>\n<td>The tenant's last address</td>\n</tr>\n<tr>\n<td>ssnLastFour</td>\n<td>String</td>\n<td>The tenant's Social Security number last four digits.<br /><em>Note</em>: In order to update the tenant's SSN, you will need to pass an <code>ssn</code> property with the request</td>\n</tr>\n<tr>\n<td>consents</td>\n<td>[String]</td>\n<td>The tenant report types that can be run for this tenant during a risk analysis. Currently allowed types: <code>BackgroundCheck</code>, <code>CreditReport</code>, <code>CriminalRecordsCheck</code></td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Custom key-value store</td>\n</tr>\n<tr>\n<td>invitationLastSentAt</td>\n<td>ISO</td>\n<td>Timestamp of the last time the invitation was sent to the tenant, value will be null for non-lead tenants</td>\n</tr>\n<tr>\n<td>invitationLastOpenedAt</td>\n<td>ISO</td>\n<td>Timestamp of the last time the invitation was opened by the tenant, value will be null for non-lead tenants</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"06b86c73-7be1-4bc0-815f-36b10714b6e4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"c3effe2f-392f-4392-9cd3-11667c8696ce","type":"text/javascript","exec":[""]}}],"_postman_id":"f59aaba0-a7da-4a5c-a691-9d0d78bd1b17"},{"name":"Lease/Tenants/Risk Analyses","item":[{"name":"Get risk analysis","id":"2975b5c0-147e-4568-ba16-823b6f478a31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysisId","urlObject":{"path":["v0.1","risk-analyses",":riskAnalysisId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The risk analysis ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"riskAnalysisId"}]}},"response":[{"id":"6ec255c0-f981-4591-a5bb-7087230f5a94","name":"Get risk analysis with Criminal records check","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysisId","host":["{{apiHost}}"],"path":["v0.1","risk-analyses",":riskAnalysisId"],"variable":[{"key":"riskAnalysisId","value":"07ffdcf0-a228-4d47-8b5f-e0fca7a25b8d","type":"string","description":"The risk analysis ID"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"07ffdcf0-a228-4d47-8b5f-e0fca7a25b8d\",\n    \"tenantId\": \"651fb640-283a-47cd-9d92-f84688ac1280\",\n    \"status\": \"Completed\",\n    \"failureReason\": null,\n    \"reports\": [\n        {\n            \"type\": \"CreditReport\",\n            \"status\": \"Completed\",\n            \"result\": {\n                \"matchFound\": true,\n                \"score\": 660,\n                \"flags\": {\n                    \"red\": [\n                        \"Report shows a high percentage of credit used.\"\n                    ],\n                    \"green\": []\n                },\n                \"publicRecords\": {\n                    \"bankruptcies\": \"Warning\",\n                    \"collections\": \"Cleared\",\n                    \"legalItems\": \"Cleared\"\n                },\n                \"debt\": {\n                    \"totalDebt\": 0,\n                    \"revolvingCredit\": {\n                        \"totalBalance\": \"365.00\",\n                        \"maxTotalLimit\": \"0.00\",\n                        \"percentCreditUsed\": null,\n                        \"numberOfCards\": 1,\n                        \"pastDueAmount\": \"0.00\",\n                        \"latePayments30\": 0,\n                        \"latePayments60\": 0,\n                        \"latePayments90\": 0,\n                        \"monthlyPayments\": \"10.00\"\n                    },\n                    \"otherCredit\": {\n                        \"totalBalance\": null,\n                        \"maxTotalLimit\": null,\n                        \"percentCreditUsed\": null,\n                        \"numberOfCards\": null,\n                        \"pastDueAmount\": null,\n                        \"latePayments30\": null,\n                        \"latePayments60\": null,\n                        \"latePayments90\": null,\n                        \"monthlyPayments\": null\n                    },\n                    \"mortgageLoans\": {\n                        \"totalBalance\": null,\n                        \"maxTotalLimit\": null,\n                        \"percentCreditUsed\": null,\n                        \"numberOfMortgages\": null,\n                        \"pastDueAmount\": null,\n                        \"latePayments30\": null,\n                        \"latePayments60\": null,\n                        \"latePayments90\": null,\n                        \"monthlyPayments\": null\n                    },\n                    \"autoLoans\": {\n                        \"totalBalance\": null,\n                        \"maxTotalLimit\": null,\n                        \"percentCreditUsed\": null,\n                        \"numberOfLoans\": null,\n                        \"pastDueAmount\": null,\n                        \"latePayments30\": null,\n                        \"latePayments60\": null,\n                        \"latePayments90\": null,\n                        \"monthlyPayments\": null\n                    },\n                    \"studentLoans\": {\n                        \"totalBalance\": null,\n                        \"maxTotalLimit\": null,\n                        \"percentCreditUsed\": null,\n                        \"numberOfLoans\": null,\n                        \"pastDueAmount\": null,\n                        \"latePayments30\": null,\n                        \"latePayments60\": null,\n                        \"latePayments90\": null,\n                        \"monthlyPayments\": null\n                    },\n                    \"otherDebts\": {\n                        \"totalBalance\": null,\n                        \"maxTotalLimit\": null,\n                        \"percentCreditUsed\": null,\n                        \"numberOfDebts\": null,\n                        \"pastDueAmount\": null,\n                        \"latePayments30\": null,\n                        \"latePayments60\": null,\n                        \"latePayments90\": null,\n                        \"monthlyPayments\": null\n                    }\n                }\n            }\n        },\n        {\n            \"type\": \"CriminalRecordsCheck\",\n            \"status\": \"Completed\",\n            \"result\": {\n                \"score\": \"Warning\",\n                \"certnScore\": \"30.40\",\n                \"flags\": {\n                    \"red\": [\n                        \"Alerts discovered.\"\n                    ],\n                    \"green\": []\n                },\n                \"sources\": [\n                    {\n                        \"type\": \"Criminal Court Database Record Check\",\n                        \"state\": \"OH\",\n                        \"status\": \"Complete\"\n                    }\n                ],\n                \"ssnVerification\": [\n                    {\n                        \"result\": \"NoDiscrepancy\",\n                        \"status\": \"OHIO In 1979-1981\"\n                    }\n                ],\n                \"criminalCases\": [\n                    [\n                        {\n                            \"description\": \"Breach/Breach Of Peace, Nonaggravated\",\n                            \"type\": \"Felony\",\n                            \"dispositions\": [\n                                {\n                                    \"offenseDescription\": \"Excessive Speeding 064/55\",\n                                    \"offenseType\": \"Citation\",\n                                    \"description\": \"Not Responsible\",\n                                    \"date\": \"1997-03-06\"\n                                },\n                                {\n                                    \"offenseDescription\": \"Speeding 064/55\",\n                                    \"offenseType\": \"Infraction\",\n                                    \"description\": \"Responsible\",\n                                    \"date\": \"1995-03-06\"\n                                }\n                            ],\n                            \"arrests\": [\n                                {\n                                    \"offenseDescription\": \"Breach/Breach Of Peace, Highly Aggravated\",\n                                    \"offenseType\": \"Felony\",\n                                    \"date\": \"2016-02-12\"\n                                },\n                                {\n                                    \"offenseDescription\": \"Breach/Breach Of Peace, Nonaggravated\",\n                                    \"offenseType\": \"Misdemeanor\",\n                                    \"date\": \"2013-02-12\"\n                                }\n                            ],\n                            \"sentences\": [\n                                {\n                                    \"type\": \"Fine\",\n                                    \"duration\": null,\n                                    \"amount\": \"25.00\",\n                                    \"effectiveDate\": \"2000-12-12\"\n                                },\n                                {\n                                    \"type\": \"Costs\",\n                                    \"duration\": \"1 Day\",\n                                    \"amount\": \"60.00\",\n                                    \"effectiveDate\": null\n                                }\n                            ]\n                        }\n                    ]\n                ]\n            }\n        }\n    ]\n}"},{"id":"fa08dc52-67d3-4a63-bff4-93ff5809a31d","name":"Get risk analysis","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":{"raw":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysisId","host":["{{apiHost}}"],"path":["v0.1","risk-analyses",":riskAnalysisId"],"variable":[{"key":"riskAnalysisId","value":"07ffdcf0-a228-4d47-8b5f-e0fca7a25b8c"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"07ffdcf0-a228-4d47-8b5f-e0fca7a25b8c\",\n\t\"tenantId\": \"651fb640-283a-47cd-9d92-f84688ac1280\",\n\t\"status\": \"Completed\",\n\t\"failureReason\": null,\n\t\"reports\": [\n\t\t{\n\t\t\t\"type\": \"CreditReport\",\n            \"status\": \"Completed\",\n\t\t\t\"result\": {\n\t\t\t\t\"matchFound\": true,\n\t\t\t\t\"score\": 660,\n\t\t\t\t\"flags\": {\n\t\t            \"red\": [\n\t\t              \"Report shows a high percentage of credit used.\"\n\t\t            ],\n\t\t            \"green\": []\n\t        \t},\n\t\t\t\t\"publicRecords\": {\n\t\t\t\t\t\"bankruptcies\": \"Warning\",\n    \t\t\t\t\"collections\": \"Cleared\",\n    \t\t\t\t\"legalItems\": \"Cleared\"\n\t\t\t\t},\n\t\t\t\t \"debt\" : {\n                    \"totalDebt\" : 0,\n                    \"revolvingCredit\" : {\n                        \"totalBalance\" : \"365.00\",\n                        \"maxTotalLimit\" : \"0.00\",\n                        \"percentCreditUsed\" : null,\n                        \"numberOfCards\" : 1,\n                        \"pastDueAmount\" : \"0.00\",\n                        \"latePayments30\" : 0,\n                        \"latePayments60\" : 0,\n                        \"latePayments90\" : 0,\n                        \"monthlyPayments\" : \"10.00\"\n                    },\n                    \"otherCredit\" : {\n                        \"totalBalance\" : null,\n                        \"maxTotalLimit\" : null,\n                        \"percentCreditUsed\" : null,\n                        \"numberOfCards\" : null,\n                        \"pastDueAmount\" : null,\n                        \"latePayments30\" : null,\n                        \"latePayments60\" : null,\n                        \"latePayments90\" : null,\n                        \"monthlyPayments\" : null\n                    },\n                    \"mortgageLoans\" : {\n                        \"totalBalance\" : null,\n                        \"maxTotalLimit\" : null,\n                        \"percentCreditUsed\" : null,\n                        \"numberOfMortgages\" : null,\n                        \"pastDueAmount\" : null,\n                        \"latePayments30\" : null,\n                        \"latePayments60\" : null,\n                        \"latePayments90\" : null,\n                        \"monthlyPayments\" : null\n                    },\n                    \"autoLoans\" : {\n                        \"totalBalance\" : null,\n                        \"maxTotalLimit\" : null,\n                        \"percentCreditUsed\" : null,\n                        \"numberOfLoans\" : null,\n                        \"pastDueAmount\" : null,\n                        \"latePayments30\" : null,\n                        \"latePayments60\" : null,\n                        \"latePayments90\" : null,\n                        \"monthlyPayments\" : null\n                    },\n                    \"studentLoans\" : {\n                        \"totalBalance\" : null,\n                        \"maxTotalLimit\" : null,\n                        \"percentCreditUsed\" : null,\n                        \"numberOfLoans\" : null,\n                        \"pastDueAmount\" : null,\n                        \"latePayments30\" : null,\n                        \"latePayments60\" : null,\n                        \"latePayments90\" : null,\n                        \"monthlyPayments\" : null\n                    },\n                    \"otherDebts\" : {\n                        \"totalBalance\" : null,\n                        \"maxTotalLimit\" : null,\n                        \"percentCreditUsed\" : null,\n                        \"numberOfDebts\" : null,\n                        \"pastDueAmount\" : null,\n                        \"latePayments30\" : null,\n                        \"latePayments60\" : null,\n                        \"latePayments90\" : null,\n                        \"monthlyPayments\" : null\n                    }\n                }\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"BackgroundCheck\",\n            \"status\": \"Completed\",\n\t\t\t\"result\": {\n\t\t\t\t\"score\" : \"Pass\",\n\t\t\t\t\"certnScore\" : \"77.60\",\n\t\t\t\t\"flags\" : {\n\t\t\t        \"red\" : [],\n\t\t\t        \"green\" : [\n\t\t\t        \t\"No alerts found.\"\n\t\t\t        ]\n\t\t\t    },\n\t\t\t    \"criminal\": \"Cleared\",\n\t\t\t    \"fraud\": \"Cleared\",\n\t\t\t    \"sexOffender\": \"Cleared\",\n\t\t\t    \"knownAffiliations\": \"Cleared\"\n\t\t\t}\n\t\t}\n\t]\n}"}],"_postman_id":"2975b5c0-147e-4568-ba16-823b6f478a31"},{"name":"List risk analyses","id":"45adffb1-4383-4cad-9342-b272d5e6f438","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/tenants/:tenantId/risk-analyses","urlObject":{"path":["v0.1","tenants",":tenantId","risk-analyses"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The tenant ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenantId"}]}},"response":[{"id":"e66c9744-adb3-45ff-8fa5-802aabca9ee0","name":"List risk last 3 analyses","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId/risk-analyses?offset=0&limit=3","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId","risk-analyses"],"query":[{"key":"offset","value":"0"},{"key":"limit","value":"3"}],"variable":[{"key":"tenantId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"totalItems\": 3,\n\t\"items\": [...]\n}"}],"_postman_id":"45adffb1-4383-4cad-9342-b272d5e6f438"},{"name":"Create risk analysis","id":"1f69b4f6-d66b-44f1-bd7b-c5e55a99112b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/tenants/:tenantId/risk-analyses","urlObject":{"path":["v0.1","tenants",":tenantId","risk-analyses"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The tenant ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenantId"}]}},"response":[{"id":"99a28d20-1195-4838-8023-07e56057bb40","name":"Create risk analysis with a credit report and a background check","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"reports","value":"['CreditReport', 'BackgroundCheck']","type":"text"}]},"url":{"raw":"{{apiHost}}/v0.1/tenants/:tenantId/risk-reports","host":["{{apiHost}}"],"path":["v0.1","tenants",":tenantId","risk-reports"],"variable":[{"key":"tenantId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"UUID\"\n}"}],"_postman_id":"1f69b4f6-d66b-44f1-bd7b-c5e55a99112b"},{"name":"Delete risk analysis","id":"b32f4fc4-7736-463c-85c4-a455bd918e81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysesId","urlObject":{"path":["v0.1","risk-analyses",":riskAnalysesId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The risk analysis ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"riskAnalysesId"}]}},"response":[{"id":"0c841966-4ac4-4937-8825-28f8419e5d18","name":"Delete risk analysis","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysesId","host":["{{apiHost}}"],"path":["v0.1","risk-analyses",":riskAnalysesId"],"variable":[{"key":"riskAnalysesId","value":"07ffdcf0-a228-4d47-8b5f-e0fca7a25b8c"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"b32f4fc4-7736-463c-85c4-a455bd918e81"},{"name":"Export risk analysis pdf","id":"4e58c055-b85d-453a-9476-4fcd81dbbdb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysisId/pdf","description":"<p>Exporting the pdf is only possible if the risk analysis status is <code>PartiallyCompleted</code> or <code>Completed</code>.</p>\n","urlObject":{"path":["v0.1","risk-analyses",":riskAnalysisId","pdf"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The risk analysis ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"riskAnalysisId"}]}},"response":[{"id":"1dfacf7e-a34e-4106-8723-1282a95bde59","name":"Export risk analysis pdf","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/risk-analyses/:riskAnalysisId/pdf","host":["{{apiHost}}"],"path":["v0.1","risk-analyses",":riskAnalysisId","pdf"],"variable":[{"key":"riskAnalysisId","value":"9b63e90c-d5cb-4e80-bc4f-04807f8d030d"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"application/pdf","description":"","type":"text"},{"key":"Content-Disposition","value":"attachment; filename=TenantFirstName_TenantLastName-9b63e90c-d5cb-4e80-bc4f-04807f8d030d.pdf","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4e58c055-b85d-453a-9476-4fcd81dbbdb7"}],"id":"0741f261-0785-4dcc-830a-11014adc1404","description":"<p>Risk analyses allow API users to get different reports and risk metrices on a certain applicant. \n<br /><br />\n<strong>Important Note</strong> - <code>BackgroundCheck</code> report is being depracted and will soon be unavailable. It is recommended to use <code>CriminalRecordsCheck</code> instead.\n<br /><br /></p>\n<h3 id=\"required-data-on-the-tenant\">Required data on the tenant</h3>\n<p>In order to successfully run a risk analysis on a tenant, you will need to provide the following details through the tenant api:</p>\n<ul>\n<li>dateOfBirth</li>\n<li>lastAddress</li>\n<li>consents (for the report(s) you are requesting)</li>\n<li>ssn - optional for <code>CreditReport</code> or <code>BackgroundCheck</code> and required for <code>CriminalRecordsCheck</code>. When optional, providing the ssn reduces the chances of a mismatch greatly. The ssn is encrypted when saved and only the last four digits are shown on the resource.</li>\n</ul>\n<p><br /><br /></p>\n<h3 id=\"the-risk-analysis-data-type\">The Risk Analysis Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>tenantId</td>\n<td>UUID</td>\n<td>The tenant's unique identifier</td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>Either <code>Failed</code>, <code>InProgress</code>, <code>PartiallyCompleted</code> or <code>Completed</code></td>\n</tr>\n<tr>\n<td>failureReason</td>\n<td>String</td>\n<td>An error description, relevant only if the status is 'Failed'. (null by default)</td>\n</tr>\n<tr>\n<td>reports</td>\n<td>[TenantReport]</td>\n<td>The requested reports data</td>\n</tr>\n</tbody>\n</table>\n</div><p><br /><br /></p>\n<h3 id=\"the-tenant-report-data-type\">The Tenant Report Data Type</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>Either <code>CreditReport</code>, <code>BackgroundCheck</code> or <code>CriminalRecordsCheck</code></td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>Either <code>Failed</code>, <code>InProgress</code> or <code>Completed</code></td>\n</tr>\n<tr>\n<td>result</td>\n<td>Object</td>\n<td>The result data</td>\n</tr>\n</tbody>\n</table>\n</div><p><br /><br /></p>\n<h3 id=\"the-risk-analysis-status\">The Risk Analysis Status</h3>\n<p><strong>InProgress</strong> - Risk analysis is currently running.</p>\n<p><strong>PartiallyCompleted</strong> - Risk analysis has not completed yet, but some of the requested reports and is still running others.</p>\n<p><strong>Completed</strong> - Risk analysis is completed and the tenant report results are available.</p>\n<p><strong>Failed</strong> - Risk analysis failed to run. A description for the error can be found in the <code>failureReason</code> field.</p>\n<p><br /><br /></p>\n<h3 id=\"testing-failed-risk-analyses\">Testing Failed Risk Analyses</h3>\n<p><em><strong>Failure</strong></em><br />\nIn order to simulate a scenario where the risk analysis fails to run, set the tenant date of birth to <em>'1777-07-07'</em>.<br />\nThis will cause the risk analysis to return with a 'Failed' status.</p>\n<p><em><strong>No Match</strong></em><br />\nCreditReport reports may return a <em>no match found</em> result in cases where no information related to the tenant is found or the tenant's credit has been frozen.<br />\nIn order to simulate a scenario where a CreditReport report results in a <em>no match found</em>, set the tenant date of birth to <em>'1444-04-04'</em> and request a risk analysis with a single report of type CreditReport.<br />\nThis will cause the risk analysis to return a 'no match found' result ({matchFound: false}) for the CreditReport.</p>\n","event":[{"listen":"prerequest","script":{"id":"da652e12-37d7-469f-b573-9b6d8a69d54b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"757946c4-e38f-46d9-9986-f2d9084bd561","type":"text/javascript","exec":[""]}}],"_postman_id":"0741f261-0785-4dcc-830a-11014adc1404"},{"name":"Lease/Invoices","item":[{"name":"Create invoice","id":"cee4321d-a454-4113-bffd-0fe73c2ff685","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"lineItems[0][typeId]","value":"uuid  (required)","description":"<p>The payment type ID associated with this item</p>\n","type":"text"},{"key":"lineItems[0][amount]","value":"integer  (required)","description":"<p>A non negative integer representing the price of this item in cents</p>\n","type":"text"},{"key":"lineItems[0][description]","value":"string","description":"<p>A short human readable string describing the line item</p>\n","type":"text"},{"key":"context","value":"string (required)","description":"<p>The context of the invoice in the lease lifecycle</p>\n","type":"default"}]},"url":"{{apiHost}}/v0.1/leases/:leaseId/invoices","urlObject":{"path":["v0.1","leases",":leaseId","invoices"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The lease ID</p>\n","type":"text/plain"},"type":"string","value":"uuid","key":"leaseId"}]}},"response":[{"id":"47a51e67-90c6-42a7-8e96-03736151d643","name":"Create invoice","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"context\": \"Application\",\n    \"lineItems\": [\n        {\n            \"typeId\": \"10158f07-6692-442f-9842-ede57b22706e\",\n            \"amount\": 124300\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId/invoices","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId","invoices"],"variable":[{"key":"leaseId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1","type":"string"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1ece45bc-1377-4b83-b858-bd4e353723e6\"\n}"}],"_postman_id":"cee4321d-a454-4113-bffd-0fe73c2ff685"},{"name":"Get invoice","id":"bdf98b1e-3c18-48ea-ad87-e028ddeaa675","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/invoices/:invoiceId","urlObject":{"path":["v0.1","invoices",":invoiceId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"}]}},"response":[{"id":"9b5f538b-c4e8-40a9-ba1e-1073865e8f2f","name":"Get invoice","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/invoices/:invoiceId","host":["{{apiHost}}"],"path":["v0.1","invoices",":invoiceId"],"variable":[{"key":"invoiceId","value":"1ece45bc-1377-4b83-b858-bd4e353723e6"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"id\": \"1ece45bc-1377-4b83-b858-bd4e353723e6\",\r\n  \"status\": \"Ready\",\r\n  \"context\": \"Application\",\r\n  \"lineItems\": [\r\n    {\r\n      \"id\": \"4cb53f64-f97d-4795-8b5e-f32f98f5f909\",\r\n      \"typeId\": \"10158f07-6692-442f-9842-ede57b22706e\",\r\n      \"amount\": 124300,\r\n      \"description\": null,\r\n      \"tagIds\": []\r\n    }\r\n  ],\r\n  \"balance\": {\r\n      \"debit\": {\r\n        \"open\": 1000,\r\n        \"processing\": 0,\r\n        \"processed\": 123300\r\n      },\r\n      \"credit\": {\r\n        \"available\": 123300,\r\n        \"processing\": 0,\r\n        \"processed\": 0\r\n      },\r\n      \"refund\": {\r\n        \"pending\": 0,\r\n        \"processing\": 0,\r\n        \"processed\": 0\r\n      }\r\n  },\r\n\r\n  \"createdAt\": \"2020-05-13T12:37:58.000Z\",\r\n  \"updatedAt\": \"2020-05-13T12:37:59.000Z\",\r\n  \"finalizedAt\": \"2020-05-13T12:37:59.000Z\",\r\n  \"canceledAt\": \"2020-05-13T12:37:59.000Z\",\r\n  \"setteledAt\": \"2020-05-13T12:37:59.000Z\"\r\n}"}],"_postman_id":"bdf98b1e-3c18-48ea-ad87-e028ddeaa675"},{"name":"Update invoice line item","id":"4fabf135-dcec-4c13-b32f-6956f08caf67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"integer","description":"<p>A non negative integer representing the price of this item in cents</p>\n","type":"text"},{"key":"description","value":"string","description":"<p>A short human readable string describing the line item</p>\n","type":"text"},{"key":"tagIds","value":"array of strings","description":"<p>A list of tags that are related to this line item</p>\n","type":"default"}]},"url":"{{apiHost}}/v0.1/invoices/:invoiceId/line-items/:lineItemId","urlObject":{"path":["v0.1","invoices",":invoiceId","line-items",":lineItemId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"},{"description":{"content":"<p>The line item ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"lineItemId"}]}},"response":[{"id":"a412b310-3cd6-43a0-8983-c3a40e9efb37","name":"Update an invoice line item","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 80000,\n    \"description\": \"Application fee for Jerry and Elaine\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/v0.1/invoices/:invoiceId/line-items/:lineItemId","host":["{{apiHost}}"],"path":["v0.1","invoices",":invoiceId","line-items",":lineItemId"],"variable":[{"key":"invoiceId","value":"1ece45bc-1377-4b83-b858-bd4e353723e6"},{"key":"lineItemId","value":"8c373e25-ffd3-490a-95a2-3efcbefcfe99"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"},{"id":"407315a3-38d5-4733-b78d-5c493847f5de","name":"Update an invoice line item tags","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"tagIds\": [\"62818e58-426b-4cdc-b5c2-d3b05dceecdf\"]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/v0.1/invoices/:invoiceId/line-items/:lineItemId","host":["{{apiHost}}"],"path":["v0.1","invoices",":invoiceId","line-items",":lineItemId"],"variable":[{"key":"invoiceId","value":"1ece45bc-1377-4b83-b858-bd4e353723e6"},{"key":"lineItemId","value":"8c373e25-ffd3-490a-95a2-3efcbefcfe99"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"4fabf135-dcec-4c13-b32f-6956f08caf67"},{"name":"Update invoice","id":"51e1af86-2683-4219-b1b9-83e1705d31d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Custom key-value store</p>\n","key":"metadata","type":"text","value":"object"}]},"url":"{{apiHost}}/v0.1/invoices/:invoiceId","urlObject":{"path":["v0.1","invoices",":invoiceId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"}]}},"response":[{"id":"13f798cb-8c65-4ed7-bc3a-ed6b4a9d705c","name":"Update an invoice","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"metadata\": {\n        \"correlationId\": \"0beaf1c0-3fea-4d09-99a8-4ab25dc436c2\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/v0.1/invoices/:invoiceId","host":["{{apiHost}}"],"path":["v0.1","invoices",":invoiceId"],"variable":[{"key":"invoiceId","value":"1ece45bc-1377-4b83-b858-bd4e353723e6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"51e1af86-2683-4219-b1b9-83e1705d31d4"},{"name":"Add invoice line item","id":"2124627e-6811-4d05-ba8f-403da878a6d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"typeId","value":"uuid  (required)","description":"<p>The payment type ID associated with this item</p>\n","type":"text"},{"key":"amount","value":"integer  (required)","description":"<p>A non negative integer representing the price of this item in cents</p>\n","type":"text"},{"key":"description","value":"string","description":"<p>A short human readable string describing the line item</p>\n","type":"text"}]},"url":"{{apiHost}}/v0.1/invoices/:invoiceId/line-items","urlObject":{"path":["v0.1","invoices",":invoiceId","line-items"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"}]}},"response":[{"id":"cdd3a425-658e-40a7-8d92-354cbdadef24","name":"Add an invoice line item","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"typeId\": \"ae4a5e57-ea26-41e2-ba53-ca09b645fd48\",\n    \"amount\": 50000,\n    \"description\": \"Application fee for Jerry and George\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{apiHost}}/v0.1/invoices/:invoiceId/line-items","host":["{{apiHost}}"],"path":["v0.1","invoices",":invoiceId","line-items"],"variable":[{"key":"invoiceId","value":"1ece45bc-1377-4b83-b858-bd4e353723e6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"8c373e25-ffd3-490a-95a2-3efcbefcfe99\"\n}"}],"_postman_id":"2124627e-6811-4d05-ba8f-403da878a6d5"},{"name":"Cancel invoice","id":"b316844d-5ba7-4cb1-81d6-ae186274f424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/invoices/:invoiceId/cancel","urlObject":{"path":["v0.1","invoices",":invoiceId","cancel"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uid","key":"invoiceId"}]}},"response":[],"_postman_id":"b316844d-5ba7-4cb1-81d6-ae186274f424"},{"name":"Finalize invoice","id":"fc014f5e-59c9-4eac-9385-32f1db9f9f74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"{{apiHost}}/v0.1/invoices/:invoiceId/finalize","urlObject":{"path":["v0.1","invoices",":invoiceId","finalize"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"}]}},"response":[],"_postman_id":"fc014f5e-59c9-4eac-9385-32f1db9f9f74"},{"name":"Delete invoice","id":"5656a1bf-696b-4f0e-861d-cd28d14e0f69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}","warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman."}],"url":"{{apiHost}}/v0.1/invoices/:invoiceId","urlObject":{"path":["v0.1","invoices",":invoiceId"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice ID</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"}]}},"response":[],"_postman_id":"5656a1bf-696b-4f0e-861d-cd28d14e0f69"},{"name":"List invoices","id":"9bba14ed-509c-486a-8ea3-2d6011bf33be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"url":"{{apiHost}}/v0.1/leases/:leaseId/invoices?sortBy=string&offset=integer&limit=integer&descending=boolean","urlObject":{"path":["v0.1","leases",":leaseId","invoices"],"host":["{{apiHost}}"],"query":[{"description":{"content":"<p>Supported values: 'id', 'status' and the various timestamp fields (default 'createdAt')</p>\n","type":"text/plain"},"key":"sortBy","value":"string"},{"description":{"content":"<p>A non negative value to offset the start the list by (default is 0)</p>\n","type":"text/plain"},"key":"offset","value":"integer"},{"description":{"content":"<p>A non negative value to limit the number of results to (default is 10)</p>\n","type":"text/plain"},"key":"limit","value":"integer"},{"description":{"content":"<p>A boolean inducating whether the result set should be ordered from top to bottom (default is false)</p>\n","type":"text/plain"},"key":"descending","value":"boolean"}],"variable":[{"description":{"content":"<p>The lease ID</p>\n","type":"text/plain"},"type":"string","value":"","key":"leaseId"}]}},"response":[{"id":"fc572b9d-71e2-4549-9d1d-32a984584b42","name":"List all invoices for a specific lease","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Basic {{apiKey}}","type":"text"}],"url":{"raw":"{{apiHost}}/v0.1/leases/:leaseId/invoices?limit=1","host":["{{apiHost}}"],"path":["v0.1","leases",":leaseId","invoices"],"query":[{"key":"limit","value":"1"}],"variable":[{"key":"leaseId","value":"3a36a185-d0e8-4718-9f4a-0bca944724c1","type":"string"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"totalItems\": 6,\n  \"items\": [\n    {\n      \"id\": \"1ece45bc-1377-4b83-b858-bd4e353723e6\",\n      \"status\": \"Ready\",\n      \"context\": \"Application\",\n      \"lineItems\": [\n        {\n          \"id\": \"4cb53f64-f97d-4795-8b5e-f32f98f5f909\",\n          \"typeId\": \"10158f07-6692-442f-9842-ede57b22706e\",\n          \"amount\": 124300,\n          \"description\": null\n        },\n        {\n            \"id\": \"8c373e25-ffd3-490a-95a2-3efcbefcfe99\",\n            \"typeId\": \"ae4a5e57-ea26-41e2-ba53-ca09b645fd48\",\n            \"amount\": 80000,\n            \"description\": \"Application fee for Jerry and Elaine\"\n        }\n        }\n      ],\n      \"balance\": {\n        \"debit\": {\n          \"open\": 1000,\n          \"processing\": 0,\n          \"processed\": 123300\n        },\n        \"credit\": {\n          \"available\": 123300,\n          \"processing\": 0,\n          \"processed\": 0\n        },\n        \"refund\": {\n          \"pending\": 0,\n          \"processing\": 0,\n          \"processed\": 0\n        }\n      },\n      \"createdAt\": \"2020-05-13T12:37:58.000Z\",\n      \"updatedAt\": \"2020-05-13T12:37:59.000Z\",\n      \"finalizedAt\": \"2020-05-13T12:37:59.000Z\",\n      \"canceledAt\": \"2020-05-13T12:37:59.000Z\",\n      \"setteledAt\": \"2020-05-13T12:37:59.000Z\"\n    }\n    ...\n  ]\n}"}],"_postman_id":"9bba14ed-509c-486a-8ea3-2d6011bf33be"},{"name":"Create payment session","id":"e47ac5b9-519c-4b6a-ba6b-adb5e6b584d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","type":"text","value":"Basic {{apiKey}}"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>The ID of the tenant for which the payment session is created</p>\n","key":"tenantId","type":"text","value":"uuid  (required)"}]},"url":"{{apiHost}}/v0.1/invoices/:invoiceId/payment-sessions","urlObject":{"path":["v0.1","invoices",":invoiceId","payment-sessions"],"host":["{{apiHost}}"],"query":[],"variable":[{"description":{"content":"<p>The invoice id</p>\n","type":"text/plain"},"type":"any","value":"uuid","key":"invoiceId"}]}},"response":[],"_postman_id":"e47ac5b9-519c-4b6a-ba6b-adb5e6b584d1"}],"id":"5a830afb-a44d-4c2a-878a-66841aa1f3dd","description":"<h3 id=\"the-invoice-object\">The Invoice Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>lineItems</td>\n<td><a href=\"#line_item\">[LineItem]</a></td>\n<td>An array of line items defining the prices and product information</td>\n</tr>\n<tr>\n<td>balance</td>\n<td><a href=\"#invoice_balance\">Balance</a></td>\n<td>An object containing information about the debit, credit and refund balance state of the line items</td>\n</tr>\n<tr>\n<td>context</td>\n<td>String</td>\n<td>[<strong>Coming soon</strong>] The context of the invoice, possible values are listed below</td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>A readable status, possible values are listed <a href=\"#status\">below</a></td>\n</tr>\n<tr>\n<td>createdAt</td>\n<td>ISO</td>\n<td>Creation timestamp</td>\n</tr>\n<tr>\n<td>updatedAt</td>\n<td>ISO</td>\n<td>Last update timestamp</td>\n</tr>\n<tr>\n<td>finalizedAt</td>\n<td>ISO</td>\n<td>Finalization timestamp</td>\n</tr>\n<tr>\n<td>canceledAt</td>\n<td>ISO</td>\n<td>Cancellation timestamp</td>\n</tr>\n<tr>\n<td>settledAt</td>\n<td>ISO</td>\n<td>Settlement timestamp</td>\n</tr>\n<tr>\n<td>metadata</td>\n<td>Object</td>\n<td>Custom key-value store</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"invoice-status-values\"><a href=\"null\"></a>Invoice Status Values</h4>\n<p><code>Ready</code> - Waiting for the invoice debit to be fully processed or waiting for the invoice to be finalized/canceled  </p>\n<p><code>Canceled</code> - The invoice was canceled  </p>\n<p><code>Finalized</code> - Invoice is locked for changes and credit and refund processes were initiated  </p>\n<p><code>Settled</code> - The credit and refund processes were processed successfully  </p>\n<h4 id=\"invoice-context-values\"><a href=\"null\"></a>Invoice Context Values</h4>\n<p><code>Application</code> - The invoice will not be considered as part of the move-in or move-out processes.</p>\n<p><code>MoveIn</code> - The invoice will be associated with the renters' move-in process.</p>\n<p><code>MoveOut</code> - The invoice will be in the context of the renter move-out process. When the invoice is finalized, Obligo will apply any balance to their security, if applicable. </p>\n<hr />\n<p><strong>Example:</strong> Let's assume a renter provided a $2,000 Billing Authorization and a move-out invoice was created with charges for $500. When the invoice is finalized Obligo will automatically apply $500 to their authorization and close the lease account (effectively making the remaining $1,500 unchargeable)</p>\n<hr />\n<h4 id=\"the-invoice-balance-object\"><a href=\"null\"></a>The Invoice Balance Object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>debit</td>\n<td><a href=\"#debit_balance\">DebitBalance</a></td>\n<td>The balance of payments made to fulfill the invoice</td>\n</tr>\n<tr>\n<td>credit</td>\n<td><a href=\"#credit_balance\">CreditBalance</a></td>\n<td>The balance of payments to the invoice's beneficiary</td>\n</tr>\n<tr>\n<td>refund</td>\n<td><a href=\"#refund_balance\">RefundBalance</a></td>\n<td>The balance of the refunds to the invoice payer</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h6 id=\"note-invoice-balances-amounts-are-defined-by-non-negative-integers-representing-the-amount-in-cents\">Note: Invoice balances amounts are defined by non-negative integers representing the amount in <strong>cents</strong></h6>\n<hr />\n<h6 id></h6>\n<p><a href=\"null\"></a>The Debit Balance Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>open</td>\n<td>Money</td>\n<td>Amount pending payment</td>\n</tr>\n<tr>\n<td>processing</td>\n<td>Money</td>\n<td>Total amount of payments initiated and pending confirmation</td>\n</tr>\n<tr>\n<td>processed</td>\n<td>Money</td>\n<td>Total amount of payments paid</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"-1\"></h6>\n<p><a href=\"null\"></a>The Credit Balance Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>available</td>\n<td>Money</td>\n<td>Amount pending payment to beneficiary</td>\n</tr>\n<tr>\n<td>processing</td>\n<td>Money</td>\n<td>Total amount of payments initiated and pending confirmation</td>\n</tr>\n<tr>\n<td>processed</td>\n<td>Money</td>\n<td>Total amount of payments paid</td>\n</tr>\n</tbody>\n</table>\n</div><h6 id=\"-2\"></h6>\n<p><a href=\"null\"></a>The Refund Balance Object</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pending</td>\n<td>Money</td>\n<td>Amount pending refund</td>\n</tr>\n<tr>\n<td>processing</td>\n<td>Money</td>\n<td>Total amount of refunds initiated and pending confirmation</td>\n</tr>\n<tr>\n<td>processed</td>\n<td>Money</td>\n<td>Total amount refunded</td>\n</tr>\n<tr>\n<td><br />  <br /></td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"the-invoice-line-item-object\"><a href=\"null\"></a>The Invoice Line Item Object</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>UUID</td>\n<td>A unique identifier</td>\n</tr>\n<tr>\n<td>typeId</td>\n<td>UUID</td>\n<td>The payment type ID associated with this item</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>Money</td>\n<td>The price of this item</td>\n</tr>\n<tr>\n<td>description</td>\n<td>String</td>\n<td>A short human-readable string describing the line item</td>\n</tr>\n<tr>\n<td>tagIds</td>\n<td>Array of UUIDs</td>\n<td>A list of related tags, see the Tags API documentation for further information</td>\n</tr>\n</tbody>\n</table>\n</div>","event":[{"listen":"prerequest","script":{"id":"162d5a4f-f861-4583-9dc0-5cefb87eda53","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"367e7b47-ed07-440d-b628-4008257b958c","type":"text/javascript","exec":[""]}}],"_postman_id":"5a830afb-a44d-4c2a-878a-66841aa1f3dd"},{"name":"Webhooks","item":[{"name":"lease.security.approved","item":[],"id":"14b776fd-1988-41c4-a8fb-af0bd37d95e6","description":"<p>When the lead tenant finishes the security deposit flow, either providing a cash deposit or a billing authorization, the security status on the lease resource will change to <code>Approved</code>.\n<br /><br />\nAt that time, we will send the following webhook:<br /></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"lease.security.approved\",\n    \"data\": {\n        \"leaseId\": UUID // The lease that was updated\n    }\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"cefacac0-898f-4e9e-88e0-e85676f73ad6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8f01ea23-4a97-4a7b-af3d-a0fa1d8fd401","type":"text/javascript","exec":[""]}}],"_postman_id":"14b776fd-1988-41c4-a8fb-af0bd37d95e6"},{"name":"lease.invoice.settled","item":[],"id":"3d6c7bb0-f80a-47b3-9d63-6e17574f98e0","description":"<p>When an invoice created in the context of a lease is <code>setteld</code> (all debit, credit and refunds were processed), we will send the following webhook:<br /></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"lease.invoice.settled\",\n    \"data\": {\n        \"leaseId\": UUID, // The lease identifier\n        \"invoiceId\": UUID // The invoice identifier\n    }\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"59f41354-1fd7-4ca5-b695-cc23ffa49fd4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"71831a14-1e80-463c-887b-5b992ecfb1fb","type":"text/javascript","exec":[""]}}],"_postman_id":"3d6c7bb0-f80a-47b3-9d63-6e17574f98e0"},{"name":"lease.invoice.debitProcessed","item":[],"id":"a120221c-8e64-4119-bbff-b044615dde9b","description":"<p>When the payments of an invoice created in the context of a lease are <code>fulfilled</code> , we will send the following webhook:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"lease.invoice.debitProcessed\",\n    \"data\": {\n        \"leaseId\": UUID, // The lease identifier\n        \"invoiceId\": UUID // The invoice identifier\n    }\n}\n\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"16ae5827-be40-4b57-8191-2d5a156578cb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"94d62c69-ac89-4b84-9811-4f373c294a7d","type":"text/javascript","exec":[""]}}],"_postman_id":"a120221c-8e64-4119-bbff-b044615dde9b"},{"name":"lease.invoice.debitFailed","item":[],"id":"575d1586-0115-4534-a744-330e20602a9c","description":"<p>When a payment of an invoice created in the context of a lease failed, we will send the following webhook:  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"lease.invoice.debitFailed\",\n    \"data\": {\n        \"leaseId\": UUID, // The lease identifier\n        \"invoiceId\": UUID // The invoice identifier\n    }\n}\n\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"8c4f2fa9-f792-4ca3-8a44-3decf21fe52e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ede40a44-9053-435b-ba2e-eb17e86255c4","type":"text/javascript","exec":[""]}}],"_postman_id":"575d1586-0115-4534-a744-330e20602a9c"},{"name":"tenant.invitationOpened","item":[],"id":"cbb79a78-f4cd-4d93-875f-ed7fc425a014","description":"<p>When the lead tenant opens their invitation on our platform we will send the following webhook:<br /></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"tenant.invitationOpened\",\n    \"data\": {\n        \"tenantId\": UUID // The tenant that opened the invitation\n    }\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"4727e34d-19d5-4f09-b6a2-5bd275219a2a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5fada2b6-94bd-46e0-b822-f25739eb5fde","type":"text/javascript","exec":[""]}}],"_postman_id":"cbb79a78-f4cd-4d93-875f-ed7fc425a014"},{"name":"tenant.riskAnalysis.ready","item":[],"id":"1d6f8223-111c-4378-ab5a-1e0aa340caf5","description":"<p>When you request a risk analysis on one or more tenants, it will take a couple of minutes for our backend to process that request. When we successfully fetch the requested reports we will send the following webhook:<br /></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"tenant.riskAnalysis.ready\",\n    \"data\": {\n        \"tenantId\": UUID,\n        \"riskAnalysisId\": UUID\n    }\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"b4514e00-959c-456b-b7fc-f297ef7ac73a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fc26644d-0df7-46c6-ac58-5d6080d9b10a","type":"text/javascript","exec":[""]}}],"_postman_id":"1d6f8223-111c-4378-ab5a-1e0aa340caf5"},{"name":"tenant.riskAnalysis.reportsReady","item":[],"id":"059d98ab-25b5-489f-88f2-3e731b12c421","description":"<p>Whenever one or more of the reports in the risk analysis turns <code>Completed</code>, we will send the following webhook :<br /></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"tenant.riskAnalysis.reportsReady\",\n    \"data\": {\n        \"tenantId\": UUID,\n        \"riskAnalysisId\": UUID,\n        \"reports\": [String] // Either CreditReport, BackgroundCheck or CriminalRecordsCheck\n    }\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"a054f092-9283-46a8-8395-43449c0bdbc2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dba383fe-0e72-4f60-87d8-c5b382587a2c","type":"text/javascript","exec":[""]}}],"_postman_id":"059d98ab-25b5-489f-88f2-3e731b12c421"},{"name":"tenant.riskAnalysis.failed","item":[],"id":"3ed69489-4855-4ca2-ae37-0c16ec3e57f4","description":"<p>When you request a risk analysis on one or more tenants, it will take a couple of minutes for our backend to process that request. If, for some reason, we fail in fetching the requested reports we will send the following webhook:<br /></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": UUID, // The webhook identifier\n    \"type\": \"tenant.riskAnalysis.failed\",\n    \"data\": {\n        \"tenantId\": UUID,\n        \"riskAnalysisId\": UUID\n    }\n}\n</code></pre>","event":[{"listen":"prerequest","script":{"id":"b4514e00-959c-456b-b7fc-f297ef7ac73a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fc26644d-0df7-46c6-ac58-5d6080d9b10a","type":"text/javascript","exec":[""]}}],"_postman_id":"3ed69489-4855-4ca2-ae37-0c16ec3e57f4"}],"id":"06a97194-bb43-4517-a749-0638036c7a9f","description":"<p>You can receive notifications via a webhook whenever there are updates to your resources. \nThis is especially useful for events like status updates that are not triggered by a direct API request. \n<br /><br />\nTo receive webhook notifications from the Obligo API you need to first set up a webhook endpoint.\nA webhook endpoint is an http(s) url that we call every time we have an update for you (and not as a result of your own request).<br /><br /><br /></p>\n<hr />\n<h3 id=\"webhooks-signature-verification\">Webhooks signature verification</h3>\n<p>The Obligo API signs the webhooks it sends to your endpoint. We do so by including an HTTP header that holds the signature called Obligo-Signature.<br />\nThis allows you to validate that the webhooks were sent by the Obligo API, and not by another third party. <br />\nThe signature is generated using a hash-based message authentication code (HMAC) with SHA-256.\n<br /><br /></p>\n<hr />\n<h3 id=\"signature-validation-step-by-step\">Signature validation step by step</h3>\n<ol>\n<li><p><strong>Extract the timestamp and signatures from the header</strong> <br />\nThe Obligo-Signature header contains a timestamp and a signature. The timestamp is prefixed by t=, and the signature is prefixed by v=.</p>\n<p> <code>Obligo-Signature: t=1543336288275,v=d3860150a58a642cef60baa6f621946a5c5a3b514d347576e09110d382de513e</code></p>\n<p> Split the header, using the \",\" character as the separator, to get a list of elements. Then split each element, using the = character as the separator, \n to get a prefix and value pair. <br />\n The value for the prefix t corresponds to the timestamp, and v corresponds to the signature. You can discard all other elements.</p>\n</li>\n<li><p><strong>Prepare the signedPayload string</strong> <br />\nYou achieve this by concatenating:</p>\n<p><code>\"&lt;timestamp&gt;.&lt;JSON payload (i.e., the request’s body)&gt;\"</code></p>\n</li>\n<li><p><strong>Determine the expected signature</strong> <br />\nCompute an HMAC with the SHA256 hash function. Use the webhook endpoint signing secret as the key, and use the signedPayload string as the message.</p>\n</li>\n<li><p><strong>Compare signatures</strong> <br />\nCompare the signature in the header to the expected signature. If a signature matches, compute the difference between the current timestamp and \nthe received timestamp, then decide if the difference is within your tolerance.</p>\n</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"38cdd419-f88b-4f76-8c26-438f6be249be","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f10b8a09-0dcd-4717-93ee-93c032c8d666","type":"text/javascript","exec":[""]}}],"_postman_id":"06a97194-bb43-4517-a749-0638036c7a9f"},{"name":"JavaScript SDK","item":[],"id":"26c2fc5d-fa18-4881-91fb-1fcd22195ebe","description":"<h1 id=\"overview\">Overview</h1>\n<p>The JS SDK enables you to use Obligo's different tenant applications within your own tenant flows.</p>\n<ul>\n<li><a href=\"#overview\">Overview</a></li>\n<li><a href=\"#installation\">Installation</a><ul>\n<li><a href=\"#installation-using-cdn\">Installation using CDN</a></li>\n</ul>\n</li>\n<li><a href=\"#modules\">Modules</a></li>\n<li><a href=\"#payment\">Payment</a><ul>\n<li><a href=\"#initialize-a-payment\"><strong>Initialize a payment</strong></a><ul>\n<li><a href=\"#target-element\">Target Element</a></li>\n</ul>\n</li>\n<li><a href=\"#close-payment\"><strong>Close Payment</strong></a></li>\n<li><a href=\"#callback-configuration\"><strong>Callback Configuration</strong></a><ul>\n<li><a href=\"#callback-data\">Callback Data</a></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><a href=\"#movein\">Movein</a><ul>\n<li><a href=\"#initialize-a-movein-flow\"><strong>Initialize a Movein flow</strong></a></li>\n<li><a href=\"#close-a-movein-flow\"><strong>Close a Movein flow</strong></a></li>\n<li><a href=\"#movein-flow-config\"><strong>Movein Flow Config</strong></a><ul>\n<li><a href=\"#configuration-options\">Configuration options</a></li>\n<li><a href=\"#steps\">Steps</a></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"installation\">Installation</h1>\n<h2 id=\"installation-using-cdn\">Installation using CDN</h2>\n<ol>\n<li>To install the SDK using our CDN include the following script in your HTML file, just before the closing body tag.</li>\n</ol>\n<ul>\n<li>Production: <code>https://cdn.myobligo.com/libraries/obligoSDK.min.js</code></li>\n<li>Sandbox: <code>https://cdn.myobligo.com/libraries/obligoSDK.min.js</code></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-html\">&lt;body&gt;\n  &lt;!-- ... Your body content --&gt;\n  &lt;!-- Load the Obligo SDK --&gt;\n  &lt;script src='https://cdn.myobligo.com/libraries/obligoSDK.min.js' defer&gt;&lt;/script&gt;\n&lt;/body&gt;\n</code></pre>\n<ol>\n<li>Initialize the Obligo SDK by calling <code>Obligo.init</code> with a configuration object containing your Obligo api <code>clientId</code>.</li>\n</ol>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.init({clientId: 'YOUR_CLIENT_ID'})\n// Outputs: Obligo SDK successfully initiated :)\n</code></pre>\n<ol>\n<li>:white_check_mark: You are good to go! You can now call the different modules, to load the experiences whenever you need.</li>\n</ol>\n<h1 id=\"modules\">Modules</h1>\n<p>The Modules of the SDK are a set of high level API commands that run and manage the different embeddable Obligo applications.</p>\n<p>The modules are available as namespaces in the Obligo object.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo {\n  payment: {...PaymentApplicationAPI}\n  moveIn: {...MoveInApplicationAPI}\n}\n</code></pre>\n<h1 id=\"payment\">Payment</h1>\n<p>The payment application is is a controlled payment form, allowing to tenants to submit payment for fees like an Application Fee or a Holding Deposit.</p>\n<h2 id=\"initialize-a-payment\"><strong>Initialize a payment</strong></h2>\n<ul>\n<li>*To initialize a payment you call the <code>open</code> method and pass it the session token of the invoice you'd like to ask payment for.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.payment.open('PAYMENT_SESSION_TOKEN')\n</code></pre>\n<ul>\n<li>This method will open a credit card payment form in a modal (pop-up) over the page.</li>\n</ul>\n<p><em>:heavy_exclamation_mark: The modal will close automatically on successful payment or if the payment session token is invalid.</em></p>\n<h3 id=\"target-element\">Target Element</h3>\n<ul>\n<li>If you wish to load the payment form into a specific element other than in a modal, you can specify a target element by passing an element as argument to the optional config.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">// This will open the payment form inside a target element\nObligo.payment.open('PAYMENT_SESSION_TOKEN', {targetElement: document.getElementById('my-target-element')})\n</code></pre>\n<h2 id=\"close-payment\"><strong>Close Payment</strong></h2>\n<ul>\n<li>To close an open payment form, all you gotta do is call the <code>close</code> method and, that's it.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">// This will close the currently open payment form\nObligo.payment.close()\n</code></pre>\n<h2 id=\"callback-configuration\"><strong>Callback Configuration</strong></h2>\n<ul>\n<li>The payment application allows you to attache a callback function to the payment form it opens, by passing a <code>callback</code> inside a configuration object to the <code>open</code> method. The method will be called whenever the payment has reached a final state of <code>success</code>, <code>error</code> or <code>fail</code></li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">// The callback function accepts 2 parameters\n// @param {'initiated' | 'success' | 'error' | 'fail'}  paymentStatus\n// @param {object} data\nObligo.payment.open('PAYMENT_SESSION_TOKEN', function (paymentStatus, data) {\n  // Your callback logic\n})\n</code></pre>\n<ul>\n<li>The possible payment statuses are exposed through the <code>paymentStatuses</code>. This allows you to implement a simple switch case to handle the different statuses.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.payment.open('PAYMENT_SESSION_TOKEN', function (paymentStatus, data) {\n  const statuses = Obligo.payment.paymentStatuses;\n  switch (paymentStatus): {\n    case statuses.success:\n      // Example success logic\n      console.log('Payment Success')\n      break;\n    case statuses.error:\n      // Example error logic\n      console.log('Payment Error', data) // Error data\n      break;\n    case statuses.fail:\n      // Example fail logic\n      console.log('Payment Fail', data) // Error data\n      break;\n    default:\n      break;\n  }\n\n})\n</code></pre>\n<h3 id=\"callback-data\">Callback Data</h3>\n<ul>\n<li>Callback data is currently passed only in cases of <code>error</code> or <code>fail</code>, and it follows a general structure:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-typescript\">// error | fail\n{\n  code: 'ERROR_CODE', // string\n  message: 'ERROR_MESSAGE' // string\n  name: 'ERROR_NAME' // string\n}\n</code></pre>\n<ul>\n<li>These are all the possible data objects to be used by the callback function:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">[\n  {\n    error: 'Card Declined',\n    errorCode: 'CardDeclined',\n    message: 'The card you\\'ve provided was declined, please try another payment method.'\n  },\n  {\n    error: 'Bank Account Not Found',\n    errorCode: 'NoAccount',\n    message: 'We could not locate a bank account with the information provided.please verify the information.'\n  },\n  {\n    error: 'The invoice has already been processed',\n    errorCode: 'InvoiceDebitAlreadyProcessed',\n    message: 'The invoice you are trying to pay, has already been processed.'\n  },\n  {\n    error: 'Session Token has expired',\n    errorCode: 'SessionTokenExpired',\n    message: 'The session token you are using has expired, please refresh the token and try again.'\n  }\n]\n</code></pre>\n<h1 id=\"movein\">Movein</h1>\n<p>The Movein application is a controlled flow to create a new Obligo for a given lease using a <code>movein-session-token</code>.\nThe application creates a UI pop up inside your page, that runs through an Obligo Movein flow, and closes after the flow is complete.</p>\n<h2 id=\"initialize-a-movein-flow\"><strong>Initialize a Movein flow</strong></h2>\n<ul>\n<li>To initialize a new Movein flow you must first create a lease though the Obligo API. Once you've create a Once you have created a <code>movein-session-token</code> fro the lease, pass it to the <code>Obligo.movein.open</code> method.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.movein.open('MOVEIN_SESSION_TOKEN')\n</code></pre>\n<ul>\n<li>This method will open a new Movein flow in a modal over the current window content.</li>\n</ul>\n<h2 id=\"close-a-movein-flow\"><strong>Close a Movein flow</strong></h2>\n<ul>\n<li>whenever you like you can close the currently open MoveIn flow you can close the <code>Obligo.movein.close</code> method to terminate the flow.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.movein.close()\n</code></pre>\n<h2 id=\"movein-flow-config\"><strong>Movein Flow Config</strong></h2>\n<p>The <code>Obligo.movein.open</code> method accepts an optional configuration objects, with various utilities you can leverage for your own custom experience.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.movein.open('MOVEIN_SESSION_TOKEN',{targetElement: docuemnt.getElementById('my-element')})\n</code></pre>\n<h3 id=\"configuration-options\">Configuration options</h3>\n<ul>\n<li><code>targetElement</code>: Sets a target element for the plugin to render inside off.<ul>\n<li><strong>Type</strong>: <code>HTMLDivElement</code></li>\n<li><strong>optional</strong></li>\n</ul>\n</li>\n<li><code>onProgress</code>: A callback function to call for every step progression in the Movein flow.<ul>\n<li><strong>Type</strong>: <code>(prevStep: string, currStep: string) =&gt; void</code></li>\n<li><strong>optional</strong></li>\n</ul>\n</li>\n<li><code>onComplete</code>: A callback function to call when the Movein flow is complete<ul>\n<li><strong>Type</strong>: <code>() =&gt; void</code></li>\n<li><strong>optional</strong></li>\n</ul>\n</li>\n<li><code>onError</code>: A callback function to call when an error has accured in the Movein flow.<ul>\n<li><strong>Type</strong>: <code>(error: {errorCode: string, error: string, message: string}, step?: string) =&gt; void;</code></li>\n<li><strong>optional</strong></li>\n</ul>\n</li>\n<li><code>onAbandon</code>: A callback function to call when the user closes the flow prior to completing it.<ul>\n<li><strong>Type</strong>: <code>(step?: string) =&gt; void</code></li>\n<li><strong>optional</strong></li>\n</ul>\n</li>\n</ul>\n<h3 id=\"steps\">Steps</h3>\n<p>As you can see, some of the callbacks above pass a step <code>string</code> (<code>prevStep, currStep</code> including), that you can access on the <code>Obligo.movein</code> module using the <code>moveinSteps</code> property.</p>\n<p>This property exposes an object with all the steps as <code>key:value</code> pairs</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.movein.moveinSteps;\n// Returns\n// {\n//    introduction: 'introduction',\n//    offer: 'offer',\n//    tenantInformation: 'tenantInformation',\n//    tenantVerification: 'tenantVerification',\n//    depositFreeApplication: 'depositFreeApplication',\n//    checkout: 'checkout',\n//    success: 'success',\n// }\n</code></pre>\n<p>Use this object to implement a switch case in your callbacks:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">Obligo.movein.open('MOVEIN_SESSION_TOKEN', {\n  onAbandon: (step) =&gt; {\n    const steps = Obligo.movein.moveinSteps; // use the exposed object\n    switch (step): {\n      case steps.offer:\n        console.log('Tenant left flow on the offer step')\n        break;\n      default:\n        console.log('Tenant closed flow')\n        break;\n    }\n  }\n})\n</code></pre>\n","_postman_id":"26c2fc5d-fa18-4881-91fb-1fcd22195ebe"}],"event":[{"listen":"prerequest","script":{"id":"645d8574-30d9-4c3b-8386-53fe2cb1ad35","type":"text/javascript","exec":["// const echoPostRequest = {","//   url: pm.environment.get('apiHost') + ':' + pm.environment.get('apiPort') + \"/oauth/token\",","//   method: 'POST',","//   header: 'Content-Type:application/json',","//   body: {","//     mode: 'application/json',","//     raw: JSON.stringify(","//         {","//             grant_type: \"client_credentials\",","//         \tclient_id: pm.environment.get('apiClientId'),","//         \tclient_secret:pm.environment.get('apiClientSecret')","//         })","//   }","// };","// console.log(JSON.stringify(","//         {","//             grant_type: \"client_credentials\",","//         \tclient_id: pm.environment.get('apiClientId'),","//         \tclient_secret:pm.environment.get('apiClientSecret')","//         }))","","// pm.sendRequest(echoPostRequest, function (err, res) {","// console.log(err ? err : res.json());","//     if (err === null) {","//         console.log('Saving the token and expiry date')","//         var responseJson = res.json();","//         pm.environment.set('apiAccessToken', responseJson['access_token'])","//     }","// });","",""]}},{"listen":"test","script":{"id":"f7386108-f242-4ade-adf8-2630107e386d","type":"text/javascript","exec":[""]}}]}