Salt Edge PSD2 Compliance Logo

V2

Tokens

These endpoints are responsible for implementing authentication and authorization of PSU. Process of token creation starts once PSU grants his consent to TPP. At the end of authorization, Connector should issue an access_token which can be used for furhter actions. You can find below sequence diagrams represeting oauth authorization flow.

BG OAuth Authentication Flow BG OAuth Authentication Flow

Create

Create an access token with a set of access rights, named scopes. As a result, Connector should send an success, update or fail callback to Salt Edge PSD2 Compliance with the result of the operation, be it a success, fail or request for additional steps.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InByb3ZpZGVyX2NvZGUiOiJkZW1vYmFuayIsInZhbGlkX3VudGlsIjoiMjAyMC0wOC0wNSIsInNlc3Npb25fc2VjcmV0IjoiYjdrLVF4QzN2ZEEtTTQ4cGV4aVMiLCJyZWN1cnJpbmdfaW5kaWNhdG9yIjp0cnVlLCJhY2Nlc3MiOnsiYmFsYW5jZXMiOltdLCJ0cmFuc2FjdGlvbnMiOltdfSwicmVkaXJlY3RfdXJsIjoidXNlci53aWxsLmJlL3JlZGlyZWN0ZWQvaGVyZSIsImF1dGhvcml6YXRpb25fdHlwZSI6Im9hdXRoIiwiYXBwX25hbWUiOiJFeGFtcGxlIE5hbWUifSwiZXhwIjoxNzMyNTEwMzU5LCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.DRVOF7i8C3tL9HtpllN0ljf1SR0ugpy0z0ycni1mWY3WA30MRjq_Yy-sfeRmGXYK7ZmK9I4SkZkEr35Bv_kDkct-UQhHfIu_RBNE2CUkR7LZ3C8-H4mirGsUGkMW_s0Dil1Hh6IIyhF5jfvbXD1AJp45uyjrvBAvJlFjtLvPuv_ctEyiN4QtIW7HRSojP548w44UsHtDsy_5Q_U9g7Gaec-2tqG6fYfHjdmZ7LUeYFKYGNEsz8rK2vT6j2LfWs_ZGPDS_lzZrqlYptUijULGDU8fSbVRJw7Jm01uk0pfseiEb1Tn_2DWONuqjeZ7ldgg66XrJh0BsHkmMcRDs3RXaw" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 771" \ 
 -H "Psu-Corporate-ID: 999" \ 
 -X POST "https://your.connector.url/api/priora/v2/tokens"

Example of request parameters

Request

POST https://your.connector.url/api/priora/v2/tokens

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Psu-Corporate-ID string, optional PSU corporate identifier (optional).
Unpacked Request Authorization
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code should be returned.


Revoke

Revoke an already existing and active access token.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InByb3ZpZGVyX2NvZGUiOiJkZW1vYmFuayIsInNlc3Npb25fc2VjcmV0IjoiaDI5Yzk0MVBRNF9rNl82UG4tbzUifSwiZXhwIjoxNzMyNTEwMzYwLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.LVJzSe9XDPSOwoU_P468exUyEGBeB3FPoxHznYUgbt5nZw0ryLrTMCioymnNweuh7kAB2ZSUe6cSssink6OsyGABT6bW2IrCxOWFvc4auFVznYjPfxv0_Urj0gKjl3DEAmtHm6H5RLchMgNkxpByXACFKQ47TGEI2THkVDkg6XWipx3IHSw2SODgEAN7VH9ZaWHdfvKTHOskoc3a4gOfBS3vcSjKZPIf9fMb25Ad-t3QDbqpzRwqj8gQ3gI9kAL8NsJhbhbgh5N7hto14iO5x9zeWoZAlDA1-310hESmk6qnH5XYJPEOZvUyqZG6AfHiSqkATetZjGEVyjZGlaKDmw" \ 
 -H "Access-Token: 65adc909f5676f3902787ecb6f379c1c48bfc18a222157713808274b100b9e255f7b4b59a3ecd7689cb2abe26f8705dfd89b7a0cc9e9a07a587dc64a7c4572ad" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 843" \ 
 -X PATCH "https://your.connector.url/api/priora/v2/tokens/revoke"

Example of request parameters

{"data":{"provider_code":"demobank","session_secret":"h29c941PQ4_k6_6Pn-o5"},"exp":1574093209}
Request

