{"info":{"_postman_id":"f02d1026-7a9a-44e5-9044-ed02c4778854","name":"Stenn API","description":"<html><head></head><body><p>Welcome to the Stenn External API Manual! This document will provide you with information on how to create a successful integration with our system and start earning interest with Stenn</p>\n<h2 id=\"how-does-it-work---main-business-process\">How does it work - main business process</h2>\n<p>Please get acquainted with our business process. We help companies that have deals and use deferred payments. In the deal, usually, there are two parties - one that sells goods or services (or supplier) and another that buys those goods or services (or buyer). If those companies use deferred payments up to 120 days, they can contact Stenn and request financing. Basic algorithms are:</p>\n<ol>\n<li>Companies (buyer and supplier) register in the Stenn system</li>\n<li>Companies provide Stenn with deal data - usually, that is an invoice and transport document)</li>\n<li>Stenn assesses companies (KYC check for supplier and limit assessment for the buyer)</li>\n<li>Stenn, supplier and buyer sign 3-party agreement</li>\n<li>Stenn provides money to the supplier</li>\n<li>Buyer repays invoice value to Stenn</li>\n</ol>\n<h2 id=\"your-role-in-the-business-process\">Your role in the business process</h2>\n<p>You, as API representative, introduce companies to the Stenn system and provide them with tools to register deals. After the deal repayment, you get a percentage from all deals that your suppliers have made.</p>\n<h2 id=\"glossary\">Glossary</h2>\n<ul>\n<li><strong>Buyer</strong> - company that buys goods or services. In Stenn platform, buyers use deferred payments and repays all amount of money only after they receive provided goods or services</li>\n<li><strong>Deal</strong> - an agreement between buyer and supplier, registered in the Stenn system. This agreement contains deal info, such as due date, amount, and also has attached invoice file and </li>\n<li><strong>DocuSign</strong> - Service that provides Electronic digital signatures to Companies (buyers and suppliers). During the Stenn business process, exhibits and notices can be signed via DocuSign.</li>\n<li><strong>Invoice</strong> - a commercial document issued by a supplier to a buyer, relating to a sale transaction and indicating the products, quantities, and agreed prices for products or services the seller had provided the buyer. Invoices in Stenn system have deferred payment terms</li>\n</ul>\n<h2 id=\"api-workflow\">API Workflow</h2>\n<p>To execute the whole business process via API, you have to perform several actions according to the following algorithm:</p>\n<ul>\n<li>Register supplier’s user</li>\n<li>Add buyer company to your supplier</li>\n<li>Add bank details  to your supplier</li>\n<li>Add contacts to your buyer</li>\n<li>Add invoices and register deals</li>\n</ul>\n<p><img src=\"https://drive.google.com/file/d/1ronIcCKujlFNVr3f1n2FIjr5CuLcQfQd/view?usp=sharing\" alt=\"a\"></p>\n<p>After deal registration, it’s only up to us to finance that deal. Your revenue will be paid after your buyer repays the deal. All logical blocks on this scheme (like “register supplier’s user) are described in detail.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13568147","collectionId":"f02d1026-7a9a-44e5-9044-ed02c4778854","publishedId":"U16qJ3Cb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-29T15:09:18.000Z"},"item":[{"name":"Authorization","item":[{"name":"Get authentication token","id":"03445504-a529-4ed0-b98e-247d4749070b","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":true,"followRedirects":true,"disableUrlEncoding":false},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"clientId\": \"{{clientId}}\",\r\n  \"clientSecret\": \"{{clientSecret}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Auth/Token","urlObject":{"path":["api","v2","Auth","Token"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"d771934b-e862-4d09-8df8-aa7eb024f668","name":"Get authentication token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"clientId\": \"{{clientId}}\",\r\n  \"clientSecret\": \"{{clientSecret}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Auth/Token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"813"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 Jun 2022 08:56:37 GMT"},{"key":"Server","value":"Kestrel"},{"key":"api-supported-versions","value":"1.0, 2.0"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InhqWDZWcDAwUmZINGZidG01cWZDcCJ9.eyJpc3MiOiJodHRwczovL21pbm9yLWRldi5zdGVubi5jb20vIiwic3ViIjoiWkd6d0M1UUFiRE1GVWg4cklVNHBFT0o4QVZUQnFXajlAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3Rlbm5taW5vci5ldS5hdXRoMC5jb20vYXBpL3YyLyIsImlhdCI6MTY1NjMxNzM1NSwiZXhwIjoxNjU2NDAzNzU1LCJhenAiOiJaR3p3QzVRQWJETUZVaDhySVU0cEVPSjhBVlRCcVdqOSIsInNjb3BlIjoicmVhZDpjbGllbnRfZ3JhbnRzIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.OKpwuXBzndI8ToxZk5uxzysbYQZDjFfmGRE-r00_EGreHRyN0DCcU4l-c8idrMvjq3jlMGzHiI1CMCo3hCt9B5Jfzdq1mvyyreDdWXjaaVR5UKfsSsWJZ0wRGx2Mrnds89bgyO6eBXuE-p4xgfEpQXfk5umx-JqLa-AMS8Kl2uQqeInvl0LWo_QxxI7ERVKymp5xa_uerY7oeEESIqVOifkaDEL_yhdktBaPBbPswSgh_0rguJhJX6ExogIm501OC80FJB2CsHWNbQyYysB82TfRRVWwgYDtJo-7ZYfpLDtd69n4_G9f5RBr5uPef9L-keRoPn3_DVnHO0doFeQCtA\",\n    \"expires_in\": 81758\n}"}],"_postman_id":"03445504-a529-4ed0-b98e-247d4749070b"}],"id":"5b0636aa-998f-4deb-af84-fe635626e3d9","description":"<p>There is a company who wants to earn by being an introducer at Stenn, Stenn sees such companies as Introducers. An Introducer invites business partners to have trade relations with the Introducer's source.</p>\n<p>The Introducer's source has an integration with <a href=\"https://api.stenn.com\">https://api.stenn.com</a>, Stenn is financing deals. Here how it works:</p>\n<p>EndFragmen</p>\n<ol>\n<li><p>By the consultant at the Stenn, the Introducer receives “Client ID” and “Client secret” (password).</p>\n</li>\n<li><p>At <a href=\"https://api.stenn.com\">https://api.stenn.com</a> all communication will be with cURL (a command-line tool and application library used to transfer data to or from a server).</p>\n</li>\n<li><p>Through <a href=\"https://api.stenn.com\">https://api.stenn.com</a> Introducer sends a request to get Token access, as the answer receives Token access.</p>\n</li>\n</ol>\n","_postman_id":"5b0636aa-998f-4deb-af84-fe635626e3d9"},{"name":"Integrator’s representative","item":[{"name":"Register integrator's representative","id":"eac0724e-d21e-4b34-87d4-68667cd4a6bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"testt_test@gmail.com\",\r\n  \"firstName\": \"John\",\r\n  \"lastName\": \"Doe\",\r\n  \"position\": \"Integrator's manager\",\r\n  \"phoneNumber\": \"+11111111111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Integrator/Register","urlObject":{"path":["api","v2","Integrator","Register"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"4d7af53e-401f-4fed-8c0e-0d61c9e0aa28","name":"Register integrator's representative","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"testt_test@gmail.com\",\r\n  \"firstName\": \"John\",\r\n  \"lastName\": \"Doe\",\r\n  \"position\": \"Integrator's manager\",\r\n  \"phoneNumber\": \"+11111111111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Integrator/Register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"49"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Mon, 27 Jun 2022 11:38:30 GMT"},{"key":"Server","value":"Kestrel"},{"key":"api-supported-versions","value":"1.0, 2.0"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": \"e38c004a-ac81-c40c-3a4b-08da58318ef2\"\n}"}],"_postman_id":"eac0724e-d21e-4b34-87d4-68667cd4a6bc"}],"id":"c45a9795-d03c-48d0-a047-7c0ab568282f","description":"<p>4. Through <a href=\"https://api.stenn.com\">https://api.stenn.com</a> Introducer sends a request to get a User ID of integrator’s representative, as the answer receives User ID of integrator’s representative.</p>\n","_postman_id":"c45a9795-d03c-48d0-a047-7c0ab568282f"},{"name":"Identify company","item":[{"name":"Identify company","id":"315cb5f3-1aaf-48ff-8501-c469adb80113","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"testttt_test@gmail.com\",\r\n  \"firstName\": \"John\",\r\n  \"lastName\": \"Doe\",\r\n  \"position\": \"Integrator's manager\",\r\n  \"phoneNumber\": \"+11111111111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Integrator/Register","urlObject":{"path":["api","v2","Integrator","Register"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"315cb5f3-1aaf-48ff-8501-c469adb80113"}],"id":"89e211c3-a746-4770-b6a4-1df521f6316b","description":"<p>5. StartFragment</p>\n<p>With Token access (from point 2 above) and email of Introducer's representative (from point 3 above), Introducer authorizes the system of Stenn (<a href=\"https://api.stenn.com\">https://api.stenn.com</a>).  </p>\n<p>6. StartFragment</p>\n<p>If necessary, before registering a new seller/supplier, the Introducer identifies the information about the new seller/supplier at Dun &amp; Bradstreet. For new buyer, it is necessary for the Introducer to identify the information about the new buyer at Dun &amp; Bradstreet.</p>\n<p>EndFragmentStartFragment</p>\n<p><code>/api/v2/Companies/SearchCompaniesInDnb</code></p>\n<p><code>CountryCode string</code></p>\n<p><code>CompanyName string</code></p>\n<p><code>Duns string</code></p>\n<p>Note: You may use only CountryCode with CompanyName, or DANS, or all of them together.</p>\n<p>EndFragment</p>\n","_postman_id":"89e211c3-a746-4770-b6a4-1df521f6316b"},{"name":"New seller/supplier or buyer","item":[{"name":"New seller/supplier or buyer","id":"80a1828b-c27c-41a9-9dc7-f63ea0796e22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Brasil Flowers\",\r\n  \"address\": {\r\n    \"street\": \"Av. FLOWERS 0 BLOC 0\",\r\n    \"city\": \"EMBU DAS ARTES (VILA BONFIM )\",\r\n    \"state\": \"\",\r\n    \"postalCode\": \"00000-000\",\r\n    \"countryCode\": \"BR\"\r\n  },\r\n  \"webSite\": \"testflowers.com\",\r\n  \"duns\": \"\",\r\n  \"registrationNumber\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/user/editProfile","urlObject":{"path":["api","v1","user","editProfile"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"80a1828b-c27c-41a9-9dc7-f63ea0796e22"}],"id":"1de4ddce-73a0-4540-95d4-aee63dd095b3","description":"<p>7. Introducer registers new seller/supplier or new buyer in Stenn’s system.</p>\n","_postman_id":"1de4ddce-73a0-4540-95d4-aee63dd095b3"},{"name":"Trade partner for supplier or buyer from point above","item":[{"name":"Add buyer","id":"e5428a54-831e-44ca-9db1-cbae42418a60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Flowers Ltd\",\r\n  \"address\": {\r\n    \"street\": \"301-308, Apollo Arcade build 1, ap 1\",\r\n    \"city\": \"Indore\",\r\n    \"state\": \"\",\r\n    \"postalCode\": \"000000\",\r\n    \"countryCode\": \"IN\"\r\n  },\r\n  \"webSite\": \"\",\r\n  \"duns\": \"111111111\",\r\n  \"registrationNumber\": \"\",\r\n  \"buyerContactDto\": {\r\n    \"email\": \"pedrotest@gmail.com\",\r\n    \"firstName\": \"Pedro\",\r\n    \"lastName\": \"Gonsales\",\r\n    \"position\": \"Has the right to sign\",\r\n    \"phoneNumber\": \"+222222222\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Companies/AddBuyer","urlObject":{"path":["api","v2","Companies","AddBuyer"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e5428a54-831e-44ca-9db1-cbae42418a60"},{"name":"Add new buyer contact","id":"b88eff69-76ac-48f5-9855-dd3ec4b48b7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"buyerCompanyId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\r\n  \"email\": \"string\",\r\n  \"firstName\": \"string\",\r\n  \"lastName\": \"string\",\r\n  \"position\": \"string\",\r\n  \"phoneNumber\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/companies/addNewBuyerContact","urlObject":{"path":["api","v1","companies","addNewBuyerContact"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"aaf97612-b850-496b-b438-69c1639d06f9","name":"Add new buyer contact","originalRequest":{"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"buyerCompanyId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\r\n  \"email\": \"string\",\r\n  \"firstName\": \"string\",\r\n  \"lastName\": \"string\",\r\n  \"position\": \"string\",\r\n  \"phoneNumber\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/companies/addNewBuyerContact"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"buyerCompanyId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n    \"contactId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n    \"firstName\": \"string\",\n    \"lastName\": \"string\",\n    \"email\": \"string\",\n    \"position\": \"string\",\n    \"phoneNumber\": \"string\",\n    \"editable\": true\n}"}],"_postman_id":"b88eff69-76ac-48f5-9855-dd3ec4b48b7d"},{"name":"Confirm buyer contact","id":"798fac21-3bad-4467-9095-ad5e3326e588","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"buyerContactId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/companies/confirmBuyerSigner?buyerId={buyerId}","urlObject":{"path":["api","v1","companies","confirmBuyerSigner"],"host":["{{stenn-domain}}"],"query":[{"key":"buyerId","value":"{buyerId}"}],"variable":[]}},"response":[{"id":"40d8f243-ea90-4791-911e-c25d8b2a5f55","name":"Confirm buyer contact","originalRequest":{"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"buyerContactId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/companies/confirmBuyerSigner/{buyerId}"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"buyerContactId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}"}],"_postman_id":"798fac21-3bad-4467-9095-ad5e3326e588"},{"name":"Add supplier","id":"fa721ed2-6f7d-4da9-a4e0-c1a3a9d9fc1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Test Flowers Ltd\",\r\n  \"address\": {\r\n    \"street\": \"301-308, Apollo Arcade build 1, ap 1\",\r\n    \"city\": \"El Salvador\",\r\n    \"state\": \"\",\r\n    \"postalCode\": \"000000\",\r\n    \"countryCode\": \"BR\"\r\n  },\r\n  \"webSite\": \"\",\r\n  \"duns\": \"\",\r\n  \"registrationNumber\": \"\",\r\n  \"registrationNumberType\": \"\",\r\n  \"representativeInfo\": {\r\n    \"email\": \"brasiltestt@gmail.com\",\r\n    \"firstName\": \"Emma\",\r\n    \"lastName\": \"Gonsales\",\r\n    \"position\": \"Has the right to sign\"\r\n  }","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v2/Companies/AddSupplier","urlObject":{"path":["api","v2","Companies","AddSupplier"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fa721ed2-6f7d-4da9-a4e0-c1a3a9d9fc1c"}],"id":"bc5459aa-6ddd-4b9a-9b0c-6cc9fb27f899","description":"<p>8. Introducer registers trade partner for supplier or buyer from point 6.</p>\n","_postman_id":"bc5459aa-6ddd-4b9a-9b0c-6cc9fb27f899"},{"name":"Bank details","item":[{"name":"Create bank details","id":"87f6a4a9-56ef-4c20-86f0-d6620d5af7cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"beneficiaryName\": \"string\",\r\n  \"bankName\": \"string\",\r\n  \"swift\": \"string\",\r\n  \"beneficiaryAccountNumber\": \"string\",\r\n  \"beneficiaryAddress1\": \"string\",\r\n  \"beneficiaryAddress2\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/bankDetails/createBankDetails","urlObject":{"path":["api","v1","bankDetails","createBankDetails"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"fb43cd50-557e-437a-aed2-462d4582911f","name":"Create bank details","originalRequest":{"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"beneficiaryName\": \"string\",\r\n  \"bankName\": \"string\",\r\n  \"swift\": \"string\",\r\n  \"beneficiaryAccountNumber\": \"string\",\r\n  \"beneficiaryAddress1\": \"string\",\r\n  \"beneficiaryAddress2\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/bankDetails/createBankDetails"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}"}],"_postman_id":"87f6a4a9-56ef-4c20-86f0-d6620d5af7cb"},{"name":"Get bank details","id":"d3a7a163-d018-41e9-994a-8d04ed071304","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"url":"{{stenn-domain}}/api/v1/bankDetails/getBankDetails","urlObject":{"path":["api","v1","bankDetails","getBankDetails"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"4a7919e4-fdb2-48df-94e5-e14a0a56bd70","name":"Get bank details","originalRequest":{"method":"GET","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"url":"{{stenn-domain}}/api/v1/bankDetails/getBankDetails"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n        \"canEdit\": true,\n        \"beneficiaryName\": \"string\",\n        \"bankName\": \"string\",\n        \"swift\": \"string\",\n        \"beneficiaryAccountNumber\": \"string\",\n        \"beneficiaryAddress1\": \"string\",\n        \"beneficiaryAddress2\": \"string\",\n        \"beneficiaryCountryCode\": \"string\"\n    }\n]"}],"_postman_id":"d3a7a163-d018-41e9-994a-8d04ed071304"}],"id":"4d7f2fb4-4f52-44c9-8aff-be1467272635","_postman_id":"4d7f2fb4-4f52-44c9-8aff-be1467272635","description":""},{"name":"Invoices","item":[{"name":"Create invoice","id":"09aefecc-5a97-4513-900a-b3f99bc7d4e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"invoice\": {\r\n    \"number\": \"string\",\r\n    \"buyerId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\r\n    \"dueDate\": \"2021-09-16T08:37:33.973Z\",\r\n    \"amount\": 0,\r\n    \"currencyIsoNumericCode\": 840\r\n  },\r\n  \"documents\": [\r\n    {\r\n      \"fileName\": \"string\",\r\n      \"base64\": \"string\",\r\n      \"documentType\": \"string\",\r\n      \"mediaType\": \"string\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/invoice/createInvoice","urlObject":{"path":["api","v1","invoice","createInvoice"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"6ec2eec6-3d2d-4db2-ba6f-a8079496a691","name":"Create invoice","originalRequest":{"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"invoice\": {\r\n    \"number\": \"string\",\r\n    \"buyerId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\r\n    \"dueDate\": \"2021-09-16T08:37:33.973Z\",\r\n    \"amount\": 0,\r\n    \"currencyIsoNumericCode\": 840\r\n  },\r\n  \"documents\": [\r\n    {\r\n      \"fileName\": \"string\",\r\n      \"base64\": \"string\",\r\n      \"documentType\": \"string\",\r\n      \"mediaType\": \"string\"\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/invoice/createInvoice"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}"}],"_postman_id":"09aefecc-5a97-4513-900a-b3f99bc7d4e4"},{"name":"Get invoices","id":"5fd36a54-bfeb-4b12-a4f8-b8e5382427b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"url":"{{stenn-domain}}/api/v1/invoice/getInvoices","urlObject":{"path":["api","v1","invoice","getInvoices"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"ee2499a1-06a6-4bad-81da-511f45f516c4","name":"Get invoices","originalRequest":{"method":"GET","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"url":"{{stenn-domain}}/api/v1/invoice/getInvoices"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"invoiceId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n    \"number\": \"string\",\n    \"dueDate\": \"2021-09-17T07:26:56.814Z\",\n    \"redeemedAt\": \"2021-09-17T07:26:56.814Z\",\n    \"graceDate\": \"2021-09-17T07:26:56.814Z\",\n    \"shipmentDate\": \"2021-09-17T07:26:56.814Z\",\n    \"state\": \"string\",\n    \"financingAmount\": 0,\n    \"isoNumericCode\": 840,\n    \"dealId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}"}],"_postman_id":"5fd36a54-bfeb-4b12-a4f8-b8e5382427b6"}],"id":"02cf1ded-a0df-4738-8e51-c3b105426624","_postman_id":"02cf1ded-a0df-4738-8e51-c3b105426624","description":""},{"name":"Deal","item":[{"name":"Create deal","id":"393c289f-86c9-47eb-b7a9-9124ca5cd4cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"invoiceIds\": [\r\n    \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/deal/createDeal","urlObject":{"path":["api","v1","deal","createDeal"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"a5840738-e797-4093-b26e-dcbe458fa7a3","name":"Create deal","originalRequest":{"method":"POST","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"invoiceIds\": [\r\n    \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{stenn-domain}}/api/v1/deal/createDeal"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n}"}],"_postman_id":"393c289f-86c9-47eb-b7a9-9124ca5cd4cf"},{"name":"Get deals","id":"af312171-14ca-473c-9a8b-f1fada9cf3e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"url":"{{stenn-domain}}/api/v1/deal/getDeals","urlObject":{"path":["api","v1","deal","getDeals"],"host":["{{stenn-domain}}"],"query":[],"variable":[]}},"response":[{"id":"8d72f150-6684-4b31-9ba3-41a3fa8905f1","name":"Get deals","originalRequest":{"method":"GET","header":[{"key":"external_user_id","value":"{{userEmail}}","type":"text"}],"url":"{{stenn-domain}}/api/v1/deal/getDeals"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\r\n  {\r\n    \"dealId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\r\n    \"number\": \"string\",\r\n    \"state\": \"string\",\r\n    \"financingDate\": \"2021-09-17T07:27:56.790Z\",\r\n    \"financingAmount\": 0,\r\n    \"isoNumericCode\": 840\r\n  }\r\n]"}],"_postman_id":"af312171-14ca-473c-9a8b-f1fada9cf3e4"}],"id":"d74d8135-7865-43a0-ab60-e2724b3ff74f","_postman_id":"d74d8135-7865-43a0-ab60-e2724b3ff74f","description":""}]}