Skip to main content

ASPSP API versioning

Maxime avatar
Written by Maxime
Updated over 3 months ago

1. Check ASPSP

Getting a list of ASPSP assigned to given api-clientId

select b.id, b.name, psd2p.Config, psd2c.ConnectorName

from apiclientbank acb, bank b, [provider] p, psd2provider psd2p, psd2connector psd2c, bankversion bv

where acb.BankId=b.id and bv.BankId=b.id and bv.ProviderId=p.id and p.Id=psd2p.Id and psd2c.id=psd2p.Psd2ConnectorId

and ApiClientId =(select id from apiclient where externalid like '%<API_CLIENT_ID%')

2. Add ASPSP to api-clientId

Adding new ASPSP to given api-clientId

insert into ApiClientBank (apiclientid, bankid, BankVersionId,ShowOnList) (select <APICLIENT_ID>,bankid,id,1 from bankversion bv where bv.bankid=<BANK_ID>)

3. Versioning of ASPSP API

Checking ASPSP version

select b.id, b.name, psd2p.Config, psd2c.ConnectorName

from apiclientbank acb, bank b, [provider] p, psd2provider psd2p, psd2connector psd2c, bankversion bv

where acb.BankId=b.id and bv.BankId=b.id and bv.ProviderId=p.id and p.Id=psd2p.Id and psd2c.id=psd2p.Psd2ConnectorId

and ApiClientId =(select id from apiclient where externalid like '%<API_CLIENT_ID%')

  • Bank - list od ASPSP

  • BankVersion - each bank (ASPSP) can have multiple versions

  • ApiClientBank - each api-clientId (consumer of PSD2Hub API) can have a different configuration of an available ASPSPs and those can use different versions

  • Provider - a generic type of API provider (can be PSD2, scraping, etc)

  • Psd2Provider - list of PSD2 specific connectors(specific connector is a parametrizable instance of generic connector controlled by config). Different ASPSP API versions can be handled by more than one PSD2Providers for one ASPSP, each with different (ASPSP API version driven) config.

  • Psd2Connector - list if PSD2 generic connectors (per API standard or sub-standard or customer if particular ASPSP API do not follow any of supported standards). More about standards: PSD2 API standards

Did this answer your question?