PATCH https://your.connector.url/api/priora/v2/tokens/revoke

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Access-Token string, required The token which is created by a connector as a result of successful authentication.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code with an empty JSON "{}" should be returned.


AIS

This endpoint is responsible for refreshing account information on connector side.

Refresh

In case the connector uses a different database from Core Banking, this endpoint enables the process of refreshing accounts and transactions on connector side before sending them to Salt Edge PSD2 Compliance Solution.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InByb3ZpZGVyX2NvZGUiOiJkZW1vYmFuayIsInNlc3Npb25fc2VjcmV0IjoiaDI5Yzk0MVBRNF9rNl82UG4tbzUifSwiZXhwIjoxNzMyNTEwMzYwLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.LVJzSe9XDPSOwoU_P468exUyEGBeB3FPoxHznYUgbt5nZw0ryLrTMCioymnNweuh7kAB2ZSUe6cSssink6OsyGABT6bW2IrCxOWFvc4auFVznYjPfxv0_Urj0gKjl3DEAmtHm6H5RLchMgNkxpByXACFKQ47TGEI2THkVDkg6XWipx3IHSw2SODgEAN7VH9ZaWHdfvKTHOskoc3a4gOfBS3vcSjKZPIf9fMb25Ad-t3QDbqpzRwqj8gQ3gI9kAL8NsJhbhbgh5N7hto14iO5x9zeWoZAlDA1-310hESmk6qnH5XYJPEOZvUyqZG6AfHiSqkATetZjGEVyjZGlaKDmw" \ 
 -H "Access-Token: 65adc909f5676f3902787ecb6f379c1c48bfc18a222157713808274b100b9e255f7b4b59a3ecd7689cb2abe26f8705dfd89b7a0cc9e9a07a587dc64a7c4572ad" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 843" \ 
 -X POST "https://your.connector.url/api/priora/v2/ais/refresh"

Example of request parameters

{"data":{"provider_code":"demobank","session_secret":"h29c941PQ4_k6_6Pn-o5"},"exp":1574093209}
Request

POST https://your.connector.url/api/priora/v2/ais/refresh

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Access-Token string, required The token which is created by a connector as a result of successful authentication.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code with an empty JSON "{}" should be returned.


Accounts

Account Information Endpoints are responsible for the access to account identification data, account balances and account transactions history.

Get

Fetch list of accounts belonging to a PSU and all relevant information about them.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InNlc3Npb25fc2VjcmV0IjoiY3ppYVRYZ0JhQ1llckVIRHZXRTkifSwiZXhwIjoxNzMyNTEwMzYxLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.hP7ca4xMvT0XULOGuOjROg7zevqwyMWwVBsDun4t4Up3e_WUDNSExWG9zHEs5Id2eDN6RQRofBVlZVUM2STwgS5JThd8XIMrHmamwwK-hLa7pbv_oxjjtyru0309sOmLZoz4GAP1sDf2XzCWQMwc91cM7PdYYhP9rZdKiV1KSV6KTGQRIFUBWVu9tFSEyLpGfAchDR6TfzcByT3LKqLwxSNU46M4JTSttngd1LIKDBga8PT1PRQHAH6tkXxa-VWkaH2CTylH5W14Ce-JxdXKd8rQu-uGyy65v-gjRFUijYIdn47TF5RawVIWZgUm3Sl7wPxSJfy_YqbWaZ_0vCneIQ" \ 
 -H "Access-Token: e4649d535f5e3125bcc939e2f3b33a070127be520e2f1134ed8722976703e0b32d9354fb147014103ce39f6eed428ac65d82659b6289901449c73d12d939c28f" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 765" \ 
 -X GET "https://your.connector.url/api/priora/v2/accounts"

Example of request parameters

{"data":{"session_secret":"cziaTXgBaCYerEHDvWE9"},"exp":1574093209}

Example of response

{"data":[{"id":"421","name":"Example name","iban":"FK54RAND61068429674579","currency":"USD","extra":{},"cash_account_type":"TAXE","product":"Girokonto","bban":"4215 4215 6421","bic":"BARCGB22XXX","sort_code":"56-83-17","msisdn":"447912345678","status":"enabled","balances":[{"type":"openingAvailable","currency":"USD","amount":"213.35","credit_limit_included":false,"reference_date":"2019-08-21","last_change_date_time":"2019-08-21T16:04:49.021Z","last_committed_transaction":"string"}]}]}
Request

