> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Onboarding and synchronizing sellers

> Guide to the new Mangopay-hosted experiences to onboard your sellers

export const LegalRepresentative = ({content}) => <Tooltip tip="An individual legally appointed to represent a legal entity, authorized to sign contracts on its behalf.">
        {content}
    </Tooltip>;

To onboard your sellers, Mangopay's Mirakl Connector leverages:

* The KYC banner in the Mirakl Seller Dashboard
* A series of frontend components built and hosted by Mangopay

Your sellers are guided through all the necessary steps at each stage, and the onboarding flows are fully compliant with KYC and SCA requirements.

## Benefits

**Faster time-to-market**

* Pre-built, compliant verification journeys hosted by Mangopay
* No integration effort

**Faster onboarding**

* Optimized verification flows with high pass rates with clear error messages
* Fewer visible fields: reduced friction for sellers
* Mobile-friendly, localized experiences to increase conversion
* Direct user feedback ensures fewer errors in bank details
* Localized experiences in the Seller's language

**Compliant by design**

* Mandatory SCA on Mangopay Account creation and recipient registration

## Prerequisites

**Mangopay:**

* SCA must be enabled
* Hosted Identity Verification must be enabled
* Hosted onboarding must be configured in the Mirakl Connector

**Mirakl:**

* Mandatory: KYC banner activation
  * Enable the KYC status and banner in Mirakl by contacting Mirakl Support
  * Mangopay must be the only system to update the KYC banner
* Optional: Adjust Seller bank account configuration in Mirakl to ensure no bank account details are collected within Mirakl

## Overview

All of Mangopay's onboarding interactions leverage the KYC banner for communication with the seller and for providing links to the Mangopay-hosted webpages.

There are 3 main pathways:

