#grace-invoice-customerbalance

1 messages ยท Page 1 of 1 (latest)

mint fableBOT
signal hedge
#

Hi ๐Ÿ‘‹

I'm sorry but that question doesn't make any sense to me. What are you trying to do?

exotic prism
#

creating an api, this API should take a look at the balance adjustment made on the customer of an invoice that adjusted the customers balance due to a zero-dollar invoice and should perform a stripe transfer to the associated connect account for the amount of the balance adjustment on that invoice

#

hello, are you there?

#

hello???

signal hedge
#

Hi ๐Ÿ‘‹

#

there are a lot of people asking questions here and only one of me

exotic prism
#

oh, i see

signal hedge
#

Once again, the question doesn't make sense.

#

You don't invoice a Connected Account

#

So what are you trying to do here?

#

Create an invoice, create a transfer, apply a customer balance?

exotic prism
#

after applying a customer balance, let's say 100, what will the ending_balance be for that invoice?

signal hedge
#

For what invoice?

#

Do you have any concrete examples?

exotic prism
#

on the invoice you just created

signal hedge
#

I don't know what you are talking about. I didn't create an invoice

exotic prism
#

let me rephrase my question, how can i get the balance adjustment made on the customer of an invoice, when given the invoice id

signal hedge
exotic prism
#

this is the test invoice i created, seems like the payment intent is null.

mint fableBOT
signal hedge
#

The screenshot isn't super helpful here but it looks like the amount may be 0. In that case we don't generate a Payment Intent because you won't be accepting any payment

exotic prism
#

so i have a amount_due=0 invoice, and i want to see the balance adjustment made on the customer of that invoice, what would be a way to do it?

signal hedge
#

Do you have the invoice ID I can check?

exotic prism
#

i don't have a specific id, i'm trying to write the logic to achieve what i just said above. Is there a way to create a test invoice that fits this scenario?

obsidian hull
#

grace-invoice-customerbalance

#

you want to add a credit to the Customer's balance for example before the Invoice

exotic prism
#

did it with the test invoice in the screen shot i sent

obsidian hull
#

All you're sharing are pictures

#

What do you need help with exactly? I'm sorry I don't really follow the confusion/problem

exotic prism
#

how can i get the balance adjustment providing the invoice id?

#

in the dashboard, i edit the invoice credit balance, it is affecting the invoice on the screen shot. In my code, i have that invoice id, how can i get that balance adjustment amount?

#

hello?

obsidian hull
#

Sorry there are like 20 other developers needing help.

exotic prism
#

oh, i see

obsidian hull
#

Wht have you tried? It's right there in your previous picture?

exotic prism
#

ya, but i'm trying to get that in my code, like accessing an api

obsidian hull
#

https://stripe.com/docs/api/invoices/object has every property and what you want is starting_balance which is the Customer balance total before the Invoice, and ending_balance which is the customer balance after the Invoice

exotic prism
#

ya, my assumption was start and end balance but saw that, the ending balance is null,

obsidian hull
#

please don't keep sharing pictures

#

If you can share exact id from your exact code instead of pictures of a network tab in Chrome, I'm happy to help you or try at least.

exotic prism
#

in_1Mni8LFyrvghf3LktaCJo3BB this is the test invoice i created

obsidian hull
#

That Invoice is a draft right? You haven't finalized it, so the balance hasn't applied yet and so there's no ending_balance

Also that Invoice is completely empty with no line items

#

https://stripe.com/docs/api/invoices/object#invoice_object-ending_balance

Ending customer balance after the invoice is finalized. Invoices are finalized approximately an hour after successful webhook delivery or when payment collection is attempted for the invoice. If the invoice has not been finalized yet, this will be null.
Our docs say the exact same thing and are as detailed too

exotic prism
#

can i finalize that invoice somewhere in the dashboard?

obsidian hull
#

Just to clarify, this Discord server is for developers asking questions about their own code. So usually you would do all of this quickly with code as the developer.

And you can't finalize an Invoice that has no line items, you forgot to add a real Price to it at least. But yes after that you can finalize in the Dashboard

exotic prism
#

i see send , duplicate etc, where is the button to finalize?

obsidian hull
#

I explained you have no line items on it

#

Are you a developer yourself? Or just playing with the Dashboard?

exotic prism
#

i just added one item

#

i am not just playing with dashboard, i'm building an api, need a test invoice in that scenario

#

and, that is why i sent screen shots, do that you can see what i did with your eyes

obsidian hull
exotic prism
#

again, can i finalize it on the dashboard?

obsidian hull
#

yes

exotic prism
#

could you please send me a screen shot as to where to do it, i would really appreciate it

obsidian hull
#

hum I can't see the button either and I am helping 20 other people with coding questions

#

Please write code instead which will take you a minute and solve the problem

exotic prism
#

can i talk to your manager?

obsidian hull
#

I did answer your question though. It does look like something change and the button is not there anywhere. It definitely should, and I'm flagging internally, but right now the only option will be to write code for it

exotic prism
#

oh, i see, thx then

#

so you don't know if the dashboard can still finalize the invoice? you should have told me that

#

i do want to ask someone who knows in the dev help

obsidian hull
#

I'm the one answering, you can't ask someone else, this is my shift. For now I have explained the button isn't here and while it should be, it's likely a UI change and for now you will need to write code.
My team rarely touches the Dashboard, we help developers with their code. If you do want to mostly focus on the Dashboard for now, I would recommend talking to our support team directly at https://support.stripe.com/contact as they are more familiar with this UI