GET https://your.connector.url/api/priora/v2/accounts

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Access-Token string, required The token which is created by a connector as a result of successful authentication.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code should be returned.


Transactions

This endpoint is responsible for fetching transactions which belong to requested account.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7ImFjY291bnRfaWQiOiI4NyIsImZyb21fZGF0ZSI6IjIwMTktMTEtMTgiLCJ0b19kYXRlIjoiMjAxOS0xMS0xOCIsImZyb21faWQiOiIxMDEifSwiZXhwIjoxNzMyNTEwMzYxLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.bBegLVPOShTbUa4gW8wdOyLJ4oWrcbIw9nukaItwBO9kgJ7jNU8WC_ZD28KKCBv2Ac3HCJq1J6UgmYVShenaU5wLOtXfAyU0xI8jozLoQBweOh6LAFd_4NHZemMt9qFcOcnTD_aY4fYmB5vp1drP95Xrm-kI-rWUSHRu1tuOe09pPslIcnTspdB223cK1oJC2Uu3rPJ69Ga0TIip-UpLtMOSpp5O5mt1zj0WkVv8lN1mTFLZLMDSVqjIXmvz7_eZ7VC-HQvgcEzT-i2URHR4XhDbl_CQ_JPilVAUrx6rVIny4YBRQjRQPh__6AwgZ3YgMTG4YfiQluRKdF2SGibemQ" \ 
 -H "Access-Token: 2cab054fa0dfd20d725ef46c533b537701c29d47ebea97893374d4e47714e49e2e331764e4f4a20d5e285dbb08af9566e14a8f597230bca6d9f5b3b2048a71f5" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 866" \ 
 -X GET "https://your.connector.url/api/priora/v2/accounts/:account_id/transactions"

Example of request parameters

{"data":{"account_id":"87","from_date":"2019-11-18","to_date":"2019-11-18","from_id":"101"},"exp":1574093209}

Example of response

{"data":[{"id":"214","amount":"144","currency":"USD","status":"booked","creditor_details":{"name":"John Smith","account":{"iban":"FK54RAND61068428514573","bban":"4210 3213 3211","currency":"USD","masked_pan":"************3241","msisdn":"447912345678"}},"debtor_details":{"name":"Franklin Smith","account":{"iban":"FK54RAND610684285145421","bban":"4210 3213 3212","currency":"USD","masked_pan":"************3241","msisdn":"447912345314"}},"remittance_information":{"structured":"Example of remittance information structured","unstructured":"Example of remittance information unstructured"},"currency_exchange":[{"contract_identification":"Example of contract identification","exchange_rate":"0.12","quotation_date":"2019-12-13","source_currency":"USD","target_currency":"USD","unit_currency":"USD"}],"extra":{"check_id":"41412","mandate_id":"512314251","bank_transaction_code":"GGN5151MGM415","entry_reference":"Example of entry reference","purpose_code":"Example of purpose code","proprietary_bank_transaction_code":"Example of proprietary bank transaction code","additional_information":"Example of additional information","ultimate_creditor":"Example of ultimate creditor","ultimate_debtor":"Example of ultimate debtor"},"value_date":"2019-08-11","booking_date":"2019-08-12"}],"meta":{"next_id":"151"}}
Request

GET https://your.connector.url/api/priora/v2/accounts/:account_id/transactions

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Access-Token string, required The token which is created by a connector as a result of successful authentication.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code should be returned.


Card Accounts

Card account Information Endpoints are responsible for the access to card account identification data and card account transactions history.

Get

Fetch list of card accounts belonging to a PSU and all relevant information about them.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InNlc3Npb25fc2VjcmV0IjoiY3ppYVRYZ0JhQ1llckVIRHZXRTkifSwiZXhwIjoxNzMyNTEwMzYyLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.YTaM5YzxpC_msYPz_OV6W21IOUR7fEqTtmpmoOByoHFT2pSE5AACb1dnkE2ZzRP4SKM3lRKYxNcMGkyx8mCmj3lknI__QzLnsFsTuH5BJS3QweqSGanG1bFeEMQimBN-TnxhXoUcoVO5dHLaH8NDonnz1-oeRpdvns5-BBEFIfObUUE2LU3PHJZbLmBJMPJZ0HdmWMrsJ7OT2WQTLzo-3GwuXRZ-dn26n8a4VlsPst91NPXWXNwi0RYGiOMf2xCCrVdQyBRobFg1U_TgrC_3hmNLbpL15WgEVw0NkeBNYUyfznhYU4hzSVQ2yNJso68GupxLnZqCYFACD9HMkkS53A" \ 
 -H "Access-Token: e4649d535f5e3125bcc939e2f3b33a070127be520e2f1134ed8722976703e0b32d9354fb147014103ce39f6eed428ac65d82659b6289901449c73d12d939c28f" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 765" \ 
 -X GET "https://your.connector.url/api/priora/v2/card_accounts"

