#ddbg

1 messages · Page 1 of 1 (latest)

vale depotBOT
#

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.

fallow frigate
#

hi there!

#

can you summarize your question here instead?

hallow gate
#

Hello @fallow frigate, I have a "parameter_missing" error for my subscriptions.update() but can't find out what's wrong

fallow frigate
hallow gate
#

req_CpPIrd5jTZLdiM

#

ahh it's the currency

fallow frigate
#

correct, it's missing the currency

hallow gate
#

I'm testing now

#

now it's the product that's missing...

fallow frigate
#

looks like you ar emaking progess!

hallow gate
#

@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"?

fallow frigate
#

absolutely

hallow gate
#

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

fallow frigate
hallow gate
#

I'm passing only the subId and the price_data object as subscriptions.update()?

fallow frigate
#

yes and that's the mistake. you need to also add the existing item ID you are trying to edit.

hallow gate
#

like the existing price/

#

?

fallow frigate
#

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.

hallow gate
#

ok thanks a lot, I'm trying with all the elements you gave and will let you know!