#_code
1 messages · Page 1 of 1 (latest)
đź‘‹ 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.
maybe there is another way to do this, not through metadata?
The Price object does have the metadata field:
https://docs.stripe.com/api/prices/object#price_object-metadata
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
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?
Can you share the full cli command ?
stripe prices update price_1Q2wQ4GjhtGfzbKLxGpZfLut
--metadata region="UK"
Try this instead:
stripe prices update price_1Q2wQ4GjhtGfzbKLxGpZfLut -d "metadata[region]=UK"
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
Stripe CLI doesn't object attribut (as it's a command line). You need to use the format above for object fields.
yeah no worries
Happy to help!
hi! I'm taking over this thread. let me know if you have any other questions!
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
between the two examples you shared, the “ symbos seems to be diifferent
did it fix the issue?
yeah