Demo companies

There is a demo company which allows you to test the full data collection flow like it would be a real company without having to authenticate. This means that you can start a collection, check the status and get data exactly the same way as you would for a regular company, only difference being that the collection will complete without having to sign in the BankID app. There are a set number of personal numbers which will do specific things, personal numbers that are not listed will return various pensions and/or investment accounts.

Personal numberEffect
200002010000Fails directly at start
200002020000Fails after login
200002030000Fails after login
200002040000Returns a QR code for logging in, fails after login
200002050000Returns COMPLETED_PARTIAL and one insurance after login
200002060000Returns an animated QR code updated every second for logging in, fails after login
200001010000Returns COMPLETED_EMPTY after login
200001020000Returns COMPLETED with two of each type of insurance. One that contains the maximum amount of data, and one that contains the minimum amount of data
200001030000Returns COMPLETED with one of each type of insurance. All of them containing the minimum amount of data
200001040000Returns a QR code for logging in, returns COMPLETED with insurances after login
200001060000Returns an animated QR code updated every second for logging in, returns COMPLETED with insurances after login
199007011000Returns CONTACT_FORM_INPUT status and requires input of email and phone number before proceeding and returning COMPLETED_EMPTY
199312252399Returns COMPLETED with ISK account
199501302393Returns COMPLETED with Custody account
198611239883Returns COMPLETED with KF (Endowment insurance)
196603233724Returns COMPLETED with ISK, Custody and KF
198208149297Returns COMPLETED with two occupational pensions, one that is movable and one that is not movable.
199011062388Returns COMPLETED with pensions and investment accounts
198412099296Returns COMPLETED with two mortgages
198412018882Returns COMPLETED with unsecured loan
198412028881Returns COMPLETED with general savings accounts

PSD2 Demo Company

The PSD2 demo company (se-demo-psd2) allows you to test both PSD2 collection flows — one-time and consent-based. The same set of personal numbers determines the banking data returned regardless of which flow you use.

The chosen login method determines what BankID data is returned during the authorization process. Using SWEDISH_MOBILE_BANKID_OTHER_DEVICE returns mocked QR code data, while SWEDISH_MOBILE_BANKID_SAME_DEVICE returns a mocked autostart token.

One-time collection

These personal numbers can be used with the one-time flow — pass the personal number via SWEDISH_BANKID + PSD2_AIS_CONSENT parameters directly on POST /collections:

Personal numberCollection result
200001012384COMPLETED with savings, checking, and credit card accounts
200001011493COMPLETED with a savings account
200001012392COMPLETED with a checking account
200001018928COMPLETED with a credit card
200001022391COMPLETED_EMPTY — no accounts
200001032390COMPLETED with savings and checking accounts
200001022383FAILED — collection error

The same personal numbers also work with the consent-based flow. First create a consent — the personal number determines the consent outcome. Then use the ID of the authorized consent to start a collection:

Personal numberConsent resultCollection result
200001012384AUTHORIZEDCOMPLETED with savings, checking, and credit card accounts
200001011493AUTHORIZEDCOMPLETED with a savings account
200001012392AUTHORIZEDCOMPLETED with a checking account
200001018928AUTHORIZEDCOMPLETED with a credit card
200001022391AUTHORIZEDCOMPLETED_EMPTY — no accounts
200001032390AUTHORIZEDCOMPLETED with savings and checking accounts
200001022383AUTHORIZEDFAILED — collection error

These personal numbers test consent error and terminal states. No collection is possible:

Personal numberConsent statusError details
200001042399INITIATED — stays in initial state, never progresses—
200001042381REVOKED—
200001052398EXPIRED—
200001052380FAILEDINTERNAL_ERROR
200001062397FAILEDTHIRD_PARTY_ERROR
200001072388FAILEDAUTHENTICATION_TIMEOUT
200001072396FAILEDAUTHENTICATION_CANCELLED
200001081975FAILEDAUTHENTICATION_CONFLICT