{ "info": { "_postman_id": "fddfcb6b-2cd2-4b01-b023-34d0dee59d0e", "name": "Dev.portal: Account sandbox", "description": "Postman test suite for testing Account APIs.\n\n## Update data in Environment\nRemember to update data in the Environment variables.\n## Hint: requests are in logical order\nThe requests can be performed in the order given in the collection, as the variables/links often are based on the previous request.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "6924963" }, "item": [ { "name": "Account List", "item": [ { "name": "account list", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "", "pm.collectionVariables.set(\"resourceId\", pm.response.json().accounts[0].resourceId);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts" ] }, "description": "# Get a list of payment accounts.\n\nUse the resourceId to get account details or transactions.\nThe accountnumbers, names and balances are mock-data (fictional).\n\n# Update token\nRemember to update the token in the Environment before you start testing.\n\noperationId: getAccountList" }, "response": [] }, { "name": "account list with balance", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "pm.collectionVariables.set(\"resourceId\", pm.response.json().accounts[0].resourceId);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts?withBalance", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts" ], "query": [ { "key": "withBalance", "value": null } ] }, "description": "Displays the same data as in \"account list\" plus information on balance for each account." }, "response": [] }, { "name": "account list with owner name", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "pm.collectionVariables.set(\"resourceId\", pm.response.json().accounts[0].resourceId);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token-withOwnerName}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-Id-withOwnerName}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts" ] }, "description": "# Get a list of payment accounts.\n\nUse the resourceId to get account details or transactions.\nThe accountnumbers, names and balances are mock-data (fictional).\n\n# Update token\nRemember to update the token in the Environment before you start testing.\n\noperationId: getAccountList" }, "response": [] }, { "name": "account list with balance and owner name", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "pm.collectionVariables.set(\"resourceId\", pm.response.json().accounts[0].resourceId);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token-withOwnerName}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "X-Request-ID", "value": "123e4567-e89b-12d3-a456-556642440011", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "473a7d3c-3324-43bf-9a3f-b9e8ee398edc", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts?withBalance", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts" ], "query": [ { "key": "withBalance", "value": null } ] }, "description": "Displays the same data as in \"account list\" plus information on balance for each account." }, "response": [] } ] }, { "name": "Account Details", "item": [ { "name": "account details - resourceId", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/{{resourceId}}", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "{{resourceId}}" ] }, "description": "Use the ressouceId for an account to get account details." }, "response": [] }, { "name": "account details - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470" ] }, "description": "Use the ressouceId for an account to get account details." }, "response": [] }, { "name": "account details - resourceId with owner name", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token-withOwnerName}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-Id-withOwnerName}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470" ] }, "description": "Use the ressouceId for an account to get account details." }, "response": [] }, { "name": "account details - 99990000223344 with owner name", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token-withOwnerName}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-Id-withOwnerName}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470" ] }, "description": "Use the ressouceId for an account to get account details." }, "response": [] }, { "name": "account details - 99991234567890", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af1-0604-5ed2-0000-5af106045ed2", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af1-0604-5ed2-0000-5af106045ed2" ] }, "description": "Use the ressouceId for an account to get account details." }, "response": [] }, { "name": "account details - Not found", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(404);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/10005af0-bc71-c470-0000-5af0bc71c470", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "10005af0-bc71-c470-0000-5af0bc71c470" ] }, "description": "Example what happens when you use an invalid resourceId." }, "response": [] }, { "name": "account details - 99990000223344 withBalances", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470?withBalances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470" ], "query": [ { "key": "withBalances", "value": null } ] }, "description": "Displays account details with balances." }, "response": [] }, { "name": "account details - 99991234567890 withBalances", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af1-0604-5ed2-0000-5af106045ed2?withBalances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af1-0604-5ed2-0000-5af106045ed2" ], "query": [ { "key": "withBalances", "value": null } ] }, "description": "Displays account details with balances." }, "response": [] }, { "name": "account details - 99991234567890 withBalances and owner name", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token-withOwnerName}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-Id-withOwnerName}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af1-0604-5ed2-0000-5af106045ed2?withBalances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af1-0604-5ed2-0000-5af106045ed2" ], "query": [ { "key": "withBalances", "value": null } ] }, "description": "Displays account details with balances." }, "response": [] }, { "name": "account details withBalances Not found", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(404);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/10005af0-bc71-c470-0000-5af0bc71c470?withBalances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "10005af0-bc71-c470-0000-5af0bc71c470" ], "query": [ { "key": "withBalances", "value": null } ] }, "description": "Example what happens when you use an invalid resourceId." }, "response": [] } ] }, { "name": "Account Balances", "item": [ { "name": "account balances - ResourceId", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/balances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "balances" ] }, "description": "Get account balance information with currency \nand forward avaiable and interim available balance." }, "response": [] }, { "name": "account balances - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/balances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "balances" ] }, "description": "Get account balance information with currency \nand forward avaiable and interim available balance." }, "response": [] }, { "name": "account balances - 99991234567890", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af1-0604-5ed2-0000-5af106045ed2/balances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af1-0604-5ed2-0000-5af106045ed2", "balances" ] }, "description": "Get account balance information with currency \nand forward avaiable and interim available balance." }, "response": [] }, { "name": "account balances - not found", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(404);", "});", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/10005af0-bc71-c470-0000-5af0bc71c470/balances", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "10005af0-bc71-c470-0000-5af0bc71c470", "balances" ] }, "description": "Example what happens when you use an invalid resourceId." }, "response": [] } ] }, { "name": "Account Transactions", "item": [ { "name": "TransactionList booked - ResourceId", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});", "pm.collectionVariables.set(\"next\", pm.response.json().transactions._links.next.href);" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/{{resourceId}}/transactions/?dateFrom=2018-12-01&dateTo=2019-03-12&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "{{resourceId}}", "transactions", "" ], "query": [ { "key": "dateFrom", "value": "2018-12-01" }, { "key": "dateTo", "value": "2019-03-12" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList booked - resourceId next", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/{{next}}", "host": [ "{{host}}" ], "path": [ "openbanking-account", "{{next}}" ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList booked - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/?dateFrom=2018-12-01&dateTo=2019-03-12&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions", "" ], "query": [ { "key": "dateFrom", "value": "2018-12-01" }, { "key": "dateTo", "value": "2019-03-12" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList booked - 99990000223344 next", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions?bookingStatus=booked&dateFrom=2018-08-01&dateTo=2019-09-13&entryReferenceFrom=2019-07-020001-01-01-00.00.00.0000010001-01-01-00.00.00.0000012019-07-02-11.18.14.912987&withBalance=false", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions" ], "query": [ { "key": "bookingStatus", "value": "booked" }, { "key": "dateFrom", "value": "2018-08-01" }, { "key": "dateTo", "value": "2019-09-13" }, { "key": "entryReferenceFrom", "value": "2019-07-020001-01-01-00.00.00.0000010001-01-01-00.00.00.0000012019-07-02-11.18.14.912987" }, { "key": "withBalance", "value": "false" } ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionDetails - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/2018-12-03-22.33.44.000001", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions", "2018-12-03-22.33.44.000001" ] }, "description": "Transaction details for a specific resourceId and transactionId.\n\nYou can get transaction details for all transactions in the transactionlist." }, "response": [] }, { "name": "TransactionList pending - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions?bookingStatus=pending&dateFrom=2018-08-01&dateTo=2020-01-31", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions" ], "query": [ { "key": "bookingStatus", "value": "pending" }, { "key": "dateFrom", "value": "2018-08-01" }, { "key": "dateTo", "value": "2020-01-31" } ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList both - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions?bookingStatus=both&dateFrom=2018-08-01&dateTo=2020-01-31", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions" ], "query": [ { "key": "bookingStatus", "value": "both" }, { "key": "dateFrom", "value": "2018-08-01" }, { "key": "dateTo", "value": "2020-01-31" } ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList booked with balance - 99990000223344", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions?bookingStatus=booked&dateFrom=2018-08-01&dateTo=2019-07-09&withBalance=true", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions" ], "query": [ { "key": "bookingStatus", "value": "booked" }, { "key": "dateFrom", "value": "2018-08-01" }, { "key": "dateTo", "value": "2019-07-09" }, { "key": "withBalance", "value": "true" } ] }, "description": "Returns a list with transactions for 1 account.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList - 99990000223344 entryReferenceFrom", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470//transactions?bookingStatus=booked&dateFrom=2018-08-01&dateTo=2019-09-14&entryReferenceFrom=2019-06-070001-01-01-00.00.00.0000010001-01-01-00.00.00.0000012019-06-07-06.02.08.009794&withBalance=false", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "", "transactions" ], "query": [ { "key": "bookingStatus", "value": "booked" }, { "key": "dateFrom", "value": "2018-08-01" }, { "key": "dateTo", "value": "2019-09-14" }, { "key": "entryReferenceFrom", "value": "2019-06-070001-01-01-00.00.00.0000010001-01-01-00.00.00.0000012019-06-07-06.02.08.009794" }, { "key": "withBalance", "value": "false" } ] }, "description": "Returns a list with transactions starting with the transaction AFTER the transactionId mentioned in entryReferenceFrom.\nIt is not possible to enter DateFrom or DateTo.\n\nThe purpose of this requesttype is to handle MANY transactions on the same bookingDate.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "TransactionList - not found", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.test(\"Response is OK\", function () {", " pm.response.to.have.status(404);", "});" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "value": "{{$guid}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" }, { "key": "Consent-ID", "value": "{{Consent-ID}}", "type": "text" }, { "key": "x-api-key", "value": "{{x-api-key}}", "type": "text" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/10005af0-bc71-c470-0000-5af0bc71c470/transactions/?dateFrom2019-03-01&dateTo=2019-03-12&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "10005af0-bc71-c470-0000-5af0bc71c470", "transactions", "" ], "query": [ { "key": "dateFrom2019-03-01", "value": null }, { "key": "dateTo", "value": "2019-03-12" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Example what happens when you use an invalid resourceId." }, "response": [] }, { "name": "NT-Transactionlist-dateFrom_cannot_be_with_entryReferenceFrom", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(pm.response.text());", "", "pm.test(\"dateFrom_cannot_be_with_entryReferenceFrom\", function() {", " pm.response.to.have.status(400);", " pm.expect(jsonData.tppMessages[0].category).to.eql(\"ERROR\");", " pm.expect(jsonData.tppMessages[0].code).to.eql(\"FORMAT_ERROR\");", " pm.expect(jsonData.tppMessages[0].text).to.include(\"entryReferenceFrom\");", "});", "", "/*", "pm.sendRequest('http://bdd03962:8100/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/?entryReferenceFrom=2019-02-26-06.44.23.773553&dateFrom=2019-02-26&bookingStatus=booked', function (err, res) {", " console.log(res);", " //var jsonData = JSON.parse(pm.response.text());", " if (err) {", " console.log(\"err\");", " console.log(err);", " } else {", " console.log(\"abc\");", " //pm.response.to.have.status(400);", " }", "});", "*/", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/?entryReferenceFrom=2019-02-26-06.44.23.773553&dateFrom=2019-02-26&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions", "" ], "query": [ { "key": "entryReferenceFrom", "value": "2019-02-26-06.44.23.773553" }, { "key": "dateFrom", "value": "2019-02-26" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Returns a list with transactions starting with the transaction AFTER the transactionId mentioned in entryReferenceFrom.\nIt is not possible to enter DateFrom or DateTo.\n\nThe purpose of this requesttype is to handle MANY transactions on the same bookingDate.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "NT-Transactionlist-dateTo_cannot_be_with_entryReferenceFrom", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(pm.response.text());", "", "pm.test(\"dateFrom_cannot_be_with_entryReferenceFrom\", function() {", " pm.response.to.have.status(400);", " pm.expect(jsonData.tppMessages[0].category).to.eql(\"ERROR\");", " pm.expect(jsonData.tppMessages[0].code).to.eql(\"FORMAT_ERROR\");", " pm.expect(jsonData.tppMessages[0].text).to.include(\"dateTo cannot be used together with entryReferenceFrom\");", "});", "", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/?entryReferenceFrom=2019-02-26-06.44.23.773553&dateTo=2019-02-26&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions", "" ], "query": [ { "key": "entryReferenceFrom", "value": "2019-02-26-06.44.23.773553" }, { "key": "dateTo", "value": "2019-02-26" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Returns a list with transactions starting with the transaction AFTER the transactionId mentioned in entryReferenceFrom.\nIt is not possible to enter DateFrom or DateTo.\n\nThe purpose of this requesttype is to handle MANY transactions on the same bookingDate.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "NT-Transactionlist-dateFrom_must_be_before_dateTo", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "", "", "var jsonData = JSON.parse(pm.response.text());", "", "pm.test(\"dateFrom_must_be_before_dateTo\", function() {", " pm.response.to.have.status(400);", " pm.expect(jsonData.tppMessages[0].category).to.eql(\"ERROR\");", " pm.expect(jsonData.tppMessages[0].code).to.eql(\"FORMAT_ERROR\");", " pm.expect(jsonData.tppMessages[0].text).to.include(\"dateFrom must be before dateTo\");", "});", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/?dateFrom=2019-03-26&dateTo=2019-02-26&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions", "" ], "query": [ { "key": "dateFrom", "value": "2019-03-26" }, { "key": "dateTo", "value": "2019-02-26" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Returns a list with transactions starting with the transaction AFTER the transactionId mentioned in entryReferenceFrom.\nIt is not possible to enter DateFrom or DateTo.\n\nThe purpose of this requesttype is to handle MANY transactions on the same bookingDate.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] }, { "name": "NT-Transactionlist-dateFrom_must_be_after", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "", "", "var jsonData = JSON.parse(pm.response.text());", "", "pm.test(\"dateFrom_must_be_after\", function() {", " pm.response.to.have.status(400);", " pm.expect(jsonData.tppMessages[0].category).to.eql(\"ERROR\");", " pm.expect(jsonData.tppMessages[0].code).to.eql(\"FORMAT_ERROR\");", " pm.expect(jsonData.tppMessages[0].text).to.include(\"dateFrom must be after\");", "});", "", "", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "X-Request-ID", "type": "text", "value": "{{$guid}}" }, { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Consent-ID", "type": "text", "value": "{{Consent-ID}}" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "url": { "raw": "{{host}}/openbanking-account/v1/accounts/00005af0-bc71-c470-0000-5af0bc71c470/transactions/?dateFrom=2010-03-26&dateTo=2019-02-26&bookingStatus=booked", "host": [ "{{host}}" ], "path": [ "openbanking-account", "v1", "accounts", "00005af0-bc71-c470-0000-5af0bc71c470", "transactions", "" ], "query": [ { "key": "dateFrom", "value": "2010-03-26" }, { "key": "dateTo", "value": "2019-02-26" }, { "key": "bookingStatus", "value": "booked" } ] }, "description": "Returns a list with transactions starting with the transaction AFTER the transactionId mentioned in entryReferenceFrom.\nIt is not possible to enter DateFrom or DateTo.\n\nThe purpose of this requesttype is to handle MANY transactions on the same bookingDate.\n\nNote: response in sandbox is the same no matter which dates you enter in \"dateFrom\" and \"dateTo\" in the BODY." }, "response": [] } ] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "token", "value": "_0XBPWQQ_3d4737eb-edd0-48d2-ae14-9cc09af611bf", "type": "string" }, { "key": "Consent-ID", "value": "1f588ed1-6c85-4736-9435-85576285152c", "type": "string" }, { "key": "resourceId", "value": "" }, { "key": "next", "value": "" }, { "key": "Consent-Id-withOwnerName", "value": "473a7d3c-3324-43bf-9a3f-b9e8ee398edc", "type": "string" }, { "key": "token-withOwnerName", "value": "_0XBPWQQ_bd3bd44d-96f7-45ab-8ea6-29ead0ad184d", "type": "string" } ] }