#joseph_api

1 messages ¡ Page 1 of 1 (latest)

tired sealBOT
#

👋 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.

untold minnow
#

This has been working code, so not sure what happened

restive orbit
#

Hi! Do you know when was the last time this code worked? Do you have a request ID for when it did?

untold minnow
#

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

restive orbit
untold minnow
#

ok???

#

here is the latest request ID, not an update req_zZWgDACVR6LFoj

#

all the perameters are in the doc

restive orbit
untold minnow
#

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

restive orbit
#

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

untold minnow
#

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

restive orbit
#

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.