#_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/1359731002934693918
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
this return 404, so the endpoint no longere sxisted ? I tried for test and prod key , not working
hello! what document were you referring to where it refers to this API? did you have a different account id for which this API request was actually working before?
NO the same account id,
the endpoint GET api.stripe.com/v1/exchange_rates/usd got it from some forum
rate, err := exchangerate.Get("usd", nil)
from
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/exchangerate"
golang
/v1/exchange_rates is a beta feature and has since been deprecated. If you want to work with FX, maybe the FX Quotes is what you're looking for : https://docs.stripe.com/api/fx_quotes, https://docs.stripe.com/currencies/localize-prices
Use the FX Quotes API to localize the prices you charge to foreign customers.
I got this
"error": {
"message": "This functionality isn't available to you. For more information, see: https://docs.stripe.com/currencies/localize-prices#available-in.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_BYwKTHYPJKKKo5?t=1744257148",
"type": "invalid_request_error"
}
}
this feature unfortunately isn't available in the country your Stripe Account is in : https://docs.stripe.com/currencies/localize-prices#available-in
Use the FX Quotes API to localize the prices you charge to foreign customers.
It's mentioned in the link i shared, have you had the chance to go through that link?
Oh Isee
thanks for the help, looks like this issue is that my country is not supportable yet
yeah, that's pretty unfortunate, sorry that there isn't a workaround here