Example of request parameters

{"data":{"session_secret":"cziaTXgBaCYerEHDvWE9"},"exp":1574093209}

Example of response

{"data":[{"id":"421","name":"Example name","masked_pan":"************3241","currency":"EUR","product":"Basic Credit","status":"enabled","credit_limit":{"currency":"EUR","amount":"15000"},"balances":[{"balance_type":"interimBooked","balance_amount":{"currency":"EUR","amount":"14355.72"}},{"balance_type":"closingBooked","balance_amount":{"currency":"EUR","amount":"4175.86"}}],"extra":{"usage":"PRIV","details":"string"}}]}
Request

GET https://your.connector.url/api/priora/v2/card_accounts

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Access-Token string, required The token which is created by a connector as a result of successful authentication.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code should be returned.


Transactions

Read transaction reports or transaction lists of a given card account addressed by account-id.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7ImFjY291bnRfaWQiOiI4NyIsImZyb21fZGF0ZSI6IjIwMTktMTEtMTgiLCJ0b19kYXRlIjoiMjAxOS0xMS0xOCIsImZyb21faWQiOiIxMiIsInNlc3Npb25fc2VjcmV0IjoieVBzZXRDeVA3Y0d6bnZiMWZBRkEifSwiZXhwIjoxNzMyNTEwMzYyLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.jb7958pT_M8Y5MAjl8Gl2uMdiSEehp1O9eik8UlL1yZ9Lkgs5aYDVQdTA7bcs6BykTSKC75H2uUhZKGDreMLg0u6xfzZ9gH5nIsQhyXZAmHOAE808SxCU3R5YLH_b92DQiroYpmPnQvPNWAm9FVKi53UD1S_2L30PlHpMokozTsiKosqpt-UUTpJO8YAZ0g6MW07vYPSIQldNhazsr7zV4yv7ZMXxG8-3TAe1SONFZKp8XZTim8k69b54WzIemIW1_0MZi8YxRUHerYXpjBj9jXgTVJeBCCEBQGYmsgbvuu3SA4-FwmndhoGopH2cDw4h44zHJZvTrXQP-5zMjMZJg" \ 
 -H "Access-Token: 2cab054fa0dfd20d725ef46c533b537701c29d47ebea97893374d4e47714e49e2e331764e4f4a20d5e285dbb08af9566e14a8f597230bca6d9f5b3b2048a71f5" \ 
 -H "Accept: application/json" \ 
 -H "Content-Type: application/json" \ 
 -H "Client-Id: 866" \ 
 -X GET "https://your.connector.url/api/priora/v2/card_accounts/:account_id/transactions"

Example of request parameters

{"data":{"account_id":"87","from_date":"2019-11-18","to_date":"2019-11-18","from_id":"12","session_secret":"yPsetCyP7cGznvb1fAFA"},"exp":1574093209}

Example of response

{"data":[{"id":"214","terminal_id":"example-of-terminal-id","transaction_date":"2020-02-12","booking_date":"2020-02-12","status":"booked","currency":"EUR","amount":"123","currency_exchange":[{"source_currency":"EUR","exchange_rate":"0.15","unit_currency":"0.12","target_currency":"EUR","quotation_date":"2020-02-12","contract_identification":"Example of contract identification"}],"original_amount":{"currency":"EUR","amount":"123"},"markup_fee":{"currency":"EUR","amount":"123"},"markup_fee_percentage":"0.3","card_acceptor_id":"example-of-acceptor-id","card_acceptor_address":{"street":"rue blue","building_number":"89","city":"Paris","postal_code":"75000","country":"FR"},"merchant_category_code":"example-of-merchant-category-code","masked_pan":"************3241","transaction_details":"Example of details","invoiced":true,"proprietary_bank_transaction_code":"example-code"}],"meta":{"next_id":"151"}}
Request

