Cancel a customer's subscription
awtomic_cancel_customer_subscriptionWRITE: cancel one shopper's subscription contract in Awtomic. Billing and shipping stop; a cancelled non-prepaid subscription can be brought back with awtomic_reactivate_subscription. This cancels the shop's customer subscription, not your usefulapi plan. Awtomic runs the shop's own automations for this event, so the customer may get an email or SMS and webhooks may fire. Awtomic cancels it on its side even if Shopify rejects the cancel. Only use it when the user explicitly asks to cancel this subscription, and confirm_cancel must be true. A cancelled prepaid subscription cannot be reactivated. POST /customers/{customerId}/subscriptions/{subscriptionId}/cancel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Short reason code for Awtomic's analytics, e.g. too_expensive. | |
| details | No | Free-text details of why the subscription is cancelled. | |
| customer_id | Yes | Shopify customer id (the number in the Shopify admin customer URL, e.g. 6012345678901). A gid://shopify/Customer/… id is accepted too. | |
| confirm_cancel | Yes | Must be true: you confirm the user asked to cancel this shopper's subscription. | |
| subscription_id | Yes | Shopify subscription contract id (the SubscriptionId of a subscription, e.g. 1234567890). A gid://shopify/SubscriptionContract/… id is accepted too. |