#Daniele
1 messages · Page 1 of 1 (latest)
Hello 👋
Not sure, can you share the request ID for your dashboard where you are seeing this error?
It's on a connected account on our platform, not sure i have a request id, one moment
@split shell how can i get the request ID?
req_BrN60b3VhgRAci
correction! it seems to be happening during a coupon creation, not subscription checkout
Ah I think it doesn't like the currencies just out in the open
You need to nest it under currency_options
https://stripe.com/docs/api/coupons/create#create_coupon-currency_options
yep, now it returns The coupon default currency (usd) does not match the line item currency (gbp).
does this mean that even if i specify all the possible currencies, the coupon must always have the correct inline item currency? doesn't make much sense
here: req_0jCNewN5clsN9u
I am curious if the API throws an error if you don't set the currency: usd on the coupon and just pass that in to currency_options instead
hmm yeah maybe it will throw an error 🤔
seems to be required on create coupon
hmm thinking..
okay thanks for waiting @mighty moon
I reached out to a colleague and I think we know why this is happening
The session attempted to localise to a currency that was not an option of one of the involved objects, and therefore attempted to fallback to the default but there’s a mismatch (GBP/USD).
You basically need to have the same default currency option on the price and the coupon (gbp)
It’s a tricky matrix, but if you're using multi currency objects you should basically create all objects with the same default currency
alright got it, thank you!