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

TNID API documentation Company B2B connections Revoke B2B connection request

Revoke B2B connection request

On this page

GraphQL endpoint: /company

Revokes a pending B2B connection request that your company sent. Only the company that sent the request can revoke it, and the request must still be pending.

Query

mutation (
  $requestId: ID!
) {
  revokeB2bConnectionRequest (
    requestId: $requestId
  ) {
    id
    status
    type
    insertedAt
    respondedAt
    updatedAt
    company {
      id
    }
    user {
      id
    }
    invitedCompany {
      id
    }
  }
}

Variables

{
  "requestId": "00000000-0000-4000-8000-000000000002"
}

Response

{
  "data": {
    "revokeB2bConnectionRequest": {
      "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"
      },
      "respondedAt": "2026-01-15T09:00:01.000000",
      "status": "REVOKED",
      "type": "PARTNER",
      "updatedAt": "2026-01-15T09:00:02.000000",
      "user": null
    }
  }
}