#anamariaoros_code

1 messages ¡ Page 1 of 1 (latest)

eternal pendantBOT
#

👋 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/1417767567145177098

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

swift wedge
#

Hello! do give me some time to take a look at this

#

Were you using the method previously and now it does not work for you? Or are you attempting to use it for the first time?

kind sun
#

It's an attempt to use for the first time.

swift wedge
#

That endpoint is deprecated, you should be using the FX Quotes API instead

kind sun
#

Ok. But that means that I have to have a request for each currency, right? So if I want for example the currency from GBP to USD, EUR and RON i have to do 3 separate requests

swift wedge
#

Yup, you will first have to Create an FX quote (e.g. GBP to USD) for a locked duration of time and then call the List FX Quote API

eternal pendantBOT
analog verge
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

kind sun
#

Ok. I tried create the fxQuotes like shown in example, incliding adding the version part { apiVersion: '2025-07-30.preview' } but there is an ts error Property 'fxQuotes' does not exist on type 'Stripe'. Did you mean 'quotes'? And even if i ignore it I get this error: Cannot read properties of undefined (reading 'create') 400.

#

Is this a feature that is only active for some of the accounts?

analog verge
#

What attribut in the doc exactly you are trying to access using the nodejs ?

#

Are you using the preview version of NodeJs sdk too ?

kind sun
#

I am trying to create a fx Quote like this: stripe.fxQuotes.create({ to_currency: 'usd', from_currencies: ['gbp'], lock_duration: 'hour' }); and i am using the recommended preview version stripe = require('stripe')(stripeSecretKey, { apiVersion: '2025-07-30.preview' })

analog verge
#

Did you install the preview SDK too ?

#

Not just passing the API version in the header

kind sun
#

I did that now. Seams to work. I got some data. Thanks.