#Marcello-requests

1 messages · Page 1 of 1 (latest)

stone gorge
#

Hello!

#

I'm fairly sure this is because your code is slightly wrong - give me a second to double check

#

Yea, your code needs to look more like this:

$subitem = \Stripe\SubscriptionItem::retrieve('si_xxx');
$subitem->delete();
crimson viper
#

ah! why is it not possible to delete directly?

#

really thank you 🙂

stone gorge
#

It's because you're using the legacy syntax of our PHP library - with the new client/services pattern that was added in 7.33.0 we added the ability to delete without first retrieving

crimson viper
#

ok thank you