Preview

triggerSubscriptionCancellationProcess is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

triggerSubscriptionCancellationProcess

Initiates the process to cancel a subscription based on the provided inputs. Users must specify the cancellation option, contextual details, and preferences for notification.

This page contains

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    billing.subscription-cancellation.write.instance

    billing.subscription-cancellation.write.tenant

    billing.subscription-cancellation.write.account

    billing.subscription-cancellation.write.self

    billing.subscription-cancellation.write.network

    billing.subscription-cancellation.write.agent

    Arguments

    input TriggerSubscriptionCancellationProcessInput! PREVIEW

    TriggerSubscriptionCancellationProcessInput fields

    subscriptionId ID!

    The unique ID of the subscription to be cancelled.

    subscriptionCancellationOption SubscriptionCancellationOptionCode! PREVIEW

    The cancellation option selected by the user (e.g., immediate, end of billing cycle).

    cancellationRequestDate DateTime

    The date requested for the cancellation to take effect (if applicable). The date is conditionally mandatory based on the subscriptionCancellationOption. The date is required only when the subscriptionCancellationOption CUSTOM_DATE. For all other scenarios, if the date is available, it will be ignored.

    subscriptionCancellationNotification SubscriptionCancellationNotification! PREVIEW

    Subscription cancellation notification preferences.

    subscriptionCancellationReasonInfo SubscriptionCancellationReasonInfo! PREVIEW

    The reason for the cancellation

    Return Fields

    process SubscriptionCancellationProcess PREVIEW

    Details about the cancellation process, including its status and unique ID.

    userErrors [TriggerSubscriptionCancellationProcessError!] PREVIEW

    A list of user errors that occurred during the request.

    Interactive example

    This is an example mutation query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.