# Account number sharing
source: https://developer.mastercard.com/open-finance-europe/documentation/unlicensed/aiia-pay/preview/account-sharing/index.md

### Account number sharing {#account-number-sharing}

Our Account number sharing feature enables users to securely share their account information with you following their Open Finance payment. This enables you to establish a mandate for recurring payment solutions, such as direct debit, for future transactions. This enhances convenience and streamlines the process for everyone.
Note: This is a preview release of our Account number sharing feature. The feature can currently be tested on our Sandbox environment. Until Account number sharing is out of preview, it might be changed without prior notice. If you want to sign up for early Production access, complete the [Contact Us](https://www.aiia.eu/forms/contact_us) form to discuss. ![](https://static.developer.mastercard.com/content/open-finance-europe/uploads/account-share.png)

With this feature enabled, once your users have completed their payment, they will be presented with an additional page where they can consent to sharing their account information directly with you. Sharing is tied to a specific purpose -- in the above case, signing up for the Danish Betalingsservice direct debit solution. Other purposes may be available in the future.

Mastercard handles the process of obtaining and securely storing user consent for data sharing. You only need to enable the page, listen to our webhooks for consent notifications, and request the account information from us whenever you need it.

### How to use {#how-to-use}

Follow these steps to activate the Account number sharing feature:

1. The feature is enabled by default on our Sandbox environment.

2. If you would like to have Production access, complete the [Contact Us](https://www.aiia.eu/forms/contact_us) form to request the Account Number Sharing feature to be enabled.

3. When creating an [Accept Payment](https://developer.mastercard.com/open-finance-europe/documentation/unlicensed/aiia-pay/accept-payments/index.md) or [Payment Link](https://developer.mastercard.com/open-finance-europe/documentation/unlicensed/aiia-pay/accept-payments/pay-by-link/index.md) include the following request property:

```json
    "paymentRequest": {
        "paymentFlowSettings":{
            "AccountNumberSharingOption":"Betalingsservice"
        }
    }
```

4. Ask your users to complete the payment using the newly created Payment.

5. After completing the payment, your users will be redirected to a page where they can consent to sharing their account information with you directly.

6. If a user consents, a [Webhook](https://developer.mastercard.com/open-finance-europe/documentation/unlicensed/aiia-pay/event-notifications/event-types/index.md#account-number-share-agreement-accepted) will be sent to the webhook URL you had defined on our [Developer Portal](https://portal.aiia.eu/#/apps/).

7. From now on, you can receive this user's account information by calling the [Payment Sources](https://api.aiia.eu/preview/index.html#tag/Payment-Sources) endpoint.

