#bmizerany-price-currencyoptions
1 messages · Page 1 of 1 (latest)
bmizerany-price-currencyoptions
https://stripe.com/docs/api/prices/update#update_price-currency_options-custom_unit_amount
this parameter is a hash with many parameters inside. You're passing an amount
are you maybe passing the wrong parameter?
ah yes. thank you
@tall sierra my goal is to update a price in the same way the Stripe UI allows
what do you mean "update the price"
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
yeah okay this is just impossible
haha thought so
you can't just change a Price that way. Create a brand new one instead
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)
the UI lets you do things that the API doesn't. It's always been like that
got it
and the SDK lets you add new currencies for an existing Price
you can have a $10 USD Price but then update it to add the equivalent £7
the rest can't be changed
once a USD price is set, can I update the tiers if the price hasn't been used?