#sreekanthmk-subscription
1 messages · Page 1 of 1 (latest)
👋 Happy to help
Can you share the request ID (req_xxx) that throws the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Yes, I'm looking into the details
Okay. Thanks
When creating a subscription, you've added price_1LRxu3SGtKVHB2p0dcQ91mSm in the Checkout Session: https://dashboard.stripe.com/test/logs/req_aYE3jD1pAaHt6Q
In req_O407N5tgh92WFS, you were trying to add the same price_1LRxu3SGtKVHB2p0dcQ91mSm into the same subscription, resulting in the error
Can you share what you want to achieve?
I want to delete price_1LRxu3SGtKVHB2p0dcQ91mSm and add another iitem
You can refer to doc here for changing subscription item: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
I am trying to achieve this -> remove product associated with price_1LRxu3SGtKVHB2p0dcQ91mSm and add a different product
I am not trying to change price of same product
It'll work the same for different product
How to update the quantity here?
So, you'll retrieve the subscription item ID of price_1LRxu3SGtKVHB2p0dcQ91mSm in the subscription first, then update the subscription item ID with new price to price_1LRvlHSGtKVHB2p0y0Ib4VyI
You can add quantity to the item. For example,
'items' => [
[
'id' => $subscription->items->data[0]->id,
'price' => 'price_1LRvlHSGtKVHB2p0y0Ib4VyI',
'quantity': 2
],
],