{
	"info": {
		"_postman_id": "e52f6570-0591-4a6c-b72d-65b45ca98cbb",
		"name": "Berlin API Phase 1B( 2024.05.09-0305) _latest",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
		"_exporter_id": "33615496"
	},
	"item": [
		{
			"name": "AIS",
			"item": [
				{
					"name": "Single",
					"item": [
						{
							"name": "AIS-IBAN",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bgaccount1",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n// Rule 1.1 : Only account permission is given \n    // \"access\": {\n    //     \"accounts\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118628\"\n    //         }\n    //     ]\n    // },\n\n// Rule 1.2 : Only balance permission given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118628\"\n    //         }\n    //     ]\n    // },\n\n// Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118628\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         }\n    //     ]\n    // },\n\n//   1.4 When balance amd transaction permission is given with ownername \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118628\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         }\n    //     ],\n    //     \"additionalInformation\": {\n    //         \"ownerName\": [\n    //             {\n    //                 \"iban\": \"DE40100100103307118607\"\n    //             }\n    //         ]\n    //     }\n    // },\n\n//Rule 2.1.1 \n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1 \n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n// Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n//  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    \"access\": { \n        \"balances\": [],\n        \"transactions\": []\n        },\n        \n    \"recurringIndicator\": false,\n    \"validUntil\": \"9999-12-31\",\n    \"frequencyPerDay\": 1,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "08420c17-6c01-4cc9-9bde-71797b49af52",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts2",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts22",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts5",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts8",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts9",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts-10",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts12",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts1",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts22",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						},
						{
							"name": "AIS-BBAN",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts1",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n// Rule 1.1 : Only account permission is given \n    \"access\": {\n        \"accounts\": [\n            {\n                \"bban\": \"AAAADEBBXXX\"\n            },\n            {\n                \"bban\": \"ACAADEBBXSS\"\n            },\n            {\n                \"bban\": \"AAKADEBBXXX\"\n            }\n        ]\n    },\n // Rule 1.2 : Only balance permission given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"bban\": \"AAAADEBHXXX\"\n    //         },\n    //         {\n    //             \"bban\": \"ACAADEBBXSS\"\n    //         },\n    //         {\n    //             \"bban\": \"AAAATTBBXXX\"\n    //         }\n    //     ]\n    // },\n// Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"bban\": \"AAAADEBBXXX\"\n    //         },\n    //         {\n    //             \"bban\": \"AAAATTBBXXX\"\n    //         },\n    //         {\n    //             \"bban\": \"AAKADEBBXXX\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"bban\": \"AAKADEBBXXX\"\n    //         }\n    //     ]\n    // },\n//   1.4 When balance amd transaction permission is given with ownername \n// \"access\": {\n//         \"balances\": [\n//              {\n//                 \"bban\": \"ACAADEBBXSS\"\n//             }, {\n//                 \"bban\": \"AAAATTBBXXX\"\n//             }, {\n//                 \"bban\": \"AAKADEBBXXX\"\n//             }\n//         ],\n//         \"transactions\": [\n//             {\n//                 \"bban\": \"AAAATTBBXXX\"\n//             }\n//         ],\n//         \"additionalInformation\": {\n//             \"ownerName\": [\n\n//              {\n//                 \"bban\": \"ACAADEBBXSS\"\n//             }\n//             ]\n//         }\n//     },\n//Rule 2.1.1\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n // Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n //  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n    \n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    // \"access\": { \n    //     \"balances\": [],\n    //     \"transactions\": []\n    //     },\n    \n    \"recurringIndicator\": true,\n    \"validUntil\": \"2024-11-01\",\n    \"frequencyPerDay\": 4,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "0ae7b54a-097d-41bd-933d-0031aaefe285",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts2",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts6",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts7",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts8",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts9",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts12",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts22",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts21",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts27",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						},
						{
							"name": "AIS-MSISDN",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n// Rule 1.1 : Only account permission is given \n    \"access\": {\n        \"accounts\": [\n            {\n                \"msisdn\": \"DE40100100103307118638\"\n            },\n            {\n                \"msisdn\": \"DE40100100103307118698\"\n            }\n        ]\n    },\n// Rule 1.2 : Only balance permission given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"msisdn\": \"DE40100100103307118638\"\n    //         },\n    //         {\n    //             \"msisdn\": \"DE40100100103307118698\"\n    //         },\n    //         {\n    //             \"msisdn\": \"DE40100100103307119608\"\n    //         }\n    //     ]\n    // },\n// Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"msisdn\": \"DE40100100103307118908\"\n    //         },\n    //         {\n    //             \"msisdn\": \"DE40100100103307119608\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"msisdn\": \"DE40100100103307118908\"\n    //         },\n    //         {\n    //             \"msisdn\": \"DE40100100103307119608\"\n    //         }\n    //     ]\n    // },\n    //   1.4 When balance amd transaction permission is given with ownername \n    //     \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"msisdn\": \"DE40100100103307118638\"\n    //         },\n    //         {\n    //             \"msisdn\": \"DE40100100103307118908\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"msisdn\": \"DE40100100103307118908\"\n    //         }\n    //     ],\n    //     \"additionalInformation\": {\n    //         \"ownerName\": [\n    //             {\n    //                 \"msisdn\": \"DE40100100103307118638\"\n    //             }\n    //         ]\n    //     }\n    // },\n\n//Rule 2.1.1 \n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n// Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n//  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    // \"access\": { \n    //     \"balances\": [],\n    //     \"transactions\": []\n    //     },\n\n\n    \"recurringIndicator\": true,\n    \"validUntil\": \"2024-11-01\",\n    \"frequencyPerDay\": 4,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "1b11f3ad-9f5d-47e6-b01a-1fae6c93715f",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts2",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts1",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts11",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts5",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts6",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts7",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts9",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "{{token-from-auth-code-grant-accounts}}",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts19",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts41",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts02",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						},
						{
							"name": "AIS-maskedPan",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts1",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n// Rule 1.1 : Only account permission is given \n    \"access\": {\n        \"accounts\": [\n            {\n                \"maskedPan\": \"xxxx xxxx xxxx 5985\"\n            },\n            {\n                \"maskedPan\": \"xxxx xxxx xxxx 8543\"\n            },\n            {\n                \"maskedPan\": \"xxxx xxxx xxxx 3784\"\n            }\n        ]\n    },\n// Rule 1.2 : Only balance permission given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 5985\"\n    //         },\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 3784\"\n    //         },\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 8543\"\n    //         }\n    //     ]\n    // },\n// Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //    {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 5985\"\n    //         },\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 3784\"\n    //         },\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 8543\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //          {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 5985\"\n    //         },\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 3784\"\n    //         }\n    //     ]\n    // },\n//   1.4 When balance amd transaction permission is given with ownername \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 3784\"\n    //         },\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 5985\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"maskedPan\": \"xxxx xxxx xxxx 3784\"\n    //         }\n    //     ],\n    //     \"additionalInformation\": {\n    //         \"ownerName\": [\n    //             {\n    //                 \"maskedPan\": \"xxxx xxxx xxxx 5985\"\n    //             }\n    //         ]\n    //     }\n    // },\n\n//Rule 2.1.1 \n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n// Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n//  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    // \"access\": { \n    //     \"balances\": [],\n    //     \"transactions\": []\n    //     },\n    \n    \"recurringIndicator\": false,\n    \"validUntil\": \"2024-11-01\",\n    \"frequencyPerDay\": 1,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "f850cdfe-9294-4744-be39-17b0f34a91a4",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account2",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account2",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account3",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account4",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account5",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account6",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account7",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account8",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account9",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account12",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account13",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-account14",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						}
					]
				},
				{
					"name": "Multi-currency",
					"item": [
						{
							"name": "AIS-IBAN",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts7",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n// Rule 1.1 : Only account permission is given \n    \"access\": {\n        \"accounts\": [\n            {\n                \"iban\": \"DE40100100103307118601\",\n                \"currency\": \"USD\"\n            },\n              {\n                \"iban\": \"DE40100100103307118601\",\n                \"currency\": \"EUR\"\n            }\n        ]\n    },\n    \n// Rule 1.2 : Only balance permission given\n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118601\",\n    //             \"currency\": \"USD\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118628\"\n    //         }\n    //     ]\n    // },\n\n// Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118601\",\n    //             \"currency\": \"EUR\"\n    //         },\n    //         {\n    //             \"iban\": \"DE40100100103307118607\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"iban\": \"DE40100100103307118601\",\n    //             \"currency\": \"EUR\"\n    //         }\n    //     ]\n    // },\n//    1.4 When balance amd transaction permission is given with ownername \n        // \"access\": {\n        //     \"balances\": [\n        //         {\n        //             \"iban\": \"DE40100100103307118601\",\n        //              \"currency\": \"EUR\"\n        //         },\n        //         {\n        //             \"iban\": \"DE40100100103307118607\"\n        //         },\n        //         {\n        //             \"iban\": \"DE40100100103307118628\"\n        //         }\n        //     ],\n        //     \"transactions\": [\n        //         {\n        //             \"iban\": \"DE40100100103307118601\",\n        //              \"currency\": \"EUR\"\n        //         }\n        //     ],\n        //     \"additionalInformation\": {\n        //         \"ownerName\": [\n        //             {\n        //                 \"iban\": \"DE40100100103307118601\",\n        //                  \"currency\": \"EUR\"\n        //             }\n        //         ]\n        //     }\n        // },\n//Rule 2.1.1 \n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n// Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n//  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    // \"access\": { \n    //     \"balances\": [],\n    //     \"transactions\": []\n    //     },\n    \n    \"recurringIndicator\": true,\n    \"validUntil\": \"2024-11-01\",\n    \"frequencyPerDay\": 2,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "819adac5-00a9-4fde-aff3-dd8755630ceb",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts122",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts22",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts21",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "{{token-from-auth-code-grant-accounts}}",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts1",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts8",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts-2",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts-3",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						},
						{
							"name": "AIS-PAN",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n// Rule 1.1 : Only account permission is given \n    \"access\": {\n        \"accounts\": [\n            {\n                \"pan\": \"5409050000000000\",\n                \"currency\": \"USD\"\n            },\n            {\n                \"pan\": \"5409050000000000\",\n                \"currency\": \"EUR\"\n            }\n        ]\n    },\n// Rule 1.2 : Only balance permission given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //            \"pan\": \"5409050000000000\",\n    //            \"currency\": \"USD\"\n    //         }\n    //     ]\n    // },\n// Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"pan\": \"5409050000000000\",\n    //              \"currency\": \"USD\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"pan\": \"5409050000000000\",\n    //              \"currency\": \"USD\"\n    //         }\n    //     ]\n    // },\n//   1.4 When balance amd transaction permission is given with ownername \n    //   \"access\": {\n    //     \"balances\": [\n    //         {\n    //             \"pan\": \"5409050000000000\",\n    //             \"currency\": \"EUR\"\n    //         }\n    //     ],\n    //     \"transactions\": [\n    //         {\n    //             \"pan\": \"5409050000000000\",\n    //             \"currency\": \"EUR\"\n    //         }\n    //     ],\n    //     \"additionalInformation\": {\n    //         \"ownerName\": [\n    //             {\n    //                 \"pan\": \"5409050000000000\",\n    //                 \"currency\": \"EUR\"\n    //             }\n    //         ]\n    //     }\n    // },\n//Rule 2.1.1 \n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n// Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n//  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    // \"access\": { \n    //     \"balances\": [],\n    //     \"transactions\": []\n    //     },\n    \n    \"recurringIndicator\": true,\n    \"validUntil\": \"2024-11-01\",\n    \"frequencyPerDay\": 4,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "42b66c8e-808b-4ea7-8ed6-79795038e501",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts-1",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts2",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts-4",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts23",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts19",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts91",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts8",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts27",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts8",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts6",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						}
					]
				},
				{
					"name": "Combination",
					"item": [
						{
							"name": "AIS-All",
							"item": [
								{
									"name": "Step 1: Client Credentials Grant (consents scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-client-credentials-grant-accounts\", jsonData.access_token);",
													"postman.clearEnvironmentVariable(\"cm\");",
													""
												],
												"type": "text/javascript"
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "BASIC {{basicToken}}"
											},
											{
												"key": "x-cert-fingerprint",
												"value": "foo",
												"type": "text",
												"disabled": true
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "client_credentials",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "accounts openid consents",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}"
									},
									"response": []
								},
								{
									"name": "Step 2: POST Consent",
									"event": [
										{
											"listen": "prerequest",
											"script": {
												"exec": [
													"// set uuid and time",
													"postman.setEnvironmentVariable(\"now\", (new Date()).toUTCString());",
													"const uuid = require('uuid');",
													"pm.environment.set(\"interactionId\", uuid.v4());"
												],
												"type": "text/javascript",
												"packages": {}
											}
										},
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"intent-id\", jsonData.consentId);",
													"pm.environment.set(\"request-scope\", 'accounts');",
													"pm.environment.set(\"consentId\", jsonData.consentId);",
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "x-fapi-auth-date",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-customer-ip-address",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-fapi-interaction-id",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "x-customer-user-agent",
												"value": "",
												"type": "default",
												"disabled": true
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts1",
												"type": "text"
											},
											{
												"key": "PSU-IP-Address",
												"value": "192.168.8.78",
												"type": "text"
											}
										],
										"body": {
											"mode": "raw",
											"raw": "{\n\n    // Rule 1.1 : Only account permission is given \n    \"access\": { \n       \"accounts\": [  \n           {\"iban\": \"DE40100100103307118607\"},\n           {\"bban\": \"AAAADEBBXXX\"}, \n           {\"pan\": \"89746535\"},\n           {\"msisdn\": \"DE40100100103307118698\"},\n           {\"maskedPan\": \"xxxx xxxx xxxx 3784\"}\n        ]\n       }, \n    // Rule 1.2 : Only balance permission given \n    // \"access\": { \n    //    \"balances\": [  \n    //        {\"iban\": \"DE40100100103307118607\"},\n    //        {\"bban\": \"AAAADEBBXXX\"}, \n    //        {\"pan\": \"89746535\"},\n    //        {\"msisdn\": \"DE40100100103307118698\"},\n    //        {\"maskedPan\": \"xxxx xxxx xxxx 3784\"}\n    //     ]\n    //    },\n\n    // Rule 1.3 When balance and transction permision is given \n    // \"access\": {\n    //     \"balances\": [\n    //        {\"iban\": \"DE40100100103307118607\"},\n    //        {\"bban\": \"AAAADEBBXXX\"}, \n    //        {\"pan\": \"89746535\"},\n    //        {\"msisdn\": \"DE40100100103307118698\"},\n    //        {\"maskedPan\": \"xxxx xxxx xxxx 3784\"}\n\n    //     ],\n    //     \"transactions\": [\n    //        {\"iban\": \"DE40100100103307118607\"},\n    //        {\"bban\": \"AAAADEBBXXX\"}, \n    //        {\"pan\": \"89746535\"},\n    //        {\"msisdn\": \"DE40100100103307118698\"},\n    //        {\"maskedPan\": \"xxxx xxxx xxxx 3784\"}\n    //     ]\n    // },\n//   1.4 When balance amd transaction permission is given with ownername \n//   \"access\": {\n//         \"balances\": [\n//            {\"iban\": \"DE40100100103307118607\"},\n//            {\"bban\": \"AAAADEBBXXX\"}, \n//            {\"pan\": \"89746535\"},\n//            {\"msisdn\": \"DE40100100103307118698\"},\n//            {\"maskedPan\": \"xxxx xxxx xxxx 3784\"}\n\n//         ],\n//         \"transactions\": [\n//            {\"iban\": \"DE40100100103307118607\"},\n//            {\"bban\": \"AAAADEBBXXX\"}, \n//            {\"pan\": \"89746535\"},\n//            {\"msisdn\": \"DE40100100103307118698\"},\n//            {\"maskedPan\": \"xxxx xxxx xxxx 3784\"}\n//         ],\n//         \"additionalInformation\": {\n//             \"ownerName\": [\n//                 {\n//                     \"iban\": \"DE40100100103307118607\"\n//                 }\n//             ]\n//         }\n//     },\n\n//Rule 2.1.1 \n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\"\n    // },\n\n// Rule 2.1.2\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.1.3\n    // \"access\": {\n    //     \"availableAccounts\": \"allAccounts\",\n    //     \"restrictedTo\": [\n    //         \"CARD\"\n    //     ]\n    // },\n\n// Rule 2.2.1\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccounts\"\n    // },\n\n// Rule 2.2.2\n    // \"access\": {\n    //     \"availableAccountsWithBalance\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 2.3.1\n    // \"access\": {\n    //     \"allPsd2\": \"allAccounts\"\n    // },\n\n//  Rule 2.3.2\n    // \"access\": {\n    //     \"allPsd2\": \"allAccountsWithOwnerName\"\n    // },\n\n// Rule 3.1 \n    //   \"access\": {\n    //     \"accounts\": []\n    //   },\n\n// Rule 3.2\n    // \"access\": {\n    //     \"balances\": []\n    //   },\n\n// Rule 3.3\n    // \"access\": { \n    //     \"balances\": [],\n    //     \"transactions\": []\n    //     },\n        \n    \"recurringIndicator\": true,\n    \"validUntil\": \"2024-11-01\",\n    \"frequencyPerDay\": 4,\n    \"combinedServiceIndicator\": false\n}",
											"options": {
												"raw": {
													"language": "json"
												}
											}
										},
										"url": "{{rs}}/v1/consents"
									},
									"response": []
								},
								{
									"name": "Step 3: Auth Code Grant (accounts scope)",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"let jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"token-from-auth-code-grant-accounts\", jsonData.access_token);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "POST",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/x-www-form-urlencoded"
											},
											{
												"key": "Authorization",
												"value": "Basic {{basicToken}}"
											}
										],
										"body": {
											"mode": "urlencoded",
											"urlencoded": [
												{
													"key": "grant_type",
													"value": "authorization_code",
													"type": "text"
												},
												{
													"key": "scope",
													"value": "openid accounts",
													"type": "text"
												},
												{
													"key": "code",
													"value": "046da602-6bbe-4757-a3a0-405827af7a93",
													"type": "text"
												},
												{
													"key": "redirect_uri",
													"value": "{{redirectUrl}}",
													"type": "text"
												}
											]
										},
										"url": "{{tokenEndpoint}}",
										"description": "Copy the authorization code generated into the browser into the **Body** tab in the `code` parameter"
									},
									"response": []
								},
								{
									"name": "Step 4: GET accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.accounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts2s",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 5: GET account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts3",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}?withBalance=true",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}"
											],
											"query": [
												{
													"key": "withBalance",
													"value": "true"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 6: GET account balances",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts4",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 7: GET account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"transactionId\", jsonData.transactions.booked[0].transactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts6",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 8: GET account transaction ID",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts7",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/accounts/{{accountId}}/transactions/{{transactionId}}"
									},
									"response": []
								},
								{
									"name": "Step 9: GET card-accounts",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"pm.environment.set(\"accountId\", jsonData.cardAccounts[0].resourceId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts8",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts"
									},
									"response": []
								},
								{
									"name": "Step 10: GET card account Id",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts21",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}"
									},
									"response": []
								},
								{
									"name": "Step 11: GET card account balance",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts23",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/card-accounts/{{accountId}}/balances"
									},
									"response": []
								},
								{
									"name": "Step 12: GET card account transactions",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													"var jsonData = JSON.parse(responseBody);",
													"postman.setEnvironmentVariable(\"cardTransactionId\", jsonData.cardTransactions.booked[0].cardTransactionId);"
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-auth-code-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "Consent-ID",
												"value": "{{consentId}}",
												"type": "text"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts29",
												"type": "text"
											}
										],
										"url": {
											"raw": "{{rs}}/v1/card-accounts/{{accountId}}/transactions?bookingStatus=all",
											"host": [
												"{{rs}}"
											],
											"path": [
												"v1",
												"card-accounts",
												"{{accountId}}",
												"transactions"
											],
											"query": [
												{
													"key": "bookingStatus",
													"value": "all"
												},
												{
													"key": "",
													"value": "",
													"disabled": true
												}
											]
										}
									},
									"response": []
								},
								{
									"name": "Step 13: Get Consents",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts51",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								},
								{
									"name": "Step 14: Get Consents Status",
									"event": [
										{
											"listen": "test",
											"script": {
												"exec": [
													""
												],
												"type": "text/javascript",
												"packages": {}
											}
										}
									],
									"request": {
										"method": "GET",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts211",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}/status"
									},
									"response": []
								},
								{
									"name": "Step 15: Delete Consents",
									"request": {
										"method": "DELETE",
										"header": [
											{
												"key": "Content-Type",
												"value": "application/json",
												"type": "default"
											},
											{
												"key": "Authorization",
												"value": "Bearer {{token-from-client-credentials-grant-accounts}}",
												"type": "default"
											},
											{
												"key": "X-Request-ID",
												"value": "bg-accounts25",
												"type": "text"
											}
										],
										"url": "{{rs}}/v1/consents/{{consentId}}"
									},
									"response": []
								}
							],
							"event": [
								{
									"listen": "prerequest",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								},
								{
									"listen": "test",
									"script": {
										"type": "text/javascript",
										"exec": [
											""
										]
									}
								}
							]
						}
					]
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	]
}