#_code

1 messages · Page 1 of 1 (latest)

modest ploverBOT
#

đź‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288824925464952842

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

wintry grove
#

maybe there is another way to do this, not through metadata?

kindred parrot
wintry grove
#

I dont have a failing api request as im doing this through the CLI, could it be that there is just no functionality for updating the metadata field in the price object?

kindred parrot
#

Can you share the full cli command ?

wintry grove
#

stripe prices update price_1Q2wQ4GjhtGfzbKLxGpZfLut
--metadata region="UK"

kindred parrot
#

Try this instead:
stripe prices update price_1Q2wQ4GjhtGfzbKLxGpZfLut -d "metadata[region]=UK"

wintry grove
#

heyy thank you

#

I tried the data tag too

#

bbut I didnt stringify the metadata

#

thank you

#

can you flag it up to someone to perhaps add the meta data field to the dashboard?

#

for the prices

kindred parrot
#

Stripe CLI doesn't object attribut (as it's a command line). You need to use the format above for object fields.

wintry grove
#

yeah no worries

kindred parrot
#

Happy to help!

modest ploverBOT
strong cedar
#

hi! I'm taking over this thread. let me know if you have any other questions!

wintry grove
#

Hey im trying to update another price

#

but its giving me the following

#

stripe prices update price_1Q3GC1GjhtGfzbKLRYpMgbYp -d “metadata[region]=US”
zsh: no matches found: “metadata[region]=US”

#

am I missing something lol

#

stripe prices update price_1Q3GCHGjhtGfzbKLdMs2PZDg -d “metadata[region]=EU"

#

this one works perfectly fine

strong cedar
#

between the two examples you shared, the “ symbos seems to be diifferent

wintry grove
#

oh my

#

thank you

strong cedar
#

did it fix the issue?

wintry grove
#

yeah