Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Skip to main content

Finalize an onboarding

You can finalize onboardings in several ways:

  • Using the API.
  • Your end users can also finalize their own onboardings using the onboarding URLs you create for individuals or companies.
  • If you use Swan's Web Banking interface, they can finalize their onboarding themselves with the app.
Prerequisites

To finalize an onboarding using the API:

  • You must have a user access token for the user whose onboarding you're finalizing, and the user must have accessed their authentication URL at least one time.
  • The onboarding status must be Ongoing (Valid).

If you need to update an onboarding before finalizing it, follow the guides for updating an individual or company onboarding.

Guide​

Finalize an onboarding using the API.

  1. First, retrieve the ID for the onboarding you're finalizing.
  2. Call the finalizeOnboarding mutation.
  3. Enter the onboarding ID retrieved in step 1.
  4. Add optional messages to the success payload, either for validation or in case of rejection.
  5. Confirm you're using the user access token to run the mutation.

Mutation​

Open in API Explorer

Notice the request to include the account ID and account holder ID, as well as the onboarding status, in the success payload.

mutation finalizeOnboarding {
finalizeOnboarding(input: { onboardingId: "$ONBOARDING_ID" }) {
... on FinalizeOnboardingSuccessPayload {
__typename
onboarding {
account {
id
holder {
id
}
}
statusInfo {
status
}
}
}
... on OnboardingNotCompletedRejection {
__typename
}
... on ValidationRejection {
__typename
message
}
}
}

Payload​

Notice the ID for the newly-created account and account holder, as well as the onboarding status Finalized.

{
"data": {
"finalizeOnboarding": {
"__typename": "FinalizeOnboardingSuccessPayload",
"onboarding": {
"account": {
"id": "$NEW_ACCOUNT_ID",
"holder": {
"id": "$NEW_ACCOUNT_HOLDER_ID"
}
},
"statusInfo": {
"status": "Finalized"
}
}
}
}
}