Our PSD2 APIs
Payment Initiation Service (PIS)
Our PSD2 Payment Initiation Service helps you create payment initiation applications that serve your customers easy and safe user experiance. Our Payment Initiation Service enable TPPs to securely access to all DHB Bank payments accounts. Following we give an example request to consume the API.
Payment Initiation
Example Request:
GET {dhburl}/auth/v1/psd2/payment/sepa-credit-transfersHeader:Content-Type: application/jsonAuthorization: Bearer 9a0781de-a859-4f6c-9cc1-3a67bd60b288digest: sha-512=ajcbEMWI8PZVGwt3ayy3Ay0w8/xyg5D+0JW3Y1Y0zhVx4vff614qM+kTeGZVpk+afSZe38Mo1D9XrEzDtQNeBA== tpp-signing-certificate=MIIK...2NERsignature=eyAi...date=Sun, 01 Sep 2019 08:49:37 GMTx-request-id=7f3d80df-bfee-4501-bca8-f8397342ebbeBody:{"debtorAccount":{"iban":"NL58DHBN0412431432","currency":"EUR"},"creditorAccount":{"iban":"NL58DHBN0412431432","currency":"EUR"},"instructedAmount":{"amount":20,"currency":"EUR"},"explanation":"payment explanation","creditorName":"DHBBank"}
Example Request with Curl:
curl -X GET \ http:// {dhburl}/auth/v1/psd2/payment/sepa-credit-transfers \ -H 'Authorization: Bearer 9a0781de-a859-4f6c-9cc1-3a67bd60b288' \ -H 'Content-Type: application/json' \ -H 'date: Sun, 01 Sep 2019 08:49:37 GMT' \ -H 'digest: sha-512=ajcbEMWI8PZVGwt3ayy3Ay0w8/xyg5D+0JW3Y1Y0zhVx4vff614qM+kTeGZVpk+afSZe38Mo1D9XrEzDtQNeBA==' \ -H 'signature: eyAi' \ -H 'tpp-signing-certificate: MIIK...2NER' \ -H 'x-request-id: 7f3d80df-bfee-4501-bca8-f8397342ebbe' \ -d '{"debtorAccount":{"iban":"NL58DHBN0412431432","currency":"EUR"},"creditorAccount":{"iban":"NL58DHBN0412431432","currency":"EUR"},"instructedAmount":{"amount":20,"currency":"EUR"},"explanation":"payment explanation","creditorName":"DHBBank"}'
Example Responses:
201 Response
{ "transactionId": "transactionId" }
401 Response
{ "error": "invalid_token", "error_description": "Access token expired: 9a0781de-a859-4f6c-9cc1-3a67bd60b288"}
500 Response
{ "errorId": "b1d8124c-1f63-479d-94d6-3a70bb4ca528", "timestamp": "2019-06-28T12:14:53.111+0000", "message": "Unexpected error is occurred! Please contact with your system adminstration."}
Are you curious to see what you can do with the Payment Initiation Service API?