#javespi

1 messages ยท Page 1 of 1 (latest)

next escarpBOT
paper estuary
#

Hi! Let me help you with this.

brittle cypress
#

Yes

#

It's a 404

gleaming vigil
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

brittle cypress
#

I can share with you the 2 customers ids which I have the issues if that helps

gleaming vigil
#

yes please

brittle cypress
#
#

Both of them are similar - default currency EUR and I did the same:

  • Created an invoice item
  • Then deleted because I thought I made a mistake
  • Create a new invoice item in CHF
  • Click on Invoice now -> modal all the time loading

I'll try to use stripe CLI in order to see if it's something from my browser, but same issue

#

Modal like this:

#

If I inspect the Network tab in the browser we can see the same error of 404 of upcoming lines

gleaming vigil
#

I'm still investigating this, sorry for the delayed response

brittle cypress
#

np, thank you for helping

next escarpBOT
low tide
#

that customer has a default currency of eur, but you created the invoice items in chf

#

when you call the upcoming endpoint without specifying the currency, we are looking for eur items and invoices, of which there are none; you need to pass that currency parameter to preview the chf payment

brittle cypress
#

Okey, then why is not working from the Stripe Dashboard? I guess due to the same
How can I change the currency of those 2 customers then? I tried but field is disabled and in theory there is no subscription ongoing

#

I read this FAQ: https://support.stripe.com/questions/set-or-change-currency-for-an-invoice-or-customer-in-stripe-billing

You can change the customer's default currency if there are no active subscriptions, quotes or other Billing objects in the customer's current currency.

#

They have a past due invoice in EUR, does it count as billing object?

#

in Stripe CLI is working with --currency=chf as you said

low tide
#

I don't think you can change the currency of a customer, they just have a default. ah you can I suppose since we have that page you found. But nowadays you can invoice them in currencies other than their default(wasn't always possible), it just requires more explicit usage of parameters when calling other APIs

brittle cypress
#

Okey thanks
Could you please help me to create the invoice from Stripe CLI then?
How can I create an invoice from pending invoice items?

hazy wigeon
#

๐Ÿ‘‹ stepping in here

brittle cypress
#

I think I got it ๐Ÿ˜„

hazy wigeon
#

Great!

brittle cypress
#

Thank you, then for these corner cases I will use Stripe CLI

hazy wigeon
#

๐Ÿ‘

brittle cypress
#

I ran

stripe invoices create --customer=cus_O4jON32X1skQdS --currency=chf --pending-invoice-items-behavior=include

hazy wigeon
#

Yep that looks good to me

brittle cypress
#

It would be great to have this from Stripe Dashboard