GET https://your.connector.url/api/priora/v2/card_accounts/:account_id/transactions

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key.
Access-Token string, required The token which is created by a connector as a result of successful authentication.
Accept string, required Media type that is acceptable for the response. Allowed values: application/json
Content-Type string, required The media type of the body of the request. Allowed values: application/json
Client-Id integer, required TPP application identifier in Salt Edge PSD2 Compliance.
Consent-Id integer, optional ID of the corresponding consent object.
Psu-Device-ID string, optional UUID (Universally Unique Identifier) for a device, which is used by the PSU, if available. UUID identifies either a device or a device dependant application installation. In case of an installation identification this ID need to be unaltered until removal from device.
Psu-User-Agent string, optional The forwarded Agent header field of the HTTP request between PSU and TPP, if available.
Psu-Geo-Location string, optional The forwarded Geo Location of the corresponding HTTP request between PSU and TPP if available.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response headers
Header Type Description
Retry-After integer, optional Amount of time in seconds after which Salt Edge PSD2 Compliance Solution resends the previously failed request.
Response

Upon successful request, 200 status code should be returned.


Sessions

Session Callback Endpoints are responsible for assuring communication between ASPSP and TPP, where ASPSP notifies about its Redirect SCA authorisation page and if the authorisation process is successful or failed.

Success

Success callback should be sent to Salt Edge PSD2 Compliance when all required verification steps have been passed, and therefore access is granted.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7ImV4dHJhIjp7fSwiY29uc2VudCI6eyJiYWxhbmNlcyI6W3siaWJhbiI6IkRFMjMxMDAxMDAxMDEyMzQ1Njc4OSIsImJiYW4iOiI1MzkwIDA3NTQgNzAzNCIsIm1zaXNkbiI6IjQ0NzkxMjM0NTY3OCIsImJpYyI6IkJBUkNHQjIyWFhYIiwibWFza2VkX3BhbiI6IioqKioqKioqKioqKjMyNDEifV0sInRyYW5zYWN0aW9ucyI6W3siaWJhbiI6IkRFMjMxMDAxMDAxMDEyMzQ1Njc4OSIsImJiYW4iOiI1MzkwIDA3NTQgNzAzNCIsIm1zaXNkbiI6IjQ0NzkxMjM0NTY3OCIsImJpYyI6IkJBUkNHQjIyWFhYIiwibWFza2VkX3BhbiI6IioqKioqKioqKioqKjMyNDEifV19LCJ0b2tlbiI6IjVrSGlqeG1fREVXb1A1bmNIV2NGIiwic2Vzc2lvbl9zZWNyZXQiOiJCVnV2ZVNMUUNyQTVqQllVeXhYZSIsInVzZXJfaWQiOiIxIn0sImV4cCI6MTczMjUxMDM2MywiaXNzIjoicHJpb3JhLnNhbHRlZGdlLmNvbSJ9.vgJhFu_1xKi9_rFMBc2hL8gphl-X8Xg7kUt7a25Zq95oaJyfrL6G5tszxtxuCdnvP6FmcSwanoNXezR7keYyYWZRFrQr2m9Ay-v3ZpQX8nE0z2UwdTO7gtLEX8BfP9MhEUwocRnKGmb_uSaq8hS1qLhSSI3dokKDQJ3yijQrEZybWZiarBgOLqrOil_LsFlfOQtCrwjvBONNYxtpA3waiv_B_W-CIbBSMf8aqFDxyua7G9gcnlKshkl96k5SOhoI9WIwOqSym5EDM62DttJ6zAqz_kmo_7fFuHxdhX7IeStt3zz478X8D4YwIuTPsHLkNQyRb0LRqmhIULaawBMjuw" \ 
 -H "App-Id: qjQYP-jCx-8FBsZSgNVzIw" \ 
 -H "App-Secret: -XeeN2UhtdphUGtI-FZpzg" \ 
 -X PATCH "/api/connectors/v2/sessions/:session_secret/success"

Example of request parameters

Example of response

{"data":{},"meta":{"time":"2019-11-18T16:04:48.773Z"}}
Request

PATCH /api/connectors/v2/sessions/:session_secret/success

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key. Can raise: AuthorizationMissing
App-Id string, required Provider's app_id from connection details tab. Can raise: ProviderNotFound, ProviderDisabled, ConfigurationError
App-Secret string, required Provider's app_secret from connection details tab.
Unpacked Request Authorization
Response

