#joseph_api
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/1351383690466562130
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This has been working code, so not sure what happened
Hi! Do you know when was the last time this code worked? Do you have a request ID for when it did?
i just created a new request that was not with the update call - its been a while since i have played with it, but will see if i can find one
As per the API ref, these are the only parameters you can pass: https://docs.stripe.com/api/prices/update
ok???
here is the latest request ID, not an update req_zZWgDACVR6LFoj
all the perameters are in the doc
The parameters for req_zZWgDACVR6LFoj work as they are the correct parameters for /v1/prices:
/v1/prices/:id have different sets of parameters: https://docs.stripe.com/api/prices/update
but the parameters used are the same for this request are the same. It says the issue is with the unit_amount being wrapped in quotation marks vs being an integer. Its highlighted in red in the dev portal. The code pasted above does not have any quotation marks around the unit amount
Sorry can I confirm which requests are you referring to?
- req_yUrI3UN6IuHTrS is for /v1/prices/:id
- req_xG8iOmh7IEXcid is for /v1/prices/:id
- req_zZWgDACVR6LFoj is for /v1/prices
In the first 2 requests you have passed unit_amount, product, currency. These are not accepted parameters in the API reference doc for /v1/prices/:id (https://docs.stripe.com/api/prices/update).
The error message says: Received unknown parameters: unit_amount, product, currency
your right about the details
but not understanding why those perameters are not supported
dang, so you cannot change the price, only add another
i totally missed that, the other requests made for update did not include the amount. Thank you for looking into this for me
There are only certain things that you change about a price once it's used. If you need to make more changes to a price, you can only add another price.