#zarel_api
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/1338802720152227892
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hmm, zero amount invoices are always created but they should never be sent to customers automatically via email. Do you have an example in_xxx that behaves this way?
Hey, sure, give me a sec
in_1QglqhGNA5PYvgdDTtImZqMm as far as I know this is one of the examples
Looks like your integration called the send endpoint: https://dashboard.stripe.com/logs/req_7vleA6y5dFuaBm
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
another weird thing is that "Memo" for it says that it's for our monthly account subscription but its send with the price ID for annual fee: price_1KRcIbGNA5PYvgdDxBHxJzfy
Ye I assume it may be from code line that I included in the report
Because in the endpoint Im using for creating an invoice in stripe I'm calling:
await invoiceService.SendInvoiceAsync(invoice.Id);
Which memo are you referring to?
Yeah then that'll email the invoice to the customer even if it's for $0. That has always worked that way
I have to disagree since when I had my code prior to upgrade I didn't change anything in that endpoint, only the library version and It changed its behavior
I'll show u
So you've called /send endpoint on a different zero-amount invoice and there was no email sent? Got an example?
look at the dates, the "Created" dates
8th january is the day when I deployed an update to live with new package version, I can specify u the versions if u want
before 8th january there were no 0.00 invoices, previously it happen in 2023, but it's for monthly subs and I don't really remember why this could occur
but we were operational normally for all those time in between 8th to 2023 nov and those 0.00 invoices didn't occur
I can't really tell if other 0.00 invoices are being sent or not because I only get to know about this from customers reports
and those reports started happening since this 8th of January
That's pulled from here: https://dashboard.stripe.com/settings/billing/invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you just share some of the in_xxx IDs please?
in_1QhpPuGNA5PYvgdDSV3IouRV
So this is an invoice where the customer didn't receive an email after you called /send?
I need an example of the different behaviour
e.g. this One I didn't get a report
(but its not certain that customer didn't get it, he just didnt report it)
As I said, nothing has changed here. Maybe you just have new customers who are sensitive to receiving zero-amount invoices?
In any case:
- Your integration called
/sendendpoint forin_1QqxG6GNA5PYvgdD8BWC9aSJhere (2025-02-10 13:42:47 UTC) - This is an invoice for
cus_RkSAGjrPRbkiT4 - Looking at the email address for that customer, we did indeed send them an invoice email at 2025-02-10 13:42:54 UTC
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I found the versions.
On this version, with exactly the same code, 0.00 invoices were not being created:
<PackageReference Include="Stripe.net" Version="39.89.0" />
On this it started happening:
<PackageReference Include="Stripe.net" Version="47.1.0" />
Yes, I get that, the weird part is that it started happening with poackage update, without any changes in code
Zero amount invoices are always created. We don't send them automatically unless you specifically call /send endpoint, which you are
Previously, as I show u on the screenshot with invoices history, there were no 0.00 invoices registererd there
You say that but you've yet to share an example
this is the example
when I filter invoices for 0.00 amount
I only see them after the package upgrade
we are operational for last 2 years+
yet 0 invoices are only after 8th of january
Well the Dashboard functionality is completely detached from whatever SDK version you're using
we never heard from customers about 0 invoices before so those werent sent either prior to that upgrade
Please share an example in_xxx that pre-dates 8th Jan where it behaves as you expect
sure
I've asked for you one 3 times now
I'm not sure if you fully understand, I don't have 0.00 invoices prior to update in the dashboard ๐
Prior to upgrade I only have invoices like those, for this specific subscription:
in_1QcXCUGNA5PYvgdDFccDYdsl
in_1QcWxDGNA5PYvgdDOmvBTFmo
O I know, I'll give u example base on customer, this will show the differenece
OK, then maybe something changed in the Dashboard. But that has nothign to do with your integration, the API or an SDK version. We have always generated zero-amount invoices, we just never email them to the customer unless you specifically tell us to (which you do)
ou nvm, in customer's view, it actually looks the same, the 0.00 invoice is not shown there...?
cus_RVxQPkyZMDay6B
This is the customer prior to upgrade.
This is the one after:
cus_RZBesWNqhQjVeD (his invoice for 0.00 that I can see in the invoices but not on his screen: in_1Qg3HYGNA5PYvgdDiwQSIj0O)
Maybe it isn't, I don't know. We don't really handle Dashboard queries
Gotcha
Maybe something changed there with how we list invoices, but this isn't a change to your code/API etc
ok so one last clarification, assuming I'll remove the /send call from my code after the invoice for annual sub is created with trial period, will the actual invoice for full amount still be send to customer automatically?
bc right now I'm doing something like this:
I create invoice object with option stated:
CollectionMethod = "send_invoice",
DaysUntilDue = 10
Then I'm calling:
v1/invoices (to create one)
"/v1/invoices/{WebUtility.UrlEncode(id)}/finalize (To finalize it)
v1/invoices/{WebUtility.UrlEncode(id)}/send (To send, we agree that this one I should remove to stop sending 0.00 invoices)
But I never manually "create" 0.00 invoice and send it, I'm creating invoice for full amount with trial time and then I thought I'm sending this one.
Yes, assuming you have that setting enabled in Dashboard
so Assuming I'll remove the last /send call after I create full amount invoice with trial, will it still automatically send this invoice to a customer?
Yes it'll be sent on finalization
ou okay, can u point me out quickly where I could find that?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
will it be this one?
"Send finalised invoices and credit notes to customers"?
Yep
ok, so this one I have enabled, good
I'll go back for a sec ot the Memo thing, in the settings -> Invoices it says that its "Default memo", can we override it for specific product?
I see this "Monthly" memo everywhere so I think we're not using it correctly
I think it'll pull the description from the Product otherwise
Try unsetitng the default and creating an Invoice
hm I don't think it's that, I have e.g. this invoice: in_1QoLqyGNA5PYvgdDseXLUe4x connected to this product: prod_LQdnALiA80WdDH and product has descripiton set, yet memo is still the default value for the invoice
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Hey Vanya! No problem, nice to meet You ๐
Right now what's left is only the matter of overwritting the default values for MEMO and footer actually as well for invoices
I want to override default memo and footer values for specific products
so e.g. when someone subscribes for monthly sub I want it to say "Monthly fee" and when for annual I want it to say "Annual fee", same for footing
Have you tried this?
not yet, is there a way to do it quickly through test mode just to see the resutl?
Through dashboard I mean
I guess you could just delete what you have here: https://dashboard.stripe.com/settings/billing/invoice
ye ye , I mean strictkly creating an invoice just to see the result pdf
nvm, found it
Ye well, removing it results in what I expected it would - it's just empty ๐
I wanted to know if its possible to customize it per product, so its different base on that
So it didn't pull the product description, did it?
nope, at least in the draft I don't see it
And I understand updating description/footer is not an option since it's about the initial Invoice of a Subscription, right? https://docs.stripe.com/api/invoices/object#invoice_object-description
But you won't see the PDF in status=draft
Okay, there's a preview feature that will allow you to set a Template ID explicitly on the Invoices that are created via Subscriptions API. You will need to ask Stripe Support to enable it for your account: https://support.stripe.com/?contact=true