#josula_invoice-credit

1 messages ¡ Page 1 of 1 (latest)

misty nestBOT
#

👋 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/1489284332756664351

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

unique vault
#

josula_invoice-credit

#

On the Invoice object in the API you have starting_balance and ending_balance properties that indicate whether the Customer has any invoice credit balance at the start and how much is left at the end

winged totem
#

ahh ok

#

so I could say "if starting balance <0 we could derive it was paid via customer balance"?

unique vault
#

yes though the customer balance can also be positive if they owe you money which can increase the total amount owed too. But yes

winged totem
#

ah ok. in what case would they be owing me money in stripe terms?

#

so a negative starting balance means its "bad for me" because I owe them?

#

"bad" relatively of course

unique vault
#

yes

winged totem
#

Sorry but I don't understand in what cases would they be owing me money?

#

Say a customer has an outstanding invoice and then they open another one. Would that be the case where the balance would be positive because they still owe me from the other invoice?

#

Just trying to grab this concept

unique vault
#

no

#

They would owe you money if you explicitly set their balance to something positive

#

Like you might never do this, but some businesses do this a lot as a way to defer what they owe you to a future payment