#zarel_api

1 messages ยท Page 1 of 1 (latest)

dapper sinewBOT
#

๐Ÿ‘‹ 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.

misty arrow
#

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?

onyx nacelle
#

Hey, sure, give me a sec

#

in_1QglqhGNA5PYvgdDTtImZqMm as far as I know this is one of the examples

misty arrow
onyx nacelle
#

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);
misty arrow
#

Which memo are you referring to?

misty arrow
onyx nacelle
#

When You open the invoice I referred for 0.00 there's a "Memo" in summary

onyx nacelle
#

I'll show u

misty arrow
#

So you've called /send endpoint on a different zero-amount invoice and there was no email sent? Got an example?

onyx nacelle
#

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

onyx nacelle
#

and those reports started happening since this 8th of January

misty arrow
misty arrow
onyx nacelle
#

in_1QhpPuGNA5PYvgdDSV3IouRV

misty arrow
#

So this is an invoice where the customer didn't receive an email after you called /send?

onyx nacelle
#

no no, this one also got reported to me

#

in_1QqxG6GNA5PYvgdD8BWC9aSJ

misty arrow
#

I need an example of the different behaviour

onyx nacelle
#

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)

misty arrow
#

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 /send endpoint for in_1QqxG6GNA5PYvgdD8BWC9aSJ here (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
onyx nacelle
#

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

misty arrow
#

Zero amount invoices are always created. We don't send them automatically unless you specifically call /send endpoint, which you are

onyx nacelle
#

Previously, as I show u on the screenshot with invoices history, there were no 0.00 invoices registererd there

misty arrow
onyx nacelle
#

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

misty arrow
#

Well the Dashboard functionality is completely detached from whatever SDK version you're using

onyx nacelle
#

we never heard from customers about 0 invoices before so those werent sent either prior to that upgrade

misty arrow
#

Please share an example in_xxx that pre-dates 8th Jan where it behaves as you expect

onyx nacelle
#

sure

misty arrow
#

I've asked for you one 3 times now

onyx nacelle
#

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

misty arrow
#

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)

onyx nacelle
#

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)

misty arrow
#

Maybe it isn't, I don't know. We don't really handle Dashboard queries

onyx nacelle
#

Gotcha

misty arrow
#

Maybe something changed there with how we list invoices, but this isn't a change to your code/API etc

onyx nacelle
#

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.

misty arrow
onyx nacelle
#

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?

misty arrow
#

Yes it'll be sent on finalization

onyx nacelle
misty arrow
onyx nacelle
#

will it be this one?
"Send finalised invoices and credit notes to customers"?

misty arrow
#

Yep

onyx nacelle
#

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?

dapper sinewBOT
onyx nacelle
#

I see this "Monthly" memo everywhere so I think we're not using it correctly

misty arrow
#

I think it'll pull the description from the Product otherwise

#

Try unsetitng the default and creating an Invoice

onyx nacelle
#

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

autumn shadow
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

onyx nacelle
#

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

autumn shadow
onyx nacelle
#

not yet, is there a way to do it quickly through test mode just to see the resutl?

#

Through dashboard I mean

autumn shadow
onyx nacelle
#

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

autumn shadow
#

So it didn't pull the product description, did it?

onyx nacelle
#

nope, at least in the draft I don't see it

autumn shadow
autumn shadow
onyx nacelle
#

ou I sent it

#

status is Open, I downloaded PDF but no descripiton there

autumn shadow
#

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

onyx nacelle
#

ah, then its okay, I'll just delete the memo and make the description/footer generic so it fits, I don't have time to test preview features ๐Ÿ˜…

#

Thanks for the help anyway, at least my main problem with sending 0.00 amount invoices to customers should be handled