Skip to main content

Przykładowy flow AIS (request-response)

Maxime avatar
Written by Maxime
Updated over 4 months ago

Pobranie listy banków dla wskazanego kraju

REQUEST

GET ##{{api_url}}/api/country/PL/bank

RESPONSE

Collapse source

{

"success": true,

"data": [

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 14,

"name": "Agricole",

"officialName": "Credit Agricole",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 19,

"name": "Alior",

"officialName": "Alior Bank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 18,

"name": "Bos",

"officialName": "BOŚ Bank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 10,

"name": "Bzwbk",

"officialName": "BZWBK",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 11,

"name": "Citibank",

"officialName": "Citi Handlowy",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 17,

"name": "Deutsche",

"officialName": "Deutsche Bank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 9,

"name": "Eurobank",

"officialName": "eurobank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 23,

"name": "Fortis",

"officialName": "BGŻ BNP Paribas (PL@NET)",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 22,

"name": "Getin",

"officialName": "Getin Bank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 7,

"name": "Idea",

"officialName": "Idea Bank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": "49B209395AECF221E15671729BED27E205C64FB0",

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 21,

"name": "Ing",

"officialName": "ING Bank Śląski",

"logo": "/img/Bank/Logo/ING.jpg",

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 16,

"name": "Inteligo",

"officialName": "Inteligo",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 8,

"name": "MBank",

"officialName": "mBank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 4,

"name": "Millennium",

"officialName": "Millennium",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 20,

"name": "Optima",

"officialName": "BGŻ Optima",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 2,

"name": "OrangeFinanse",

"officialName": "Orange Finanse",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 13,

"name": "Pekao",

"officialName": "Pekao SA",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 6,

"name": "Pko",

"officialName": "PKO BP SA",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": {

"providerId": 71,

"provider": null,

"providerType": "api",

"dynamicDataPath": null,

"dynamicDataRegex": null

},

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 3,

"name": "Plus",

"officialName": "PLUS BANK S.A.",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 12,

"name": "Pocztowy",

"officialName": "Pocztowy",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 5,

"name": "Polbank",

"officialName": "Raiffeisen Polbank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 15,

"name": "Smart",

"officialName": "Nest Bank",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

},

{

"swiftBicCode": null,

"logoUrlHash": null,

"country": {

"languageCode": "pl",

"currencyCode": "PLN",

"dialCode": "+48",

"flagUrl": "/img/Country/Flag/flag-of-Poland.png",

"flagUrlHash": "B98788F08BD716E53325371F3B39439D63956E5B",

"fullName": "Poland",

"isoCode": "pl",

"alternativeISOCode": null

},

"migrateToBankId": null,

"id": 24,

"name": "Sync",

"officialName": "T-Mobile Usługi Bankowe",

"logo": null,

"color": null,

"isPisp": false,

"isPisForceAccount": false,

"provider": null,

"isAisForceAccount": true

}

]

}

Pobranie parametrów niezbędnych do wykonania SCA w danym ASPSP

REQUEST

GET ##{{api_url}}/api/bank/##{{BankId}}/authorize

RESPONSE

Collapse source

{

"data": {

"button": null,

"originalResponse": null,

"sections": [

{

"header": {

"icon": "/img/Bank/Icons/Bank_SwiftCode.png",

"iconHash": "DEB733CABD7D68F6E7867B902B911043",

"title": "Which account do you want to add?"

},

"items": []

}

]

},

"success": true

}

Uruchomienie sesji AIS dla wskazanego ASPSP

REQUEST

POST ##{{api_url}}/api/bank/##{{BankId}}/authorize

Collapse source

{

userId: "##{{userId}}",

months: 2,

values:[

]

}

RESPONSE

Collapse source

SCA

PSU jest przekierowywany na stronę ASPSP gdzie dokunuje wyboru rachunku(ów) i potwierdza zakres zgody.

Przekazanie oAuth code do PSD2Hub

REQUEST

POST ##{{api_url}}/api/bank/##{{BankId}}/authorize

Collapse source

{

userId:"##{{userId}}",

months: 2,

sessionId: "##{{sessionId}}",

values:[

{

key: "Code",

value:"##{{code}}"

}

]

}

RESPONSE

Collapse source

{

"data": null,

"success": true

}

Pobranie statusu sesji AIS

REQUEST

GET ##{{api_url}}/api/bank/session/##{{sessionId}}

RESPONSE

Collapse source

