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.eyJkYXRhIjp7InByb3ZpZGVyX2NvZGUiOiJkZW1vYmFuayIsInJlZGlyZWN0X3VybCI6InVzZXIud2lsbC5iZS9yZWRpcmVjdGVkL2hlcmUiLCJzZXNzaW9uX3NlY3JldCI6ImI3ay1ReEMzdmRBLU00OHBleGlTIiwicmVjdXJyaW5nX2luZGljYXRvciI6dHJ1ZSwiYWNjZXNzIjp7ImFsbFBzZDIiOiJhbGxBY2NvdW50cyJ9LCJ2YWxpZF91bnRpbCI6IjIwMjAtMDgtMDUiLCJhdXRob3JpemF0aW9uX3R5cGUiOiJvYXV0aCIsImFwcF9uYW1lIjoiRXhhbXBsZSBOYW1lIn0sImV4cCI6MTcxNjA3NjExN30.Rt73YPrZi60rAllAEpVgP1v4I8ESx-WqA3_DG5v5SLBRaJRetol719zzRxJEVyeg4t8wfGTbQQX3GCIRrBDUlT1VzHOgpp-0VaaqsPb3ir4rBIGcxo1YIQtmoM4c39pSQVRLJh_2B6ihRMdp42PER8WpxaI_R0kdnFU_sTy2weeJEmLkDLmjH2ne5UFjC3qzhn2Fvq6teaCg7QoFrxcVf4Z1xvq04_Uh0gMFJL_-wj1MbqljV61lH5SUtCvbLmv8emvzOTce1gcmJD0vrJuVVzmtcX9ikBLPl1fgy6Z7vvgi0av8lKwSZdqS7c8jANLENHDout9WkLcdAwwSWFKhZQ" \ 
 -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.
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.eyJkYXRhIjp7InByb3ZpZGVyX2NvZGUiOiJkZW1vYmFuayIsInNlc3Npb25fc2VjcmV0IjoiaDI5Yzk0MVBRNF9rNl82UG4tbzUifSwiZXhwIjoxNzE2MDc2MTE3fQ.aoL3Qpqe_ZEJWIzFxHEQrNs08fYPPHhfW_2l-0y4V7Kg9JydWSRmJeAjJwipAOUmmYAH965SR9_XqUG17HS9bIothnDG-PT06EDHzD4neygS9soh2ix8ZccdIWMxHglJMdiAU92I2kgU1bhz7bmIl4dTgUmxHWpuosSlP5UgyOFeNiTzY9o2Nuar_8CJitQ_GH4wu4nmKMaTmmm-pAlLjU5_4CxK3-hG1yjlLZVg5xgUr5bWehpsc62P9CRHza4egn8ajF85SWUKD3b1yWWfKskMcNJaP00_6MsdBRL_K0FeLJkFviiHlNzbj8T9xYPPvv-hpkjvemny3gbVKfp49Q" \ 
 -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.
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.eyJkYXRhIjp7InByb3ZpZGVyX2NvZGUiOiJkZW1vYmFuayIsInNlc3Npb25fc2VjcmV0IjoiaDI5Yzk0MVBRNF9rNl82UG4tbzUifSwiZXhwIjoxNzE2MDc2MTE4fQ.TtYfemPUnO7YDMLw8IdxyShs8G_ctXGOZp7Hu69nMNuiyPUUQzHzsHFWz5ScIJwKqpd2qsS79OF5AugY7WbVFBsg5K7O1amYVDRPEey49r6Pq50_iwc2m9W2kcUL_BkP_Cnv6Q3S6WMaa0ZiCYpWcK8gkiogBJqca-0KdPfREV-XspmGSlcgFWb6nyVffx82cceS7flFQvMg68WxF-9p1JyCeTrZU3QT9BJmGnRMKwBazQFhqN7PK0KKh1sRrSc-UU2qgL7I4Ic3ZR4ZCZLHmXdlocXFra4GjZNoO3HggDCQoAk0J8pWx3nPORJx3uBl1eb9wNd-n2lI0mv2W1c7aw" \ 
 -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.
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.eyJkYXRhIjp7InNlc3Npb25fc2VjcmV0IjoiY3ppYVRYZ0JhQ1llckVIRHZXRTkifSwiZXhwIjoxNzE2MDc2MTE4fQ.f8Y3hndkYB4XKDL2ZPDGUdM9kcFm1WOy271gzr_KXOGFX4iHvLc2WABIvpbwSSFvjSDlQ4NYDXuNeO-56L_3LntdpjTsecEFzlRlwC2SYePqp89WcELXmz7XwRIt73vRYnw9zdZHRLGILl2jGdMJE9BEeK6NruSMv7D9SG9qrA6lfSr2Ni7BZf_dm03rU5kDfft2YVu4Sn8P50Diq6NKX8d1XUB54bKacjUmsx0k1E0GKQfMrTTxAVUlQHZh6-Oaq1Y-uA07efhIJVbhxrRrMI8zYft5IpDlwhkW8gqiZt7NalsbzEtrnni4zXLy1Pz1cSQE4TKtlbWoztjh-HcZMw" \ 
 -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.
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.eyJkYXRhIjp7ImFjY291bnRfaWQiOiI4NyIsImZyb21fZGF0ZSI6IjIwMTktMTEtMTgiLCJ0b19kYXRlIjoiMjAxOS0xMS0xOCIsImZyb21faWQiOiIxMDEifSwiZXhwIjoxNzE2MDc2MTE5fQ.XajbDOH61X2ccn_gFwPW2VWlyFoxFvHl01Hg8sgIeoT7JoYlW6FqrdeItnyK7JGAegvt1Wi6vdDKcUbxORKmjzstFFBxD0i-NAWIwRQOV33UoHTfeKF-a2YvPHZDoNEGwgtndCIRZKO6kXmsmwrnkRcnmUaGu3luXxGy48E6wxlhwHB8EDG1hL-nmbJ3TLwbTvcVMQ8UKwToZ69JotrX7scWi2zkERr0akMQmDoFLFu76G9wTBLtkD3UONnLZaJOqVPAXZLERPAKK8-cq09DEYRchgZhyCZPt9VQUsl8nSqJJG32HJsBnpU5S4-LW2xcLONdHMd_WUUD_9093cADIg" \ 
 -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.
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.eyJkYXRhIjp7InNlc3Npb25fc2VjcmV0IjoiY3ppYVRYZ0JhQ1llckVIRHZXRTkifSwiZXhwIjoxNzE2MDc2MTE5fQ.D7ipOISykB3lkFZ8Qh_7exYNmCkirmUVspGVZw87cRbDCO7Eoq6HhcxYq5-YJMmKRrOPZZDcHnIpxorXO-XwCK26v4-EK0erKZJQGd34ovM96QXWULpZTN8JX40HGbMDC9IlWzo8_V8ItlQRx_hfYoxfCciKJDgLMvDMOG0BwSIqvfDcikXIqnPXGcbbgOjLZOrgO1CmhdyR8v1CZD07mQScThpzoN16Qx0U9AG9xghRNo2lXMYri99n7QnZ0CO7R-UoKFz3fFzxgHArtqey8Aox4X1WVWTIvNF5tdc_bWIr4LwiuiZjPnZmT9aShKNpQtCn_LSKnYDa_v5WuAjBiQ" \ 
 -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.
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.eyJkYXRhIjp7ImFjY291bnRfaWQiOiI4NyIsImZyb21fZGF0ZSI6IjIwMTktMTEtMTgiLCJ0b19kYXRlIjoiMjAxOS0xMS0xOCIsImZyb21faWQiOiIxMiIsInNlc3Npb25fc2VjcmV0IjoieVBzZXRDeVA3Y0d6bnZiMWZBRkEifSwiZXhwIjoxNzE2MDc2MTIwfQ.SDTuSDXgoYGOpaWKPIIefxtMd8gfeTV5fEPYstpBwVNKN5S2eFnRFJyIKBEwTHKNTjJEHr3lHl52JpqE4ecfy4ZGrBdjQIzL1DGozhnujE0za_baNbzUTlqbI2wNGhhXM6ieApCbxSD6r5SJD07yVdVnp2dcSZU3yaCaodk3PVGusHWJaw1hlHrOr7ALrlY494QDHf0veQWNGt1oXU7OopQjxiv-9jpKPc0j2Nge-6enXfVBCzn7bmWOfHoNpkXjex6-CsNaGA3gIcirNrByEKUz68NqI0blXux6gUqFewKzpgZnA0jnGu_7CopDHWwV3vzm5-5TtC1k2uyHPSnEdg" \ 
 -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.
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.eyJkYXRhIjp7ImV4dHJhIjp7fSwiZGVidG9yX2FjY291bnQiOnsiYmJhbiI6IjQ1MDc0NjUwOCIsImliYW4iOiJGSzU0UkFORDYxMDY4NDIxNDM1NDUyIiwic29ydF9jb2RlIjoiMjItMzMtNDQiLCJzd2lmdF9jb2RlIjoiSERTU0dCS0MxMzEiLCJiaWMiOiJGSzUzUkFORDYxMDY4NDIxNDY5ODc0IiwiYmFua19hY2NvdW50X2lkZW50aWZpZXIiOiIxMjM0MTIzNDEyMzQxMjM0In0sInNlc3Npb25fc2VjcmV0IjoiQlZ1dmVTTFFDckE1akJZVXl4WGUiLCJ1c2VyX2lkIjoiMSJ9LCJleHAiOjE3MTYwNzYxMjB9.EgO89g_jxhwdx2HZVeb_RapHxdJIFztg8aVRibWPK-yxdcSGyOdie4HGdSTnXbk79PVKr0A5FFM8o8Qq06YNY7cGoBR2tPIPFCogmF8IpoibqYuxewHPqOD1jaIQcxXCE16ENN8qcatyxg8tRgoCXVIcYDNpelHVgFzew05DcOrMLGUNg965aMzIy3-D0PeaSEOxkZ4IHMV6GeACggBrOxSlaVqjKLmzNXD2grKyV3n02Ny71gZihec-FTmcCVEOC5UjvMGqb8XLui_BvkFalnwhSA9OEnY0IjTsHsIvNIKcmEtmhXLo0AYehOjFpd1S9HeuJiegP3SDlgUP4mpt9Q" \ 
 -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.eyJkYXRhIjp7InNlc3Npb25fZXhwaXJlc19hdCI6IjIwMjAtMDUtMTBUMTI6MzM6NTAuMjE1WiIsInN0YXR1cyI6InJlY2VpdmVkIiwic2NhX3N0YXR1cyI6InBzdUlkZW50aWZpZWQiLCJyZWRpcmVjdF91cmwiOiJodHRwczovL3JlZGlyZWN0LXVybC5jb20iLCJleHRyYSI6e30sInNlc3Npb25fc2VjcmV0IjoiQlZ1dmVTTFFDckE1akJZVXl4WGUifSwiZXhwIjoxNzE2MDc2MTIwfQ.rbxy458o8oov6HxtCCTcENN_tO3Frk9ylsI3iHXVnRLgqUDinTGKzO4l2pYKNWuu69OZjsQeYcoli2HVLW07wCUMKfvb3A3CNyufGUIjrqXkq8ZViq3phrxrJkt9EH5yPIW5T0NqPhEUDZJyzjK9YufJ9YFYB3x5E122FvDMKU4186u_MYUQeFejbKUPcfdFIdWV6KcixZnLwy4eORpSoyVdzVenNBsIZSCXqgSXq-rPZLbIbzdng-K22srVyN1hif3s0BrpjAp3SEcs_61USDMLm0LnpFAFp7loQ8DsPp5lDSBPTaN7BB8dOKVz7VhwX2CVfLuH2QIvNEaWLDLq7w" \ 
 -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.eyJkYXRhIjp7InNlc3Npb25fc2VjcmV0IjoiM1BRaXB1RFBvV3BhMTFGY1ZFVjYiLCJlcnJvcl9jbGFzcyI6IkludGVybmFsUHJvdmlkZXJFcnJvciIsImVycm9yX21lc3NhZ2UiOiJJbnRlcm5hbCBlcnJvciIsImV4dHJhIjp7fX0sImV4cCI6MTcxNjA3NjEyMX0.ED4BJarJxhaL4IEOIEmLhepJQYwPsDAg6lJxXF5f5edGoe6uEL8m_QS5Elim7Y89rz8Z6lfxjD66XWlWtE4JwQCNWja2ruwTA81pQTWct0r3POBHnFpwT3uFsFlY2b3rGeIlRA_N-Bvu9w0U6aUuchS5UNFa47UV-nZjZUnXiP5q0eaLO-Qct0M6mrRlciNM2q7E4lxdrG_h6lBoXvlAD2jaQZlKsJD7mO1Le4v6HCTHoRBG3JPPL_NAS3LYumbzG4YMM3JABnnCK_lqs4fKNihO3e94k9trx6p1WTCMD4qIwTr9sVnayUkRx6QQNfOpfwotLUmFynljtCIgTkKZhQ" \ 
 -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
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.


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.eyJkYXRhIjp7ImtpbmQiOiJyZXZva2VkIiwiZnJvbV9pZCI6MzAyLCJmcm9tX2RhdGUiOiIyMDE5LTA4LTIwVDE2OjA0OjQ5LjAyMVoiLCJwZXJfcGFnZSI6NTAsImN1c3RvbWVyX2lkIjo4MjF9LCJleHAiOjE3MTYwNzYxMjF9.lvU6Xui7ADm-Ia0frVkEpSmvIawekO9clvTo9aLLWCJ85TYi5q3b9IhlRfTnNrbNkEFOyYLZeD4eCGA5xSZCpuf5h_o7hCjlkL6NVbi9cYIXAYuruC_hFXC2hnRyF-29iChfUAcfhb3j-Wy0mhbdg80gSZYf8p_QsFXNAEBMazH_c4hQFh09mNogobL5AqB4wWSjw2Gbdixp8a_Wm7D13_I-GH3j9Eh5ddyfV9hNNn11BWRDaEiwolcFRMbpNzTvrBhnC5nYSKTMoT4La2XGX5SH_qX_u2lomsUfbid5gQkLx1go7DsUmQ9Zbw1llnbMeyAzdv0koGQtK7P1MXMKoQ" \ 
 -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.eyJkYXRhIjp7fSwiZXhwIjoxNzE2MDc2MTIyfQ.ot9OvVibxPYevZ1fF_-DCqDXUhU7AgpnXWm3_C2aF_jvYt-KGPS2qFlnZVOjS97rVOs-TVtJSoiaol1HT7pheO7Pp8BHsW2VYl5P5qioU5gBBFrU5S8krWbxxrAIin2tMukWQjDFCdhGtW6WKGhvduo9VFPpKIYXk4lO5GVG1E58N-0JESLsisbdy7pZdPZecLZOp13yCIfWOaMA97U4iYTHfXfHZ55-PXHFrt0Yhd480l3hQpQfAfldj788Z0iGOfHpR8XBglknHE9VF2aZKOjYduxhvhFBLveaWVMh1AZZwdrnEZlnzDF_v311CIeUrqfW6Z9xhkuV8HMZ8nRBdw" \ 
 -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.