---
title: "Collections"
description: "This section describes in detail all the steps to follow to try the collection related to Fabrick Pass AISP products:"
url: "https://docs.fabrick.com/en/payment-institution/open-banking-and-psd2/pass/products/ais-common/pass-ais-api-collection/"
language: "en"
---

# Collections

This section describes in detail all the steps to follow to try the collection related to Fabrick Pass AISP products:

- Pass AIS
- Pass AIS One Shot

You can find the Bruno and Postman collections [here](https://docs.fabrick.com/en/collections/PassAisCollection.zip).

The collection is shared between the two products as the data access APIs are exactly the same; in fact, the distinction takes place in the onboarding phase (see dedicated document). The customer can only try the product enabled on his apiKey; obviously both in case he has an apiKey for each of the two products.

This short tutorial is therefore intended as a "getting started" document that can be consulted in the initial phase to immediately test a standard flow, otherwise you can proceed directly with the integration of the API.

Once the collection has been imported, you can continue with the following steps.

## Fabrick Pass AIS

1. In the variables of the collection insert

   1. *birthday*: day of birth used in to parameterize the *fiscal code*, *email* and *companyUserCode* to make the user unique.

      Note: the *fiscal code* uniquely distinguishes a user

2. Call *Create User (onBoarding)* to get *userOnboardingid*

3. Click the link received in the response and proceed to registration on Fabrick Pass page

   1. Password: enter any password (es: Qwda.1245!)
   2. Code to insert to verify email (In Pre this code is auto filled. Mails are not sent in Pre environment)
   3. Search and choose bank Mock
   4. Select “Sandbox” environment

4. On bank Mock site

   1. Username: “user03” and password: “passwd03”
   2. Choose receive sms
   3. Code: 34567890

5. On Pass, select and choose owner user

6. Continue on Pass by entering the required data.

7. Call *Get Onboarding* to verify onboarding status or recover an onboarding flow interrupted.

8. Call *SearchUsers* to get *userId* of the user who has passed the document acceptance phase (the user is not returned before the user document acceptance phase)

9. Call *Search Consents* filtering in the body *userCompanyCode* to get all the consents created by the created user

10. Call *User Details* to get info about the created user

11. Call *accounts* to get the list of user accounts and get an *accountId*. Note: the accounts are visible only se the value of the parameter *hasValidKyc* is *true* in the response of the *GET getUserDetails* request

12. Call *Account Details* to get more info about passed *accountId*

13. Call *Balances* to get all Balances of passed accountId

14. Call *Transactions* to get all the transaction of passed *accountId*

15. Call *Movements* to get all the Movements (transaction enriched with PFM data) of passed accountId

16. Call *Update-aggregation* to renew consent or make new aggregation

17. Call *Disable User (close contract)* to deactivate the user

## Fabrick Pass AIS (authentication with SPID)

This test allows you to use the spid to verify the user's name and surname instead of the SCA with a bank.

1. In the variables of the collection insert *birthday*:

   1. “birthday”: day of birth used to parameterize the “tax code”, “mail” and “companyUserCode” to make the user unique

      Note: the tax code uniquely distinguishes a user

   2. “name”: Neri

   3. “surname”: Bernardi

   4. “fiscalCode”: BRNNRE{birthYear}B{birthDay}F205B

2. Call *Create User (onBoarding)* to get *userOnboardingid*

3. Click the link received as answer and proceed to registration on Pass page

   1. Password: enter any password (es: Qwda.1245!)
   2. Code to insert to verify email (the mails are not sent in Pre environment):0000
   3. If the page asks you to choose a bank for recognition, press the "back" button and “continue” button in the popup
   4. Select “enter with SPID”
   5. Select “IDP Test”

4. On SPID site

   1. Username: “test” and password: “test”
   2. Press “Send”
   3. Press “Send” in the new page

5. Continue on Pass by entering the required data.

6. ...

## Fabrick Pass AIS One Shot

1. In the variables of the collection insert “birthday”: day of birth used to parameterize the *fiscal code*, *email* and *companyUserCode* to make the user unique

2. Call *Create User (onBoarding) OneShot* to get *userOnboardingId*

3. Click the link received as answer and proceed to registration on Pass page

   1. Search and choose bank Mock
   2. Select “Sandbox” environment

4. On bank Mock site

   1. Username: “user03” and password: “passwd03”
   2. Choose receive sms
   3. Code: 34567890

5. On Pass, keep select and choose owner user

6. Call *Get Onboarding* to verify onboarding status or recover an onboarding flow interrupted. If the user is registered, it is possible to get *userId*.

7. Call *SearchUsers* to obtain the *userId* of the user who has passed the conditions acceptance phase (before the user conditions acceptance phase, the user is not returned).

8. Proceed with *Search Consents* as AISP flow

## Fabrick Pass Smart Scoring

1. In the variables of the collection insert “birthday”: day of birth used to parameterize the *fiscal code*, *email* and *companyUserCode* to make the user unique 2. Call *Create User (onBoarding) OneShot* to get *userOnboardingId*
2. Click the link received as answer and proceed to registration on Pass page 1. Search and choose bank “BPM” 2. Select “Internet banking per clientele privata” 3. Select “Sandbox” environment 4. On BPM page 1. id: 7654321 2. password: any password 3. Otp: any password
3. On Pass, choose owner user in all the Accounts 6. On Pass, select all the Accounts 7. Call *Get Onboarding* to verify onboarding status or recover an onboarding flow interrupted. If the user is registered, it is possible to get *userId*. 8. Call *SmartScoringInitiateNaturalPerson* to start the smart scoring process 9. Call *SmartScoring* to get the result
