Skip to main content
You are viewing early implementations that may change before release. Use them to prepare and provide feedback to our team. Check out Swan's public roadmap to see what else is in the works.

Update a company onboarding

Deprecated

This page documents the legacy onboarding API. It is preserved as a read-only reference. Refer to account onboarding enhancements for the current onboarding API.

Update company onboardings using the API.

Updating UBO fields

Fields about an ultimate beneficial owner (UBO) can't be updated incrementally. If you need to update UBO information, you must submit all of the fields again.

Prerequisites

Guide

To update a company onboarding, change the language.

  1. First, retrieve the ID for the onboarding you need to update.
  2. Call the updateCompanyOnboarding mutation.
  3. Enter the onboarding ID retrieved in step 1.
  4. Check the box for language, then enter the language code of your choosing (example: fr or es).
  5. Add desired messages to the success payload, either for validation or in case of rejection.
    • Recommendation: Inside the UpdateCompanyOnboardingSuccessPayload option, add onboardingState and statusInfo > status to confirm the onboarding is still ongoing and valid after making the update.

Mutation

Open in API Explorer
mutation UpdateCompanyOnboarding {
updateCompanyOnboarding(
input: {
onboardingId: "$ONBOARDING_ID"
language: "fr"
}
) {
... on ForbiddenRejection {
__typename
message
}
... on InternalErrorRejection {
__typename
message
}
... on UpdateCompanyOnboardingSuccessPayload {
__typename
onboarding {
language
onboardingState
statusInfo {
status
}
}
}
... on ValidationRejection {
__typename
message
fields {
message
}
}
}
}

Payload

{
"data": {
"updateCompanyOnboarding": {
"__typename": "UpdateCompanyOnboardingSuccessPayload",
"onboarding": {
"language": "fr",
"onboardingState": "Ongoing",
"statusInfo": {
"status": "Valid"
}
}
}
}
}