--- title: subscriptionContractCancel - Customer API description: Cancels a Subscription Contract. api_version: 2025-10 api_name: customer type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/customer/latest/mutations/subscriptioncontractcancel md: https://shopify.dev/docs/api/customer/latest/mutations/subscriptioncontractcancel.md --- # subscription​Contract​Cancel mutation Cancels a Subscription Contract. ## Arguments * subscription​Contract​Id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) required The ID of the Subscription Contract to cancel. *** ## Subscription​Contract​Cancel​Payload returns * contract [Subscription​Contract](https://shopify.dev/docs/api/customer/latest/objects/SubscriptionContract) The canceled Subscription Contract. * user​Errors [\[Subscription​Contract​Status​Update​User​Error!\]!](https://shopify.dev/docs/api/customer/latest/objects/SubscriptionContractStatusUpdateUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### subscriptionContractCancel reference ## Mutation Reference ```graphql mutation subscriptionContractCancel($subscriptionContractId: ID!) { subscriptionContractCancel(subscriptionContractId: $subscriptionContractId) { contract { # SubscriptionContract fields } userErrors { field message } } } ``` ## Input ```json { "subscriptionContractId": "gid://shopify//10079785100" } ```