#bmizerany-price-currencyoptions

1 messages · Page 1 of 1 (latest)

hollow crystalBOT
tall sierra
#

bmizerany-price-currencyoptions

#

are you maybe passing the wrong parameter?

unkempt turtle
#

ah yes. thank you

#

@tall sierra my goal is to update a price in the same way the Stripe UI allows

tall sierra
#

what do you mean "update the price"

unkempt turtle
#

the API docs show only a few fields for updating, but I'd like to update the tiers, tiers_mode, interval, etc

#

I get back errors from the API saying tiers_mode is unknown, however the stripe Go SDK takes the full price object though.

#

I ran another request through req_vlNlMYLilWT9Ap trying to update the tiers mode and got back Received unknown parameter: tiers_mode

tall sierra
#

yeah okay this is just impossible

unkempt turtle
#

haha thought so

tall sierra
#

you can't just change a Price that way. Create a brand new one instead

unkempt turtle
#

It's odd the sdk implies it is

#

does the UI have a backdoor or something? If I'm in the Ui I can change all sorts of things

#

as long as I have not used the price in a subscription

#

which all makes total sense, but it's odd the API doesn't let me update the same as the UI (also further becomes confusing when the SDK implies its possible when it isn't)

tall sierra
#

the UI lets you do things that the API doesn't. It's always been like that

unkempt turtle
#

got it

tall sierra
#

and the SDK lets you add new currencies for an existing Price

unkempt turtle
#

thank you for clearing this up

#

right, which the API docs are clear about too

tall sierra
#

you can have a $10 USD Price but then update it to add the equivalent £7

#

the rest can't be changed

unkempt turtle
#

once a USD price is set, can I update the tiers if the price hasn't been used?