1. [Mangopay Account creation](#mangopay-account-creation)
2. [KYC verification](#kyc-verification)
3. [Recipient creation](#recipient-creation)

#### What's changing

This page describes the full seller onboarding pathways hosted by Mangopay. The improvements being brought to previous versions of the seller onboarding are:

* Addition of hosted SCA enrollment on Mangopay Account creation
* Ability to re-enroll in SCA if legal representative phone number or email changed
* New Recipient (bank account) creation experience, including SCA
* Ability to view the Recipient details once created

## Mangopay Account creation

The account creation flow is as follows:

<Steps>
  <Step title="Mangopay detects new Seller">
    Every 5 minutes, Mangopay's Mirakl Connector checks for new sellers on your platform. If the connector detects a new seller, it updates Mirakl's KYC banner with messaging and a link to the Mangopay hosted webpage.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_reg_1_link.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=69759ce39f48ba30bf9ba88d28182d96" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_reg_1_link.png" />
  </Step>

  <Step title="Seller clicks the link to hosted account registration">
    The link takes the Seller to a hosted webpage to create their Mangopay Account (which is a Legal User object in Mangopay API terms).
  </Step>

  <Step title="Seller selects entity type">
    The Seller selects the type of their entity, which corresponds to their `LegalPersonType`. The [KYB local](/guides/users/verification/requirements/kyb-local) page lists local legal structures per country and the legal user type they should be registered as.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_reg_2_type.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=9517bf0ac8decf6b82ae17340d1b7574" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_reg_2_type.png" />
  </Step>

  <Step title="Seller enters business details">
    The next screen presents information take from Mirakl for the Seller to check. If anything is not correct, the Seller needs to return to Mirakl to update it.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_reg_3_info.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=19527b6f4e550036fa4266453d96b487" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_reg_3_info.png" />
  </Step>

  <Step title="Seller declares a legal representative">
    The Seller declares an individual as the <LegalRepresentative content="legal representative" /> of the business.

    The email and phone number declared for the legal representative are used for SCA in the next step. The individual's name and nationality are used in the KYC liveness check.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_reg_4_legalrep.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=1171095e770c6121abc6bac9648c91ef" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_reg_4_legalrep.png" />
  </Step>

  <Step title="Seller reviews and confirms">
    The final screen asks the Seller to review their input and confirm.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_reg_5_review.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=fd68dc555dacbe9c21c9f7d9ef7538ac" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_reg_5_review.png" />
  </Step>

  <Step title="Mangopay creates user and wallet objects">
    Once the form is complete, the connector calls the [POST Create a Legal User](/api-reference/users/create-legal-user-sca) endpoint to create the Legal User for the Seller, and the [POST Create a Wallet](/api-reference/wallets/create-wallet) endpoint to create their wallet.
  </Step>

  <Step title="The Seller enrolls in Mangopay's SCA">
    After the registration form, the Seller is redirected to Mangopay's hosted SCA session to enroll their chosen [authentication factors](/guides/sca/factors).
  </Step>

  <Step title="The Seller is redirected to the Mirakl Dashboard">
    Once complete, the Seller is taken back to Mirakl.
  </Step>
</Steps>

<Note>
  **Note – Connector also handles SCA re-enrollment**

  If the Seller wishes to modify the phone number or email they used to enroll in SCA, then they are again redirect to Mangopay's SCA experience to re-enroll their new contact details.
</Note>

### Identity verification (KYC/KYB)

The KYC/B verification flow is as follows:

<Steps>
  <Step title="Mangopay detects Seller without KYC verification">
    Mangopay's Mirakl Connector checks for Sellers that are not yet KYC verified by Mangopay. If detected, the connector updates Mirakl's KYC banner with messaging and a link to the Mangopay hosted webpage.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_kyc_start.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=d881b0a68e0d953bdbaef1da32893ad3" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_kyc_start.png" />
  </Step>

  <Step title="The Seller clicks the link to hosted KYC verification">
    The link takes the Seller to a hosted webpage to complete their KYC verification. To run the [hosted KYC session](/guides/users/verification/hosted), the connector calls the [POST Create an IDV Session](/api-reference/idv-sessions/create-idv-session) endpoint.
  </Step>

  <Step title="The Seller completes all parts of the session">
    The KYC process involves submitting business details and business documents. KYC verification also requires a liveness check performed by the person named as the declared legal representative.
  </Step>

  <Step title="The Seller is redirected to the Mirakl Dashboard">
    Once complete, the Seller is taken back to Mirakl.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_kyc_in_progress.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=71f4d3e61962572efcf0167f6453db2a" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_kyc_in_progress.png" />
  </Step>

  <Step title="The Mirakl Dashboard displays the progress and outcome">
    The KYC banner is updated with the outcome of the hosted KYC session.

    If one or more checks were unsuccessful, then error messages are given to guide the user in understanding what happened and how they can succeed when they try again.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_kyc_error.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=5f884ae778ec73c69324e2cdf543e311" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_kyc_error.png" />

    When the verification is successful, the banner on the Mirakl Dashboard is updated.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_kyc_passed.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=19191c4ebb9b48ebfa3b9027833788b7" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_kyc_passed.png" />
  </Step>
</Steps>

<Note>
  **Note – Connector also handles KYB data updates**

  If the seller wishes to modify identity data of the person who completed the KYC/B check, then they are again redirected to Mangopay's hosted KYC/B experience to verify the new individual.
</Note>

### Recipient creation

The Recipient (bank account) registration flow is as follows:

<Steps>
  <Step title="Mangopay detects Seller without Recipient">
    Mangopay's Mirakl Connector checks for sellers that haven't registered an external bank account. If detected, the connector updates Mirakl's KYC banner with messaging and a link to the Mangopay hosted webpage.

    <img class="block mx-auto w-3/4 h-auto" src="https://mintcdn.com/mangopay/4_yU-m6u6r3l15OZ/images/screenshot_mirakl_seller_recipient_add.png?fit=max&auto=format&n=4_yU-m6u6r3l15OZ&q=85&s=d711d4750a6755311cffc25f356ed352" width="3024" height="2048" data-path="images/screenshot_mirakl_seller_recipient_add.png" />
  </Step>

  <Step title="The Seller clicks the link to hosted account registration">
    The link takes the Seller to Mangopay'd [hosted recipient registration](/sdks/elements) to add a new bank account (which is a Recipient object in Mangopay API terms).
  </Step>

  <Step title="The Seller completes all parts of the form">
    The Seller completes the form to add their bank details, registered name, and address.

    The form checks the format of the bank details based on the country and currency combination, and then validates the user's data against the schema using the [POST Validate data for a Recipient](/api-reference/recipients/validate-recipient-data) endpoint. Any issues are returned to the user on the form.

    Once the data is validated, the connector calls the [POST Create a Recipient](/api-reference/recipients/create-recipient) endpoint to register the bank account.
  </Step>

  <Step title="The Seller performs SCA">
    The Seller is redirected to Mangopay's [hosted SCA session](/guides/sca/factors) to authenticate the new bank account.
  </Step>

  <Step title="The Seller is redirected to the Mirakl Dashboard">
    Once complete, the Seller is taken back to Mirakl.
  </Step>
</Steps>

## Migration from legacy

<Warning>
  **Caution – Actions below are irreversible and must only be done after activation**

  The additions to the new fully hosted onboarding ([described above](#what’s-changing)) must be activated before your platform takes the actions below.

  The actions below irreversibly disable the previously used onboarding flows. Removing them prematurely will prevent your sellers from onboarding successfully.

  If you have any doubt, please contact Mangopay <a href="https://hub.mangopay.com/" target="_blank">via the Dashboard</a>.
</Warning>

Once Mangopay has activated the new fully hosted seller onboarding experiences described above, your platform needs to remove the following redundant settings from the Mirakl Dashboard.

#### 1. Delete Mangopay custom fields in Mirakl

1. Go to ***Settings*** > ***Stores*** > ***Profile configuration***
2. Delete the custom fields required by the Mangopay connector (e.g., `legalrep-firstname`). Note that deletion is not instantaneous and may take some time to complete.

<Accordion title="See full list of custom fields that can be deleted">
  * `legalrep-firstname`
  * `legalrep-lastname`
  * `legalrepaddress-addressline1`
  * `legalrepaddress-addressline2`
  * `legalrepaddress-city`
  * `legalrepaddress-region`
  * `legalrepaddress-postalcode`
  * `legalerepaddress-country`
  * `legalrep-birthday`
  * `legalrep-email`
  * `legalrep-nationality`
  * `legalrep-countryofresidence`
  * `mgp-t-and-c`
  * `legal-user`
  * `registered-company-name`
  * `companynumber`
  * `not-applicable`
  * `ubo-2`, `ubo-3`, `ubo-4`
  * `ubo-1-first-name`, `ubo-2-first-name`, `ubo-3-first-name`, `ubo-4-first-name`
  * `ubo-1-last-name`, `ubo-2-last-name`, `ubo-3-last-name`, `ubo-4-last-name`
  * `ubo-1-address-line1`, `ubo-2-address-line1`, `ubo-3-address-line1`, `ubo-4-address-line1`
  * `ubo-1-address-line2`, `ubo-2-address-line1`, `ubo-3-address-line1`, `ubo-4-address-line1`
  * `ubo-1-address-postal-code`, `ubo-2-address-postal-code`, `ubo-3-address-postal-code`, `ubo-4-address-postal-code`
  * `ubo-1-address-city`, `ubo-2-address-city`, `ubo-3-address-city`, `ubo-4-address-city`
  * `ubo-1-address-region`, `ubo-2-address-region`, `ubo-3-address-region`, `ubo-4-address-region`
  * `ubo-1-address-country`, `ubo-2-address-country`, `ubo-3-address-country`, `ubo-4-address-country`
  * `ubo-1-nationality`, `ubo-2-nationality`, `ubo-3-nationality`, `ubo-4-nationality`
  * `ubo-1-birthday`, `ubo-2-birthday`, `ubo-3-birthday`, `ubo-4-birthday`
  * `ubo-1-birthplace-city`, `ubo-2-birthplace-city`, `ubo-3-birthplace-city`, `ubo-4-birthplace-city`
  * `ubo-1-birthplace-country`, `ubo-2-birthplace-country`, `ubo-3-birthplace-country`, `ubo-4-birthplace-country`
</Accordion>

#### 2. Remove bank account details from the Mirakl Dashboard

1. Go to ***Settings*** > ***Stores*** > ***Payment***
2. Choose to remove bank account details either:

* Per store (recommended during testing), or
* Globally (for all stores).

Removing these details will:

* Disable operators’ ability to manage bank accounts
* Delete the registered bank accounts linked to each store
