For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove B2C subscription (company)

GraphQL endpoint: /company

Removes an existing B2C subscription for a user, unsubscribing them from receiving communications of that type from the company. The subscription is permanently removed. This action cannot be undone, but a new subscription can be created if consent is obtained again.

Query

mutation (
  $subscriptionId: ID!
) {
  removeB2cSubscription (
    subscriptionId: $subscriptionId
  ) {
    ... on B2cEmailSubscription {
      id
      insertedAt
      updatedAt
      type
      subscriptionTopics
      expirationDate
      notificationStartTime
      notificationEndTime
      email
      company {
        id
      }
      user {
        id
      }
    }

    ... on B2cSmsSubscription {
      id
      insertedAt
      updatedAt
      type
      subscriptionTopics
      expirationDate
      notificationStartTime
      notificationEndTime
      telephoneNumber
      company {
        id
      }
      user {
        id
      }
    }

    ... on B2cVoiceSubscription {
      id
      insertedAt
      updatedAt
      type
      subscriptionTopics
      expirationDate
      notificationStartTime
      notificationEndTime
      telephoneNumber
      company {
        id
      }
      user {
        id
      }
    }
  }
}

Variables

Response

Last updated