importCompanyFromPsaForOnboarding
Onboarding-specific company import for Magical Onboarding. Reuses the createCompany composition model in one atomic boundary:
- Fetches company details from ConnectWise using the company ID
- Creates the company in AppDirect using the createAccount API
- Creates the PsaCompanyMapping (phase 1 COMPANY_SYNC)
- Persists company_import_records audit
This page contains
Arguments
| input ImportCompanyFromPsaForOnboardingInput! PREVIEW |
ImportCompanyFromPsaForOnboardingInput fields
| psaCompanyIds [Int!]! | List of PSA company IDs to import (supports single or multiple) |
| mor PsaMorInput! PREVIEW | Merchant of record |
| defaultCountryCode String | Default country code to use when PSA company does not have country information (e.g., US, CA, IN). This is typically the marketplace country code. |
Return Fields
| results [OnboardingCompanyImportResult!] PREVIEW | Results for each onboarding company import |
| success Boolean | Overall success status |
| userErrors [ImportCompanyFromPsaForOnboardingError!] PREVIEW | Error details (for backward compatibility) |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.