Upon successful request, 200 status code will be returned. See ‘Related Errors’ table for other possibilities.


data
hash, optional
Wrapper for the data.
Related Errors
Class Code Description
SessionClosed 400 Session specified in request is already closed and cannot be modified.
ConfigurationError 400 Missing configurations in dashboard.
SessionExpired 401 Found session is expired and cannot be processed anymore.
AuthorizationMissing 401 Authorization header is missing.
SessionFinalised 403 Session specified in request is already finalised and cannot be processed.
SessionNotFound 404 Session specified in request does not exist or cannot be retrieved.
ProviderNotFound 404 Provider specified in request does not exist or cannot be retrieved.
ProviderDisabled 406 Cooperation with specified Provider is impossible.

Update

Update callback may be accessed multiple times in order to request multiple steps of authorization or to send other updates to Salt Edge PSD2 Compliance session.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InNlc3Npb25fZXhwaXJlc19hdCI6IjIwMjAtMDUtMTBUMTI6MzM6NTAuMjE1WiIsInN0YXR1cyI6InJlY2VpdmVkIiwic2NhX3N0YXR1cyI6InBzdUlkZW50aWZpZWQiLCJyZWRpcmVjdF91cmwiOiJodHRwczovL3JlZGlyZWN0LXVybC5jb20iLCJleHRyYSI6e30sInNlc3Npb25fc2VjcmV0IjoiQlZ1dmVTTFFDckE1akJZVXl4WGUifSwiZXhwIjoxNzMyNTEwMzYzLCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.a6R1qYS1mCTd2jgoaCwrOh36YCYlFqz1zEB9cVgGwXXS1KUJLEpfQum-eZ_PLtJnE6mYFPjg3gFkxBjCMIT9JBqAIzUiSTjzxdhzWsVh2Ei_AFKJbtYQ16-G2Rv32f9HVz0IZRiOWvxd_gFy_irxosE-RHVnUcvdUG7KRLXn883q6X5nfYyFBKpBXv5E6tDdeXknOoo19Ap1A8ibCbyH8AXEIqyMVRcf7Y-KqCqFeZ66ExxQRrV5Di1H1AQL4wXq-_zmoRZv0PF3CUTeXuQuNhaMoQQl0wRxP-d-kn_m0zvNZRhO9CJBWPXMEIv8JbmfqKWds0CMGGfuMw9HcWJ0eQ" \ 
 -H "App-Id: q5QE7Dqlpm1d5weLS5pn7w" \ 
 -H "App-Secret: y8imt1cgG8x2zmBMrF-oxw" \ 
 -X PATCH "/api/connectors/v2/sessions/:session_secret/update"

Example of request parameters

Example of response

{"data":{},"meta":{"time":"2019-11-18T16:04:48.853Z"}}
Request

PATCH /api/connectors/v2/sessions/:session_secret/update

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key. Can raise: AuthorizationMissing
App-Id string, required Provider's app_id from connection details tab. Can raise: ProviderNotFound, ProviderDisabled, ConfigurationError
App-Secret string, required Provider's app_secret from connection details tab.
Unpacked Request Authorization
Response

Upon successful request, 200 status code will be returned. See ‘Related Errors’ table for other possibilities.


data
hash, optional
Wrapper for the data.
Related Errors
Class Code Description
SessionClosed 400 Session specified in request is already closed and cannot be modified.
ConfigurationError 400 Missing configurations in dashboard.
SessionExpired 401 Found session is expired and cannot be processed anymore.
AuthorizationMissing 401 Authorization header is missing.
SessionFinalised 403 Session specified in request is already finalised and cannot be processed.
SessionNotFound 404 Session specified in request does not exist or cannot be retrieved.
ProviderNotFound 404 Provider specified in request does not exist or cannot be retrieved.
ProviderDisabled 406 Cooperation with specified Provider is impossible.

Fail