{

"data": {

"bankAccounts": [

{

"accountName": null,

"balance": 50543.34,

"balanceOverdraft": 0.00,

"balances": [

{

"type": "closingAvailable",

"value": 50543.34

},

{

"type": "closingBooked",

"value": 50543.34

}

],

"bank": {

"bankOrder": null,

"color": null,

"country": {

"alternativeISOCode": null,

"currencyCode": null,

"dialCode": "+48",

"flagUrl": "/Country/Flag/flag-of-Netherlands.png",

"flagUrlHash": "541330ACBB135298BBAF1E776E6E689E221BE494",

"fullName": "Poland",

"isoCode": "pl",

"languageCode": null

},

"id": 87,

"isAisForceAccount": true,

"isPisForceAccount": true,

"isPisp": false,

"logo": "/Bank/Logo/BIGBPLPW.png",

"logoSmall": "/Bank/LogoSmall/BIGBPLPW_small.png",

"logoUrlHash": "C67CF5EC86C6915BCAD31FE959434C2F5789497D",

"migrateToBankId": null,

"name": "Millenium Bank Polska",

"officialName": "Millenium Bank Polska",

"provider": {

"config": "Millenium",

"dynamicDataPath": null,

"dynamicDataRegex": null,

"provider": "PolishApiConnector",

"providerId": 49,

"providerType": "api"

},

"swiftBicCode": "BIGBPLPW"

},

"consent": {

"bankName": "Millenium Bank Polska",

"bankOfficialName": "Millenium Bank Polska",

"bankSwiftCode": "BIGBPLPW",

"createDate": "2020-03-03T09:58:36.523Z",

"expirationDate": "2120-03-03T00:00:00Z",

"externalId": null,

"id": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"previousStatus": "authorized",

"status": "confirmed",

"userId": "cfcb4a8f-e1de-4acc-96a9-d9afcd5d51ad",

"userScope": "aisp"

},

"consentStatus": "active",

"currencyCode": "PLN",

"errorMessage": null,

"externalConsents": [

{

"consentId": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"externalConsentId": null,

"purposes": [

"ais-polish-api-millennium"

]

}

],

"generateNotifications": false,

"hasImage": false,

"holderInfo": "ADAM MILLENNIOWSKI",

"holderType": "individual",

"iban": " PL49 1160 2202 0000 0001 1358 6728",

"id": 1924,

"importDate": "2020-03-03T10:00:38.6737007",

"isActive": true,

"isBusiness": false,

"lastSession": {

"consent": {

"externalId": null,

"id": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"status": "confirmed"

},

"id": "8eae7319-9c38-472d-3c13-08d7bea0a04d",

"stage": "accounts",

"status": "finished",

"syncDate": "2020-03-03T09:58:36.5775247"

},

"lastSessionStatus": "finished",

"lastSyncDate": "2020-03-03T09:58:36.5775247",

"lastTransactionDate": null,

"manualRelation": null,

"providerType": null,

"relations": [],

"retrievedName": null,

"secondaryIdentifiers": [],

"syncError": null,

"syncOffline": true,

"syncStatus": "active",

"transactionSyncDate": null,

"transactionSyncStatus": "inProgress",

"type": "-",

"typeName": "Konto 360",

"userName": "ADAM MILLENNIOWSKI"

},

{

"accountName": null,

"balance": 2424.90,

"balanceOverdraft": 0.00,

"balances": [

{

"type": "closingAvailable",

"value": 2424.90

},

{

"type": "closingBooked",

"value": 2424.90

}

],

"bank": {

"bankOrder": null,

"color": null,

"country": {

"alternativeISOCode": null,

"currencyCode": null,

"dialCode": "+48",

"flagUrl": "/Country/Flag/flag-of-Netherlands.png",

"flagUrlHash": "541330ACBB135298BBAF1E776E6E689E221BE494",

"fullName": "Poland",

"isoCode": "pl",

"languageCode": null

},

"id": 87,

"isAisForceAccount": true,

"isPisForceAccount": true,

"isPisp": false,

"logo": "/Bank/Logo/BIGBPLPW.png",

"logoSmall": "/Bank/LogoSmall/BIGBPLPW_small.png",

"logoUrlHash": "C67CF5EC86C6915BCAD31FE959434C2F5789497D",

"migrateToBankId": null,

"name": "Millenium Bank Polska",

"officialName": "Millenium Bank Polska",

"provider": {

"config": "Millenium",

"dynamicDataPath": null,

"dynamicDataRegex": null,

"provider": "PolishApiConnector",

"providerId": 49,

"providerType": "api"

},

"swiftBicCode": "BIGBPLPW"

},

"consent": {

"bankName": "Millenium Bank Polska",

"bankOfficialName": "Millenium Bank Polska",

"bankSwiftCode": "BIGBPLPW",

"createDate": "2020-03-03T09:58:36.523Z",

"expirationDate": "2120-03-03T00:00:00Z",

"externalId": null,

"id": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"previousStatus": "authorized",

"status": "confirmed",

"userId": "cfcb4a8f-e1de-4acc-96a9-d9afcd5d51ad",

"userScope": "aisp"

},

"consentStatus": "active",

"currencyCode": "EUR",

"errorMessage": null,

"externalConsents": [

{

"consentId": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"externalConsentId": null,

"purposes": [

"ais-polish-api-millennium"

]

}

],

"generateNotifications": false,

"hasImage": false,

"holderInfo": "ADAM MILLENNIOWSKI",

"holderType": "individual",

"iban": " PL52 1160 2202 0000 0001 1358 6771",

"id": 1925,

"importDate": "2020-03-03T10:00:38.7020746",

"isActive": true,

"isBusiness": false,

"lastSession": {

"consent": {

"externalId": null,

"id": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"status": "confirmed"

},

"id": "8eae7319-9c38-472d-3c13-08d7bea0a04d",

"stage": "accounts",

"status": "finished",

"syncDate": "2020-03-03T09:58:36.5775247"

},

"lastSessionStatus": "finished",

"lastSyncDate": "2020-03-03T09:58:36.5775247",

"lastTransactionDate": null,

"manualRelation": null,

"providerType": null,

"relations": [],

"retrievedName": null,

"secondaryIdentifiers": [],

"syncError": null,

"syncOffline": true,

"syncStatus": "active",

"transactionSyncDate": null,

"transactionSyncStatus": "inProgress",

"type": "-",

"typeName": "Konto walutowe w EUR",

"userName": "ADAM MILLENNIOWSKI"

},

{

"accountName": null,

"balance": 37971.08,

"balanceOverdraft": 0.00,

"balances": [

{

"type": "closingAvailable",

"value": 37971.08

},

{

"type": "closingBooked",

"value": 37971.08

}

],

"bank": {

"bankOrder": null,

"color": null,

"country": {

"alternativeISOCode": null,

"currencyCode": null,

"dialCode": "+48",

"flagUrl": "/Country/Flag/flag-of-Netherlands.png",

"flagUrlHash": "541330ACBB135298BBAF1E776E6E689E221BE494",

"fullName": "Poland",

"isoCode": "pl",

"languageCode": null

},

"id": 87,

"isAisForceAccount": true,

"isPisForceAccount": true,

"isPisp": false,

"logo": "/Bank/Logo/BIGBPLPW.png",

"logoSmall": "/Bank/LogoSmall/BIGBPLPW_small.png",

"logoUrlHash": "C67CF5EC86C6915BCAD31FE959434C2F5789497D",

"migrateToBankId": null,

"name": "Millenium Bank Polska",

"officialName": "Millenium Bank Polska",

"provider": {

"config": "Millenium",

"dynamicDataPath": null,

"dynamicDataRegex": null,

"provider": "PolishApiConnector",

"providerId": 49,

"providerType": "api"

},

"swiftBicCode": "BIGBPLPW"

},

"consent": {

"bankName": "Millenium Bank Polska",

"bankOfficialName": "Millenium Bank Polska",

"bankSwiftCode": "BIGBPLPW",

"createDate": "2020-03-03T09:58:36.523Z",

"expirationDate": "2120-03-03T00:00:00Z",

"externalId": null,

"id": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"previousStatus": "authorized",

"status": "confirmed",

"userId": "cfcb4a8f-e1de-4acc-96a9-d9afcd5d51ad",

"userScope": "aisp"

},

"consentStatus": "active",

"currencyCode": "PLN",

"errorMessage": null,

"externalConsents": [

{

"consentId": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"externalConsentId": null,

"purposes": [

"ais-polish-api-millennium"

]

}

],

"generateNotifications": false,

"hasImage": false,

"holderInfo": "ADAM MILLENNIOWSKI",

"holderType": "individual",

"iban": " PL98 1160 2202 0000 0001 1372 7466",

"id": 1926,

"importDate": "2020-03-03T10:00:38.7062961",

"isActive": true,

"isBusiness": false,

"lastSession": {

"consent": {

"externalId": null,

"id": "864ae7aa-8801-4e38-b051-5c17533baf6a",

"status": "confirmed"

},

"id": "8eae7319-9c38-472d-3c13-08d7bea0a04d",

"stage": "accounts",

"status": "finished",

"syncDate": "2020-03-03T09:58:36.5775247"

},

"lastSessionStatus": "finished",

"lastSyncDate": "2020-03-03T09:58:36.5775247",

"lastTransactionDate": null,

"manualRelation": null,

"providerType": null,

"relations": [],

"retrievedName": null,

"secondaryIdentifiers": [],

"syncError": null,

"syncOffline": true,

"syncStatus": "active",

"transactionSyncDate": null,

"transactionSyncStatus": "inProgress",

"type": "-",

"typeName": "Konto Osobiste Premium",

"userName": "ADAM MILLENNIOWSKI"

}

],

"errors": [],

"sessionExternalId": null,

"sessionStatus": "finished",

"stage": "accounts"

},

"success": true

}

Did this answer your question?