#abishek-subscription-relatedobjects
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
abishek-subscription-relatedobjects
@sleek lintel Imagine that you subscribe to my cookie service delivery. It's $30/month for 12 cookies. You also pay $5/month for fast shipping.
You owe me $35/month on your Subscription. And the Subscription has 2 separate Prices (one for each thing above). Each Price on the Subscription is modeled as a SubscriptionItem
So the Subscription is what the customer commits to pay on a recurring basis and the SubscriptionItem is related to the specific Price
ok, thanks for the clarificaiton, I have a few questions.
- So when they cancel the subscription, all items from the subscription items are also cancelled. Correct?
- Can some items from the subscription be cancelled?
yes to the first question. If you cancel a Subscription, it cancels all SubscriptionItems all at once.
You can't "cancel" a SubscriptionItem so no. But what you can do is remove/delete a SubscriptionItem.
So if we keep my earlier example, let's say you don't want to pay for expedited shipping anymore but keep the delivery, what you want is to delete the second SubscriptionItem and keep the first one.
ok, that helps. When a subscription is created, there will be atleast 1 subscription item?
Can, a customer remove a subscription item from a Subscription on the Customer Portal? Taking the example above, can they just remove "Expedited Shipping" from the Subscription on the Customer Portal?
yes a Subscription always has at least one SubscriptionItem as it always has at least one Price
(checking for the second question)
thank you
no as far as I can tell the CustomerPortal does not let you remove a specific Price if your Subscription has multiple Prices
ok, good to know, was just wondering if I need to implement functionality on my webhooks if this option was allowed
it could totally be allowed in the future, we're always improving the API and our products!
ok, are there any webhook triggers that are triggered when a subscription item is deleted. Or do I have to just use the subscription.updated webhook to identify if a item is deleted
customer.subscription.updated is what is triggered. Try it in Test mode!
ok, will do. thank you.
sure thing!