Fail callback should be used when authorization process has been compromised for any reason: broken request, invalid credentials, etc.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7InNlc3Npb25fc2VjcmV0IjoiM1BRaXB1RFBvV3BhMTFGY1ZFVjYiLCJlcnJvcl9jbGFzcyI6IkludGVybmFsUHJvdmlkZXJFcnJvciIsImVycm9yX21lc3NhZ2UiOiJJbnRlcm5hbCBlcnJvciIsImV4dHJhIjp7fX0sImV4cCI6MTczMjUxMDM2MywiaXNzIjoicHJpb3JhLnNhbHRlZGdlLmNvbSJ9.WoLXXn-oJrGfV0S-lcdg5BeIOhi52BHKZsDqXFCH8xHK1i9Yg0AU7pHtwd9auDNZjG4LKdAfv1wUUXHhgsPhn6oiSwAgp7ypBMCDWy6ev9WfcWNh5eZEPGshuOWFqLpvYj8-uBjrfza2ZBUU8JNYFbZcQqr3w4kKIHvP2bwIr5-Mduz-3wSw7-p26xz4pMvnph_-GDQxzB0RBW6LG9nnx982Hx7C8-F-Azc3bdRj-BtJoh2t6bFWuzZerzBxlA79d-xEXqpzkxvDr1_oxYLRa8pZZnzG5qlPFlot6UrXxbeW00gDWCKjX6a2PwmeOAC7bj0MNB199H2cPTxRLq-BEQ" \ 
 -H "App-Id: xU7SyhPrd95GAPSMNo_XMQ" \ 
 -H "App-Secret: BVSkESo7zpRdzk_hWUUwCQ" \ 
 -X PATCH "/api/connectors/v2/sessions/:session_secret/fail"

Example of request parameters

{"data":{"session_secret":"3PQipuDPoWpa11FcVEV6","error_class":"InternalProviderError","error_message":"Internal error","extra":{}},"exp":1574093208}

Example of response

{"data":{},"meta":{"time":"2019-11-18T16:04:48.710Z"}}
Request

PATCH /api/connectors/v2/sessions/:session_secret/fail

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key. Can raise: AuthorizationMissing
App-Id string, required Provider's app_id from connection details tab. Can raise: ProviderNotFound, ProviderDisabled, ConfigurationError
App-Secret string, required Provider's app_secret from connection details tab.
Unpacked Request Authorization
Response

Upon successful request, 200 status code will be returned. See ‘Related Errors’ table for other possibilities.


data
hash, optional
Wrapper for the data.
Related Errors
Class Code Description
SessionClosed 400 Session specified in request is already closed and cannot be modified.
ConfigurationError 400 Missing configurations in dashboard.
SessionExpired 401 Found session is expired and cannot be processed anymore.
AuthorizationMissing 401 Authorization header is missing.
SessionFinalised 403 Session specified in request is already finalised and cannot be processed.
SessionNotFound 404 Session specified in request does not exist or cannot be retrieved.
ProviderNotFound 404 Provider specified in request does not exist or cannot be retrieved.
ProviderDisabled 406 Cooperation with specified Provider is impossible.

Tokens

Token Endpoints allow Connector to perform operations like getting the list of all tokens created by a specific PSU and revoking them. This endpoints prove to be useful in case ASPSP decides to give PSU the possibility to control and revoke consents using his personal Web-Banking Dashboard.

Index

Returns the list of access tokens issued by Provider for Salt Edge PSD2 Compliance Solution.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7ImtpbmQiOiJyZXZva2VkIiwiZnJvbV9pZCI6MzAyLCJmcm9tX2RhdGUiOiIyMDE5LTA4LTIwVDE2OjA0OjQ5LjAyMVoiLCJwZXJfcGFnZSI6NTAsImN1c3RvbWVyX2lkIjo4MjF9LCJleHAiOjE3MzI1MTAzNjQsImlzcyI6InByaW9yYS5zYWx0ZWRnZS5jb20ifQ.BC4aaXnXF-UikhQPNrdH7rixKw4JB-_slUnMaGJz8kotOhJFvERcybIaFUKFdLiAVLnj5Btc1mI81ynE_sAj8lVxtf1CZtaAVjZ3ZriiucesjImxADsaB1VWY4C1wpg2gH5vtPykR8CF1ti2yh-PlQ8eT6QCY72YXgKCFOCFeawL9w6OjU6zuEtoHyoBMH-lz3FWCrMhobwPZJHXOlBYyzjehp3_YhFa3u6XFRMEYtH4bpTTeJYzfLE21RSqhzw3-BkIqX9LRuryX6MoyNucwlqN0UUNrDllbCBaMabgjKVX7aFYw9Js3q7vkZWbpXtzCCNAidYsmUpejbYln4cyJA" \ 
 -H "App-Id: G9SgwyF-RdxsjCu3f3mLnw" \ 
 -H "App-Secret: Az6qAhT6pdezVjAex58qqQ" \ 
 -X GET "/api/connectors/v2/tokens"

