Create C2B connection request
On this page
GraphQL endpoint: /user
Sends a connection request from the authenticated user to a company (C2B - Consumer to Business) with the given connection type. The request stays PENDING until the company accepts or rejects it.
Query
mutation (
$invitedCompanyId: ID!
$connectionType: B2cConnectionType!
) {
createC2bConnectionRequest (
invitedCompanyId: $invitedCompanyId
connectionType: $connectionType
) {
id
status
type
insertedAt
respondedAt
updatedAt
user {
id
}
invitedCompany {
id
}
respondedByUser {
id
}
}
}
Variables
{
"connectionType": "CUSTOMER",
"invitedCompanyId": "00000000-0000-4000-8000-000000000002"
}
Response
{
"data": {
"createC2bConnectionRequest": {
"id": "00000000-0000-4000-8000-000000000001",
"insertedAt": "2026-01-15T09:00:00.000000",
"invitedCompany": {
"id": "00000000-0000-4000-8000-000000000002"
},
"respondedAt": null,
"respondedByUser": null,
"status": "PENDING",
"type": "CUSTOMER",
"updatedAt": "2026-01-15T09:00:00.000000",
"user": {
"id": "00000000-0000-4000-8000-000000000003"
}
}
}
}