#Klavik
1 messages · Page 1 of 1 (latest)
Assuming they are actually draft, you can delete them via API or Dashboard:
https://stripe.com/docs/api/invoices/delete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you'll just need to void it
okay, so there's no way to remove them from the UI? the subscription was created incorrectly by mistake and is now cancelled and these "draft" invoices hold no value
I'm afraid not
okay, one more question though on a slightly different topic - when creating a new subscription for a customer, the customer should have the currency as BRL, however the product there (and the invoice that's generated after it) appears in EUR. even though the BRL currencies are set for that particular product (price)
am i missing something obvious?
Can you share some object IDs?
which ones would you need?
The sub_xxx should be sufficient
sub_1MM94FJxFhjLfjdlcsL5AEPF
this is the cancelled one from before (that had the same issue)
or would it be helpful to share a test mode one as well?
the customer's currency was set to BRL prior to the subscription creation, but after creating the subscription it changed to eur
sub_1MM9aAJxFhjLfjdlniRO6etK this is the test mode id just in case
in that case it's EUR because for whatever reason, the API request the dashboard makes passes currency:eur as a parameter
hmm.. eur is the default currency for the product, but since the customer has brl set, should it not use the brl currency?
not sure, I don't really use the dashboard much here and amn't too famliar with what the UI does
presumably it uses the default currency for the product then
okay im guessing it'd be possible to create that subscription through the API then, with the correct currency?
if you use the API then it just creates the subscription using the currency set on the Price object you pass or the currency parameter you pass , so you control it yes
okay well, i can create the subscription through the API for now then i suppose, but is there a way to figure out why it defaults to eur?