#ajay-subscription

1 messages · Page 1 of 1 (latest)

tranquil birch
#

Hi there, how can I help?

winged crater
#

I am unable to get how this api works for multiple items

#

in items array I need pass all old products too?

tranquil birch
#

So you want to create a subscription with multiple line items?

winged crater
#

not create
update

tranquil birch
winged crater
#

I am on it

but consider above scene

#

I have multiple items in subscription
Now I can have few possibilities like following

  1. Remove SMS from subscription
  2. Remove SMS and add WHATSAPP
  3. Change old quentity
tranquil birch
#

I'd recommend trying out the API first and see if the outcome matches your expectation.

winged crater
tranquil birch
winged crater
#

both same?

tranquil birch
#

Hi, to be honest, I've not tried calling the update API with deleted flag. But my understanding is that they are the same.

winged crater
#

so what you suggest
for update subscription follow
https://stripe.com/docs/api/subscription_items
instead
https://stripe.com/docs/api/subscriptions

is better way?

tranquil birch
#

Technically they are doing the same thing, so if

  • you just want to update subscription items -> use the subscription_items API
  • you want to update the subscription items and other subscription properties -> use the subscriptions API
winged crater
#

ok thank you for all help

#

is there way for subscription pause some days?
and resume too later

tranquil birch