Example of request parameters

{"data":{"kind":"revoked","from_id":302,"from_date":"2019-08-20T16:04:49.021Z","per_page":50,"customer_id":821},"exp":1574093209}

Example of response

{"data":{"tokens":[{"id":132,"priora_customer_id":931,"request_id":"aSJFJA1a399","access":{"allPsd2":"allAccounts"},"status":"accepted","valid_until":"2019-11-18T16:04:49.001Z","provider_code":"nextgenpsd2_demobank","customer_id":13455,"created_at":"2019-11-10T16:04:49.001Z","updated_at":"2019-11-10T16:04:49.001Z"}]},"meta":{"next_id":303,"time":"2010-11-18T16:04:49.001Z"}}
Request

GET /api/connectors/v2/tokens

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key. Can raise: AuthorizationMissing
App-Id string, required Provider's app_id from connection details tab. Can raise: ProviderNotFound, ProviderDisabled, ConfigurationError
App-Secret string, required Provider's app_secret from connection details tab.
Unpacked Request Authorization
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response

Upon successful request, 200 status code will be returned. See ‘Related Errors’ table for other possibilities.


Related Errors
Class Code Description
ConfigurationError 400 Missing configurations in dashboard.
AuthorizationMissing 401 Authorization header is missing.
CustomerNotFound 404 PSU specified in request does not exist or cannot be retrieved.
ProviderNotFound 404 Provider specified in request does not exist or cannot be retrieved.
ProviderDisabled 406 Cooperation with specified Provider is impossible.

Revoke

Revoke callback needs to be called any time a token is revoked on the Provider Connector side.

CURL

curl -i  \ 
 -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJkYXRhIjp7fSwiZXhwIjoxNzMyNTEwMzY0LCJpc3MiOiJwcmlvcmEuc2FsdGVkZ2UuY29tIn0.VJ0Sg6Wy473wBxT_mdviCm3CV6MZhSAJVADL4m1iriCaKqoDFIKR4QG0rdM4BHcseHQ0IP8W_-rIgxnoHCuUxBsPrEyhVeLUeBr5FD3Pm5BF2RZ1cao0QTYV4d42R925otvpe_VyzP0OHEHX-9UE2cqlMs7F2nTYj_wbTD02Rg1NorzjfRAdSGfSl3nwgsd9EZgQSd3kTpQ6xhWuiLDmKrxNX-8FCXSwiUQNyM9lSetIPWtWhPeruFF2Ol2Vt1mc8_fTxaXISLwfV6VUgbZv_0gDoe0-j7w-E32wZ07QMW5_VaVj_uCfi7xNoN6_rgQgomIdMiFLe7dYCtuTdlK7bg" \ 
 -H "App-Id: cfOK5P9RVooLksNv8il3rw" \ 
 -H "App-Secret: rwkTbW41SPT55uo1I_-UGQ" \ 
 -H "Token: example_Token" \ 
 -X PATCH "/api/connectors/v2/tokens/revoke"

Example of request parameters

{"data":{},"exp":1574093208}

Example of response

{"data":{"revoked":true},"meta":{"time":"2019-11-18T16:04:48.928Z"}}
Request

PATCH /api/connectors/v2/tokens/revoke

Headers
Header Type Description
Authorization string, required JSON Web Token containing payload, signed using RSA256 and application.private_key. Can raise: AuthorizationMissing
App-Id string, required Provider's app_id from connection details tab. Can raise: ProviderNotFound, ProviderDisabled, ConfigurationError
App-Secret string, required Provider's app_secret from connection details tab.
Token string, required Token for which we are requesting info. Can raise: TokenNotFound, TokenMissing
Unpacked Request Authorization
data
hash, required
Wrapper for the data.
exp
integer, required
The lifetime of the request in timestamp UTC format. Values greater than: Current time.
Response

Upon successful request, 200 status code will be returned. See ‘Related Errors’ table for other possibilities.


Related Errors
Class Code Description
ConfigurationError 400 Missing configurations in dashboard.
TokenMissing 400 This request cannot be performed without TOKEN header.
AuthorizationMissing 401 Authorization header is missing.
TokenNotFound 401 Token specified in request does not exist or cannot be retrieved.
ProviderNotFound 404 Provider specified in request does not exist or cannot be retrieved.
ProviderDisabled 406 Cooperation with specified Provider is impossible.