destroyOrderedProduct
Deletes an ordered product
Deleting the last ordered product can leave the subscription without an active product and may break downstream subscription behavior. For replacement flows, prefer updateOrderedProduct for an in-place product swap; if delete-and-create is required, create or verify the replacement first, then destroy the old line.
Arguments
input (DestroyOrderedProductInput!)
Parameters for DestroyOrderedProduct
DestroyOrderedProductInput Arguments
id (ID)
ID of the ordered product to delete. Be careful when this is the subscription's last ordered product: deleting it can leave the subscription without an active product and may break downstream subscription behavior. For replacement flows, prefer updateOrderedProduct for an in-place product swap; if delete-and-create is required, create or verify the replacement first, then destroy the old line.
shopifyVariantId (ID)
The Shopify variant ID to find the ordered product by
shopifyProductId (ID)
The Shopify product ID to find the ordered product by
subscriptionId (ID)
Required when using shopify_variant_id or shopify_product_id
Return fields
errors ([ModelValidationError!]!)
orderedProduct (OrderedProduct)
subscription (Subscription)
Last updated
Was this helpful?