#ddbg
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.
- ddbg-sub-updates, 15 hours ago, 9 messages
- ddbg, 1 day ago, 17 messages
Hello @fallow frigate, I have a "parameter_missing" error for my subscriptions.update() but can't find out what's wrong
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
correct, it's missing the currency
looks like you ar emaking progess!
@fallow frigate I also need to add a "recurring" field as its required from the doc, our subscriptions are monthly, this feature is just to update the price of the subscription so should I apply for "month" as value for "recurring"?
absolutely
thanks!
doing my test now
@fallow frigate I could update the sub but it added a product instead of updating the price on the existing one, did I do something wrong? Here's the subId sub_1OMt8UFxsE4pn4oahpTqIXki
indeed this request is adding a new price. if you want to udpate an existing price, you need to set this: https://stripe.com/docs/api/subscriptions/update#update_subscription-items-id
or directly use this endpoint: https://stripe.com/docs/api/subscription_items/update
I'm passing only the subId and the price_data object as subscriptions.update()?
yes and that's the mistake. you need to also add the existing item ID you are trying to edit.
no, the item ID, that you can find by looking at the Subscription itself
each price you add to a Subscription gets a unique ID (the subscription line item ID). that's what you need to use to tell Stripe which item you want to edit.
ok thanks a lot, I'm trying with all the elements you gave and will let you know!