#OptimalSurprise-connect-product

1 messages · Page 1 of 1 (latest)

echo gyro
cosmic vector
#

Yes sure

#

i'm using the python sdk

echo gyro
#

I needed the request ID, but the Product ID works

cosmic vector
#

ah sorry, i couldnt find that on the logs

echo gyro
#

Yeah you're probably making the API request with the wrong API keys

#

Taking a look!

cosmic vector
#

ah interesting, so i'm using the default test api key

echo gyro
#

So that Product exists on acct_1K7cbi2fXqerCuJx

cosmic vector
#

yep

echo gyro
#

Which is a connected account of this platform: acct_1K2h8TKEANZ5OMar

cosmic vector
#

yep

echo gyro
cosmic vector
#

i'm passing stripe_account_id with as this: acct_1K7cbi2fXqerCuJx

#

which is what's confusing me

echo gyro
#

So you're using the API keys of the platform, but no Stripe-Account header (according to the logs)

#

Can you share the full code snippet which makes this API call

cosmic vector
#

yep

#

this is for the create

#

i'll send the modify which is the core issue

#

basically the tier id here is the stripe product id

echo gyro
cosmic vector
#

OH

#

ok this explains a lot

#

i'm not passing this because i was under the assumption that giving the product id was enough

#

and that stripe would do the rest

#

but this makes sense

#

my mistake, i've made the change and check it works

echo gyro
#

Perfect! Yep, needs to passed on a per request basis with stripe-python (and any of our server libraries)

cosmic vector
#

ok great!

#

this should fix my issue

#

thank you!

echo gyro
#

Np!

cosmic vector
#

hi just another quick question

#

what is the best approach to modifying the unit amount decimal of a price?

#

i would like to change the price of a price object

#

from the docs, this does not look posslbe

echo gyro
#

It's not, no. Only via the Dashboard

#

Generally Price objects are immutable once they've been used

cosmic vector
#

Ah ok

#

how do you set a price initially though for a price object?

echo gyro
cosmic vector
#

ah i totally misunderstood this field

#

ok this makes sense

#

thank you again!

echo gyro
#

np!

cosmic vector
#

btw, is there a reason prices are immutable?

echo gyro
#

Prevents some unexpected behaviours where those Price objects are used in an existing subscription for example

#

You might increase the price, and then your users wind up paying more unexpectedly

cosmic vector
#

ah that makes sense

#

how does price changing work in practice?

#

e.g. say i have users paying $40/month

#

and want to upgrade to $50/month

#

does stripe force existing users to the new pricing?

echo gyro
#

Well those would be 2 separate Price objects. And any pre-existing subscriptions would be locked in to the older Price object

#

You'd need to upgrade them manually

cosmic vector
#

ah ok, that makes sense

#

how does the manual upgrading work?

#

is this via the dashboard or can it be done programmatically?

echo gyro
cosmic vector
#

ah ok, great this makes a lot of sense

#

thank you for those links