{"info":{"_postman_id":"e6080a7f-e821-4a12-8a6e-86de44dde983","name":"BusinessBank - integracja zewnętrzna","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"17237390","collectionId":"e6080a7f-e821-4a12-8a6e-86de44dde983","publishedId":"2s93XvW5M4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-12T13:42:25.000Z"},"item":[{"name":"Communication token","item":[{"name":"Get User Access Token","event":[{"listen":"test","script":{"id":"948a00ac-864c-4cdd-a763-9045cd6c9235","exec":["var json = JSON.parse(responseBody);\r","postman.setEnvironmentVariable(\"UserAccessToken\", json.access_token);"],"type":"text/javascript"}}],"id":"0566bb91-8976-4bd1-88f3-d40c9aeb2cd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"{{username}}"},{"key":"password","value":"{{password}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"USERAPI","type":"text"}]},"url":"https://oauth2.assecobs.pl/api/oauth2/token","description":"<p>Metoda służy do pozyskania czasowego tokenu komunikacyjnego. Z metody należy korzystać gdy jeszcze go nie posiadamy lub gdy poprzednio wygenerowany token utracił swoją ważność. Do metody należy przekazać pola username i password, które odczytać można w pliku konfiguracyjnym konta, w sekcji APIUser. Wartości dla parametrów zawierają się w węzłach kolejno: Login i Password.</p>\n<p>Prawidłowo wywołana metoda oprócz wartości samego tokena zwróci również jego termin ważności. Należy go zapamiętać i kontrolować. W trakcie użycia metod integracyjnych, gdy zbliża się lub został przekroczony termin ważności tokenu, należy pozyskać nowy token przed wywołaniem kolejnej metody integracyjnej.</p>\n<h2 id=\"parametry-wywołania\">Parametry wywołania</h2>\n<p>Username oraz password w sekcji Authorization (typ Basic).</p>\n<h2 id=\"parametry-odpowiedzi\">Parametry odpowiedzi</h2>\n<blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parametr</th>\n<th>Typ danych</th>\n<th>Znaczenie</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>access_token</td>\n<td>TEXT (max)</td>\n<td>Token komunikacyjny</td>\n</tr>\n<tr>\n<td>token_type</td>\n<td>TEXT (100)</td>\n<td>Typ tokenu.</td>\n</tr>\n<tr>\n<td>expires_in</td>\n<td>NUMBER</td>\n<td>Ważność tokenu w sekundach</td>\n</tr>\n<tr>\n<td>scope</td>\n<td>TEXT (100)</td>\n<td>Typ uprawnienia dla tokenu.</td>\n</tr>\n</tbody>\n</table>\n</div></blockquote>\n","urlObject":{"protocol":"https","path":["api","oauth2","token"],"host":["oauth2","assecobs","pl"],"query":[],"variable":[]}},"response":[{"id":"3dcf799c-a575-4a92-a0c1-286bd41018de","name":"Get new communication token","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"grant_type","value":"client_credentials","type":"text"},{"key":"scope","value":"USERAPI","type":"text"}]},"url":"https://oauth2.assecobs.pl/api/oauth2/token"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"access_token\": \"{{vault:json-web-token}}bCcRKZpqD4HhQY9E6qKmqB9eFjbxIEEOkFSGoAl8LGT8hqvW75rNUKCAi5gtxD2TtQBMn1He_fWUCwqB2oqS4nhH2U54a1RGgFzGmGVUmnGGO4XH7qBcHnejleDF8bdpSaQ9VvV4_pPQ88n508uHzphI-j3p-CdGkRJ94RSGTc_aYkfjIfnQzfZqM5LJSn4SLcLS2aTRUJMYT6l4orCupLP-RcdmsD3ff40fo6uvw0-hfUjTD-RvfnqaEfTSsIcfz8qqzOZ1MYIGmWpkIn2kphWjzs3jzklYL882vJsncy0TU5g41nBhG5Nx8X4FkU\",\r\n    \"token_type\": \"bearer\",\r\n    \"expires_in\": 3600,\r\n    \"scope\": \"USERAPI\"\r\n}"}],"_postman_id":"0566bb91-8976-4bd1-88f3-d40c9aeb2cd5"}],"id":"5d19c88b-efdc-431f-a9fd-2b9660ff91f9","_postman_id":"5d19c88b-efdc-431f-a9fd-2b9660ff91f9","description":""},{"name":"REST","item":[{"name":"BLMT_TRANSACTIONS_REQUEST","id":"9194f651-1729-485c-be97-6d083be25b54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{UserAccessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"TenantIdentifier","value":"e9d3a996-f8ca-4ba1-a072-09c49fb3e87b","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"dataIn\": {\r\n        \"bankProfileId\": \"73d511d6-88a7-4273-9fe2-53005600d9ab\",\r\n        \"dateFrom\": \"2022-01-18T09:44:07.137\",\r\n        \"dateTo\": \"2023-01-18T09:44:07.137\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{service_url}}/businessbank/BLMT_TRANSACTIONS_REQUEST","urlObject":{"protocol":"https","path":["businessbank","BLMT_TRANSACTIONS_REQUEST"],"host":["{{service_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9194f651-1729-485c-be97-6d083be25b54"},{"name":"BLMT_ADD_BANK_PROFILE","id":"b1bd3315-5e8c-4bb9-ba0d-d6348d50a65e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{UserAccessToken}}"}]},"isInherited":false},"method":"POST","header":[{"key":"TenantIdentifier","value":"e9d3a996-f8ca-4ba1-a072-09c49fb3e87b","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"BankCode\": \"MBANK\",\r\n    \"BankName\": \"mBank\",\r\n    \"BankServiceUrl\": \"https://www.companynet-test.ebre.pl/ws/services/IBREService_v1_0\",\r\n    \"BankCustomerId\": \"ASSECOBS1\",\r\n    \"LoginName\": \"668166\",\r\n    \"VersionAPI\": \"VersionAPI\",\r\n    \"ClientVersionAPI\": \"ClientVersionAPI\",\r\n    \"LangAPI\": \"LangAPI\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://{{service_url}}/businessbank/BLMT_ADD_BANK_PROFILE","urlObject":{"protocol":"https","path":["businessbank","BLMT_ADD_BANK_PROFILE"],"host":["{{service_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1bd3315-5e8c-4bb9-ba0d-d6348d50a65e"},{"name":"BLMT_TRANSACTIONS_GETINFO","id":"6083f43a-d459-4761-9704-5a15aeb980ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{UserAccessToken}}"}]},"isInherited":false},"method":"GET","header":[{"key":"TransactionIdentifier","value":"FBAC01A4-ED4F-44E4-A3C4-27E90C28B2E4","type":"text"}],"url":"https://{{service_url}}/businessbank/BLMT_TRANSACTIONS_GETINFO","urlObject":{"protocol":"https","path":["businessbank","BLMT_TRANSACTIONS_GETINFO"],"host":["{{service_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6083f43a-d459-4761-9704-5a15aeb980ec"}],"id":"182e2c9d-42c4-4e22-9aaf-e4fb12a1e680","_postman_id":"182e2c9d-42c4-4e22-9aaf-e4fb12a1e680","description":""}]}