{ "info": { "_postman_id": "7766a57e-3eb5-4c1d-871d-ebc1036d1514", "name": "PaymentAdaptorMock", "description": "## \nThis Payment collection uses 5 different paymentproducts.\nPerform POST for 1 paymentproduct and GET details/status.\nPOST authorisation for the payment and GET SCA status/OAuth.\n\nRepeat the sequence for next paymentproduct.\n\n```\nEXAMPLE:\n--------\nPOST Init (paymentproduct)\n\nGET Get payment details\nGET Get payment status\nPOST Payment authorisation\nGET Authorisation SCA status\nGET Authorisation OAuth\n\nPOST Init (next paymentproduct)\n repeat GET and POST commands\n```\n \n## Mock data (fixed data)\nThis Postman collection uses mock data. When you POST a payment, you get a paymentId. When you GET payment details for the paymentId, you get the details for the payment, we provided for you.\n\nIf you CHANGE the content in the BODY for a POST-payment,\nyou GET the same payment details we provided.\n\n## Update token\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" }, "item": [ { "name": "Fetch token", "item": [ { "name": "Post for access token", "event": [ { "listen": "prerequest", "script": { "exec": [ "", "console.log(\"Post for a token and setup environment variables\");", "", "var env = postman.getEnvironmentVariable(\"env\");", "", "console.log(env);", "", "if (env === \"localmock\"){", "", " pm.environment.set(\"auth-url\", \"https://test-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"localhost:8180\");", "", " pm.environment.set(\"x-api-key\", \"HQFmo9N8OUVw5169fn1W4o2jMomXBjEg\");", "}", "", "if (env === \"dev\"){", " pm.environment.set(\"auth-url\", \"https://test-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"https://test-api.jyskebank.dk/dev/mock/openbanking-payment\");", "", " pm.environment.set(\"x-api-key\", \"HQFmo9N8OUVw5169fn1W4o2jMomXBjEg\");", "}", "", "if (env === \"staging\"){", " pm.environment.set(\"auth-url\", \"https://test-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"https://test-api.jyskebank.dk/mock/openbanking-payment\");", "", " pm.environment.set(\"x-api-key\", \"HQFmo9N8OUVw5169fn1W4o2jMomXBjEg\");", "}", "", "if (env === \"prod\"){", " pm.environment.set(\"auth-url\", \"https://sandbox-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"https://sandbox-api.jyskebank.dk/openbanking-payment\");", "", " pm.environment.set(\"x-api-key\", \"zedO5hxFOl6ygibGmr8Je5WpFTwHTT5S\");", "}", "pm.environment.set(\"X-Request-ID\", \"123e4567-e89b-12d3-a456-556642440000\");", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.environment.set(\"access-token\", pm.response.json().access_token);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "client_credentials", "type": "text" }, { "key": "scope", "value": "pisprepare", "type": "text" }, { "key": "client_id", "value": "PSDDK-DFSA-BD-tst100", "type": "text" } ] }, "url": { "raw": "{{auth-url}}/oauth-token", "host": [ "{{auth-url}}" ], "path": [ "oauth-token" ] } }, "response": [] }, { "name": "Post for access token Copy", "event": [ { "listen": "prerequest", "script": { "exec": [ "", "console.log(\"Post for a token and setup environment variables\");", "", "var env = postman.getEnvironmentVariable(\"env\");", "", "console.log(env);", "", "if (env === \"localmock\"){", "", " pm.environment.set(\"auth-url\", \"https://test-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"localhost:8180\");", "", " pm.environment.set(\"x-api-key\", \"HQFmo9N8OUVw5169fn1W4o2jMomXBjEg\");", "}", "", "if (env === \"dev\"){", " pm.environment.set(\"auth-url\", \"https://test-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"https://test-api.jyskebank.dk/dev/mock/openbanking-payment\");", "", " pm.environment.set(\"x-api-key\", \"HQFmo9N8OUVw5169fn1W4o2jMomXBjEg\");", "}", "", "if (env === \"staging\"){", " pm.environment.set(\"auth-url\", \"https://test-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"https://test-api.jyskebank.dk/mock/openbanking-payment\");", "", " pm.environment.set(\"x-api-key\", \"HQFmo9N8OUVw5169fn1W4o2jMomXBjEg\");", "}", "", "if (env === \"prod\"){", " pm.environment.set(\"auth-url\", \"https://sandbox-auth.jyskebank.dk\");", " pm.environment.set(\"api-url\", \"https://sandbox-api.jyskebank.dk/openbanking-payment\");", "", " pm.environment.set(\"x-api-key\", \"zedO5hxFOl6ygibGmr8Je5WpFTwHTT5S\");", "}", "pm.environment.set(\"X-Request-ID\", \"123e4567-e89b-12d3-a456-556642440000\");", "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "pm.environment.set(\"access-token\", pm.response.json().access_token);", "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/x-www-form-urlencoded", "type": "text" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "grant_type", "value": "client_credentials", "type": "text" }, { "key": "scope", "value": "pisprepare", "type": "text" }, { "key": "client_id", "value": "PSDDK-DFSA-BD-tst100", "type": "text" } ] }, "url": { "raw": "{{auth-url}}/oauth-token", "host": [ "{{auth-url}}" ], "path": [ "oauth-token" ] } }, "response": [] } ] }, { "name": "Init Payment", "item": [ { "name": "Init Domestic-credit-transfers", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId 6e528be2-f6fc-4436-8fae-01920b5dee11\"] =jsonData.paymentId==\"6e528be2-f6fc-4436-8fae-01920b5dee11\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\"\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Init Domestic-credit-transfers Exemption", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " ", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99990000223344,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Init Domestic-credit-transfers periodic-payments", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"startDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))\r", "pm.environment.set(\"endDate\", moment().add(1, 'years').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"debtorAccount\": {\n \"bban\": \"99992233445566\",\n \"currency\": \"DKK\"\n },\n \"instructedAmount\": {\n \"currency\": \"DKK\",\n \"amount\": \"1234.56\"\n },\n \"creditorAccount\": {\n \"bban\": \"99992233445566\",\n \"currency\": \"DKK\"\n },\n \"remittanceInformationStructured\": {\n \"reference\": \"RIF REF\"\n },\n \"startDate\": \"{{startDate}}\",\n \"endDate\": \"{{endDate}}\",\n \"frequency\": \"Monthly\",\n \"dayOfExecution\": \"1\",\n \"executionRule\": \"preceding\"\n}" }, "url": { "raw": "{{api-url}}/v1/periodic-payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "periodic-payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Init Instant-domestic-credit-transfer", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId d969f0ed-fca3-4cbc-8d78-a326c953b164\"] =jsonData.paymentId==\"d969f0ed-fca3-4cbc-8d78-a326c953b164\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{\n \"debtorAccount\": {\n \"bban\": 99991234567890,\n \"currency\": \"DKK\"\n },\n \"instructedAmount\": {\n \"currency\": \"DKK\",\n \"amount\": \"1234.56\"\n },\n \"creditorAccount\": {\n \"bban\": 99992233445566,\n \"currency\": \"DKK\"\n },\n \"remittanceInformationStructured\": {\n \"reference\": \"Text to receiving account\"\n },\n \"remittanceInformationUnstructuredArray\": [\n \"Instant transfer must have \",\n \"requested execution date = today \"\n ],\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\n}" }, "url": { "raw": "{{api-url}}/v1/payments/instant-domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "instant-domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId d969f0ed-fca3-4cbc-8d78-a326c953b164\n\n# Mockdata are fixed\nIf you CHANGE the content of the payment fields in the BODY, the payment will still be created data in the original example." }, "response": [] }, { "name": "Init Intraday-domestic-credit-transfers", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId 8a77549c-ad24-4b4b-8a38-14ba516ba2d4\"] =jsonData.paymentId==\"8a77549c-ad24-4b4b-8a38-14ba516ba2d4\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{\n \"debtorAccount\": {\n \"bban\": 99991234567890,\n \"currency\": \"DKK\"\n },\n \"instructedAmount\": {\n \"currency\": \"DKK\",\n \"amount\": \"1234.56\"\n },\n \"creditorAccount\": {\n \"bban\": 99992233445566,\n \"currency\": \"DKK\"\n },\n \"remittanceInformationStructured\": {\n \"reference\": \"Text to receiving account\"\n },\n \"remittanceInformationUnstructuredArray\": [\n \"Further information to creditor 01\",\n \"Further information to creditor 02\",\n \"Further information to creditor 03\",\n \"Further information to creditor 04\",\n \"Further information to creditor 05\"\n ],\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\n}" }, "url": { "raw": "{{api-url}}/v1/payments/intraday-domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "intraday-domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId 8a77549c-ad24-4b4b-8a38-14ba516ba2d4\n\n# Mockdata are fixed\nIf you CHANGE the content of the payment fields in the BODY, the payment will still be created data in the original example." }, "response": [] }, { "name": "Init Sepa-credit-transfers", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId 856b6f2b-5fc9-4d33-9ef8-a05e87559a1b\"] =jsonData.paymentId==\"856b6f2b-5fc9-4d33-9ef8-a05e87559a1b\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"endToEndIdentification\": \"endToEndIdentification\",\r\n \"debtorAccount\": {\r\n \"bban\": \"99998888888888\",\r\n \"currency\": \"EUR\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"EUR\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"iban\": \"DE89370400440532013000\",\r\n \"currency\": \"EUR\"\r\n },\r\n \"creditorAgent\": \"COBADEHH\",\r\n \"creditorName\": \"Baerenhausen Arboretum\",\r\n\r\n \"creditorAddress\": {\r\n \"street\": \"Neuenkooper Str\",\r\n \"buildingNumber\": \"123\",\r\n \"city\": \"Neuenkoop\",\r\n \"postalCode\": \"12345\",\r\n \"country\": \"DE\"\r\n },\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\",\r\n \"remittanceInformationUnstructured\": \"Text to creditor, max 35 chars....X\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/sepa-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "sepa-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId 856b6f2b-5fc9-4d33-9ef8-a05e87559a1b\n\n# Mockdata are fixed\nIf you CHANGE the content of the payment fields in the BODY, the payment will still be created data in the original example." }, "response": [] }, { "name": "Init Cross-border-credit-transfers", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId bd3295bc-7dd1-4857-9600-104add057ea0\"] =jsonData.paymentId==\"bd3295bc-7dd1-4857-9600-104add057ea0\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{\n \"debtorAccount\": {\n \"bban\": 99991234567890,\n \"currency\": \"DKK\"\n },\n \"instructedAmount\": {\n \"currency\": \"USD\",\n \"amount\": \"777.77\"\n },\n \"creditorAccount\": {\n \"iban\": \"BH67BMAG00001299123456\",\n \"currency\": \"USD\"\n },\n \"creditorAgent\": \"ARABBHBMMAN\",\n \"creditorName\": \"Bahrain International Circuit\",\n \"creditorAddress\": {\n \"street\": \"Streetname\",\n \"buildingNumber\": \"123\",\n \"city\": \"Metropolis\",\n \"postalCode\": \"889900\",\n \"country\": \"BH\"\n },\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\",\n \"chargeBearer\": \"SHAR\",\n \"remittanceInformationUnstructured\": \"Text to creditor\"\n}" }, "url": { "raw": "{{api-url}}/v1/payments/cross-border-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "cross-border-credit-transfers" ] }, "description": "This POST always creates a dummy payment with \npaymentId bd3295bc-7dd1-4857-9600-104add057ea0.\n\n# Mockdata are fixed\nIf you CHANGE the content of the payment fields in the BODY, the payment will still be created data in the original example." }, "response": [] }, { "name": "Init Domestic-credit-transfers-negative-test", "event": [ { "listen": "test", "script": { "exec": [ "pm.test(\"Response is Bad request\", function() {", " pm.response.to.have.status(400);", "});", "", "pm.test(\"Body contains wrong bban\", function() {", " pm.expect(pm.response.text()).to.include(\"debtorAccount.bban must match\");", "});", "", "pm.test(\"Body contains invalid amount\", function() {", " pm.expect(pm.response.text()).to.include(\"instructedAmount.amount must match\");", "});", "", "pm.test(\"Body contains invalid currency\", function() {", " pm.expect(pm.response.text()).to.include(\"instructedAmount.currency must match\");", "});", "", "pm.test(\"requestedExecutionDate is missing\", function() {", " pm.expect(pm.response.text()).to.include(\"requestedExecutionDate must not be null\");", "});", "", "pm.test(\"remittanceInformationStructured longer than 35\", function() {", " pm.expect(pm.response.text()).to.include(\"remittanceInformationStructured.reference size must be between 0 and 35\");", "});", "", "pm.test(\"Invalid account currency\", function() {", " pm.expect(pm.response.text()).to.include(\"creditorAccount.currency must match\");", "});", "", "", "", "", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 999912345678901111111111111111111111111,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"dkk\",\r\n \"amount\": \"1234.56sss\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"123\"\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving accounteeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ]\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Payment details", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}{{self}}", "host": [ "{{api-url}}{{self}}" ] }, "description": "This GET always returns payment details for the dummy payment referred to in the paymentId." }, "response": [] }, { "name": "Payment status", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}{{status}}", "host": [ "{{api-url}}{{status}}" ] }, "description": "This GET returns payment status for the dummy payment referred to in the paymentId." }, "response": [] } ] }, { "name": "Authorisation", "item": [ { "name": "Payment authorisation", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.environment.set(\"scaOAuth\", pm.response.json()._links.scaOAuth.href);", "pm.environment.set(\"scaStatus\", pm.response.json()._links.scaStatus.href);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{}" }, "url": { "raw": "{{api-url}}{{startAuthorisation}}", "host": [ "{{api-url}}{{startAuthorisation}}" ] } }, "response": [] }, { "name": "Authorisation SCA status", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}{{scaStatus}}", "host": [ "{{api-url}}{{scaStatus}}" ] }, "description": "Check the status for Strong Customer Authorisation." }, "response": [] }, { "name": "Authorisation OAuth", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "67987693dc3d5b3-7023-4848-9853-f5400a64e80f" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{scaOAuth}}", "host": [ "{{scaOAuth}}" ] } }, "response": [] } ] }, { "name": "Cancellation", "item": [ { "name": "Delete Domestic-credit-transfers", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(202);", "});", "", "//pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\"\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z1", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z1" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Canceled Payment status z1", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z1/status", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z1", "status" ] }, "description": "This GET returns payment status for the dummy payment referred to in the paymentId." }, "response": [] }, { "name": "Delete Domestic-credit-transfers 409", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(409);", "});", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\"\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z3", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z3" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Canceled Payment status z2", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z2/status", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z2", "status" ] }, "description": "This GET returns payment status for the dummy payment referred to in the paymentId." }, "response": [] }, { "name": "Delete Domestic-credit-transfers with link", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(202);", "});", "", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\"\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z2", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z2" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Canceled Payment status z3", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z2/status", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z2", "status" ] }, "description": "This GET returns payment status for the dummy payment referred to in the paymentId." }, "response": [] }, { "name": "Payment Cancel authorisation", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.environment.set(\"scaOAuth\", pm.response.json()._links.scaOAuth.href);", "pm.environment.set(\"scaStatus\", pm.response.json()._links.scaStatus.href);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "{}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z2/cancellation-authorisations", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z2", "cancellation-authorisations" ] } }, "response": [] }, { "name": "Authorisation SCA status", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{access-token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/8a77549c-ad24-4b4b-8a38-14ba516ba2z2/cancellation-authorisations/aab002e8-80ce-46c9-a3a2-b89e841d4130", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "8a77549c-ad24-4b4b-8a38-14ba516ba2z2", "cancellation-authorisations", "aab002e8-80ce-46c9-a3a2-b89e841d4130" ] }, "description": "Check the status for Strong Customer Authorisation." }, "response": [] } ] }, { "name": "PaymentSlip", "item": [ { "name": "Init Domestic-credit-transfers-slip-71-ref-15", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId 6e528be2-f6fc-4436-8fae-01920b5dee11\"] =jsonData.paymentId==\"6e528be2-f6fc-4436-8fae-01920b5dee11\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\",\r\n \"other\": {\r\n \"identification\": \"12345678\",\r\n \"schemeNameProprietary\": \"71\"\r\n }\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"remittanceInformationStructuredArray\": [\r\n {\r\n \"reference\": \"123456789012345\",\r\n \"referenceType\": \"SCOR\"\r\n }\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Init Domestic-transfers-slip-04-15-75-ref-16", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId 6e528be2-f6fc-4436-8fae-01920b5dee11\"] =jsonData.paymentId==\"6e528be2-f6fc-4436-8fae-01920b5dee11\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\"\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\",\r\n \"other\": {\r\n \"identification\": \"12345678\",\r\n \"schemeNameProprietary\": \"04\"\r\n }\r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"remittanceInformationStructuredArray\": [\r\n {\r\n \"reference\": \"1234567890123456\",\r\n \"referenceType\": \"SCOR\"\r\n }\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Init Domestic-transfers-other for credit :Neg", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(201);", "});", "", "pm.test(\"PAYMENT INITIATION SERVICE ADAPTOR - check Mandatory Fields\", function() {", " var jsonData = pm.response.json();", " tests[\"paymentId is not null\"] = null!==jsonData.paymentId;", " tests[\"check For PaymentId 6e528be2-f6fc-4436-8fae-01920b5dee11\"] =jsonData.paymentId==\"6e528be2-f6fc-4436-8fae-01920b5dee11\";", "});", "", "pm.environment.set(\"self\", pm.response.json()._links.self.href);", "pm.environment.set(\"status\", pm.response.json()._links.status.href);", "pm.environment.set(\"startAuthorisation\", pm.response.json()._links.startAuthorisation.href);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "exec": [ "var moment = require('moment')\r", "pm.environment.set(\"requestedExecutionDate\", moment().add(1, 'days').format(\"YYYY-MM-DD\"))" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"debtorAccount\": {\r\n \"bban\": 99991234567890,\r\n \"currency\": \"DKK\",\r\n \"other\": {\r\n \"identification\": \"12345678\",\r\n \"schemeNameProprietary\": \"04\"\r\n }\r\n },\r\n \"instructedAmount\": {\r\n \"currency\": \"DKK\",\r\n \"amount\": \"1234.56\"\r\n },\r\n \"creditorAccount\": {\r\n \"bban\": 99992233445566,\r\n \"currency\": \"DKK\"\r\n \r\n },\r\n \"remittanceInformationStructured\": {\r\n \"reference\": \"Text to receiving account\"\r\n },\r\n \"remittanceInformationUnstructuredArray\": [\r\n \"Further information to creditor 01\",\r\n \"Further information to creditor 02\",\r\n \"Further information to creditor 03\",\r\n \"Further information to creditor 04\",\r\n \"Further information to creditor 05\"\r\n ],\r\n \"remittanceInformationStructuredArray\": [\r\n {\r\n \"reference\": \"1234567890123456\",\r\n \"referenceType\": \"SCOR\"\r\n }\r\n ],\r\n \"requestedExecutionDate\": \"{{requestedExecutionDate}}\"\r\n}" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers" ] }, "description": "This POST always creates a dummy payment with\npaymentId = 6e528be2-f6fc-4436-8fae-01920b5dee11.\n\nUse the paymentId to GET payment details and payment status.\n\nPOST authorisation and GET authorisation SCA status and authorisation OAuth.\n\n---\nPOST the next payment type and get a new paymentId.\nRepeat the steps to GET payment details/status and POST authorisation." }, "response": [] }, { "name": "Payment details", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/7e528be2-f6fc-4436-8fae-01920b5dee86", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "7e528be2-f6fc-4436-8fae-01920b5dee86" ] }, "description": "This GET always returns payment details for the dummy payment referred to in the paymentId." }, "response": [] }, { "name": "Payment status", "event": [ { "listen": "test", "script": { "exec": [ "/*", "Check response for http staus", "*/", "pm.test(\"Response is OK\", function() {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-Request-ID", "type": "text", "value": "{{X-Request-ID}}" }, { "key": "PSU-IP-Address", "type": "text", "value": "sssssssssss" }, { "key": "x-api-key", "type": "text", "value": "{{x-api-key}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{api-url}}/v1/payments/domestic-credit-transfers/7e528be2-f6fc-4436-8fae-01920b5dee86/status", "host": [ "{{api-url}}" ], "path": [ "v1", "payments", "domestic-credit-transfers", "7e528be2-f6fc-4436-8fae-01920b5dee86", "status" ] }, "description": "This GET returns payment status for the dummy payment referred to in the paymentId." }, "response": [] } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ] }