#mozarella_customer-update-parameters
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. Thank you for your patience!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
๐ 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/1214253076010242048
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
Hi ๐
Can you share the exact error message you are receiving?
Thanks! Taking a look
am i stupid i cannot do a simple update?
How are you making this request? I see you are using stripe-node but the URL you are hitting /v1/customers/Ha%20Ha isn't a valid API URL
You can see the syntax for making an update request with stripe-node here: https://docs.stripe.com/api/customers/update?lang=node
export const updateCustomerName = async (
fullName: string,
stripeCustomerId: string
) => {
await stripe.customers.update(stripeCustomerId, {
name: fullName,
});
};
this is the code
I think your parameters are mixed up.
what am i doing wrong
The API request, which you can see here https://dashboard.stripe.com/test/logs/req_ar1OHzpvwrVGgR, shows that you are passing the ID as the name parameter and passing "Ha Ha" as the ID
dear god
yeah
it was so nested deep within i didnt notic
3 am code moment
i am so sorry for bringing up this silly problem
No problem, it's why we're here
Happy it was an easy fix ๐