Invite Company

Invite a company to join the TNID ecosystem.

The company GraphQL API is accessible at /company

  • As much as possible data should be included in the invitation model so the invitee can only verify and confirm entered data (of course, they can change if necessary)

  • As part of the invitation, at least one person needs to be included in the invitation so that after they register they can take over the management of the newly created company

  • Connection request needs to be confirmed/accepted by the newly created company legal representative.

  • Most properties are flagged private so the newly created company data is not exposed

mutation (
	$company: CompanyInput!
	$representatives: [InviteUserInput!]!
	$connectionType: B2bConnectionType!
  ) {
	createB2bInvite (
  	company: $company
  	representatives: $representatives
  	connectionType: $connectionType
	) {
  	id
  	status
  	type
  	insertedAt
  	respondedAt
  	updatedAt
  	company {
    	id
  	}
  	user {
    	id
  	}
  	invitedCompany {
    	id,
    	legalName,
    	brandName,
    	taxId
      }
    }
  }

Example Code

Last updated

Was this helpful?