TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation Company Companies Invite company to join platform

Invite company to join platform

On this page

GraphQL endpoint: /company

Use the createB2bInvite mutation to invite other companies to join the platform.

Query

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,
      profileName
    }
  }
}

Variables

{
  "company": {
    "aboutUs": "we are a nice company",
    "addresses": [
      {
        "city": "nice city",
        "country": "United States",
        "state": "Alabama",
        "street": "nice street",
        "types": [
          "SUPPORT"
        ],
        "zipCode": "123"
      }
    ],
    "brandName": "2brand-name",
    "legalName": "1legal-name",
    "yearFounded": 1900
  },
  "connectionType": "PARTNER",
  "representatives": [
    {
      "email": "test1@email.com",
      "firstName": "3john",
      "lastName": "4doe",
      "sendInviteEmail": true,
      "telephoneNumber": "2"
    }
  ]
}

Response

{
  "data": {
    "createB2bInvite": {
      "company": {
        "id": "00000000-0000-4000-8000-000000000001"
      },
      "id": "00000000-0000-4000-8000-000000000002",
      "insertedAt": "2026-01-15T09:00:00.000000",
      "invitedCompany": {
        "id": "00000000-0000-4000-8000-000000000003",
        "profileName": "1legal-name-okcx"
      },
      "respondedAt": null,
      "status": "PENDING",
      "type": "PARTNER",
      "updatedAt": "2026-01-15T09:00:00.000000",
      "user": null
    }
  }
}