#abishek-subscription-relatedobjects

1 messages · Page 1 of 1 (latest)

limber cryptBOT
#

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.

desert ember
#

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

sleek lintel
#

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?
desert ember
#

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.

sleek lintel
#

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?

desert ember
#

yes a Subscription always has at least one SubscriptionItem as it always has at least one Price

#

(checking for the second question)

sleek lintel
#

thank you

desert ember
#

no as far as I can tell the CustomerPortal does not let you remove a specific Price if your Subscription has multiple Prices

sleek lintel
#

ok, good to know, was just wondering if I need to implement functionality on my webhooks if this option was allowed

desert ember
#

it could totally be allowed in the future, we're always improving the API and our products!

sleek lintel
#

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

desert ember
#

customer.subscription.updated is what is triggered. Try it in Test mode!

sleek lintel
#

ok, will do. thank you.

desert ember
#

sure thing!