Create company
GraphQL endpoint: /user
Creates a new company profile as a user, registering the business on the platform. Requires a legal name and a unique profile name; optionally accepts brand name, tax IDs, contact information (emails, telephone numbers, addresses), online presence (webpages, social networks), trusted domains, subscription topics and settings, industry classification, visibility settings, and metadata. Setting provisionCompanyClientSecret creates API credentials on company creation. The user creating the company is automatically connected with the given connectionType (OWNER, ADMIN or EXTERNAL_ADMIN).
Query
mutation (
$legalName: String!
$brandName: String
$profileName: String!
$yearFounded: Int
$aboutUs: String
$metadata: JSON
$emails: [CompanyEmailInput!]
$telephoneNumbers: [CompanyTelephoneNumberInput!]
$addresses: [CompanyAddressInput!]
$webpages: [CompanyWebpageInput!]
$socialNetworks: [CompanySocialMediaInput!]
$trustedDomains: [TrustedDomainInput!]
$subscriptionTopics: [B2cSubscriptionTopicInput!]
$subscriptionSettings: CompanySubscriptionSettingsInput
$taxIds: [CompanyTaxIdInput!]
$verticalTypeId: ID
$organizationTypeId: ID
$companySpecialties: [ID]
$legalNameVisibility: [CompanyVisibilityType!]
$brandNameVisibility: [CompanyVisibilityType!]
$logoUrlVisibility: [CompanyVisibilityType!]
$aboutUsVisibility: [CompanyVisibilityType!]
$yearFoundedVisibility: [CompanyVisibilityType!]
$verticalTypeVisibility: [CompanyVisibilityType!]
$organizationTypeVisibility: [CompanyVisibilityType!]
$specialtiesVisibility: [CompanyVisibilityType!]
$b2cVisibility: [CompanyVisibilityType!]
$metadataVisibility: [CompanyVisibilityType!]
$provisionCompanyClientSecret: Boolean
$connectionType: AdminB2cConnectionType
) {
createCompany (
legalName: $legalName
brandName: $brandName
profileName: $profileName
yearFounded: $yearFounded
aboutUs: $aboutUs
metadata: $metadata
emails: $emails
telephoneNumbers: $telephoneNumbers
addresses: $addresses
webpages: $webpages
socialNetworks: $socialNetworks
trustedDomains: $trustedDomains
subscriptionTopics: $subscriptionTopics
subscriptionSettings: $subscriptionSettings
taxIds: $taxIds
verticalTypeId: $verticalTypeId
organizationTypeId: $organizationTypeId
companySpecialties: $companySpecialties
legalNameVisibility: $legalNameVisibility
brandNameVisibility: $brandNameVisibility
logoUrlVisibility: $logoUrlVisibility
aboutUsVisibility: $aboutUsVisibility
yearFoundedVisibility: $yearFoundedVisibility
verticalTypeVisibility: $verticalTypeVisibility
organizationTypeVisibility: $organizationTypeVisibility
specialtiesVisibility: $specialtiesVisibility
b2cVisibility: $b2cVisibility
metadataVisibility: $metadataVisibility
provisionCompanyClientSecret: $provisionCompanyClientSecret
connectionType: $connectionType
) {
id
clientSecret {
clientId
clientSecret
description
}
}
}
Variables
Response
Last updated