#haris ishtiaq-invoice

1 messages ยท Page 1 of 1 (latest)

upper mirage
#

๐Ÿ‘‹ happy to help

#

applied balance is the balance (if any) of the customer

dull cobalt
#

exactly so how can i get it using api ?

upper mirage
#

you will find the balance on that object

dull cobalt
#

is it refundable ?

#

are you sure the applied balance and the balance in customer object is the same?

dull cobalt
#

balance is still showing 0 every time, no matter what amount is there in applied balance

#

what i noticed is there are two balances in an upcoming invoice estimation
one is starting_balance and other one is ending_balance
can you tell something about it

#

im actually looking for credit balance amount that a company yet to pay to the customer or amount is there to be used in future payments

upper mirage
#

starting_balance and ending_balance are the Customer's balance before and after the invoice

dull cobalt
#

okay but customers balance remains 0 no matter how large the applied balance is

upper mirage
#

could you please share the id of that invoice where you have the applied balance?

dull cobalt
#

in_1LFDzaJOIuKIWiW6B9sDoynH

#

@upper mirage

upper mirage
#

I'm looking at it, please be patient, I will answer you as soon as I can

dull cobalt
#

ok ok i was just making it sure that u read the message

upper mirage
#

no worries, it's just it's been busy on discord lately ๐Ÿ™‚

upper mirage
#

the ending_balance is 0 since we used the customer's whole balance to pay the invoice

#

in the upcoming invoice there wouldn't be any Applied Balance, since the starting_balance is now 0

dull cobalt
#

okay i understand
now have a look at this

#

this is a customer having credit balance of 2399.98

upper mirage
#

oh I see that the customer has a credit balance

dull cobalt
#

now when i retrieve this customer object i shows balance 0

upper mirage
#

did you refund the first invoice?

dull cobalt
#

ok got it
was retrieving the wrong customer
my bad ๐Ÿ˜ฎโ€๐Ÿ’จ
okay so we can refund this balance at once by putting this amoutn in refund api right ?

upper mirage
#

the customer still has the account balance even after it was used in the invoice

#

did you add more balance to their account?

#

after the invoice I mean

dull cobalt
#

actually i upgraded the subscription (by swapping the previous plans with the new ones) and it was prorated.
so the new plans were cheaper as a result it gives me money back i think..

#

no i didn't add any more amount

upper mirage
#

I just figure it out, basically as you said it was a proration thing that started this all thing

dull cobalt
#

yup

upper mirage
#

the invoice that you first shared had a "small amount" less than the amount that Stripe Charges (50cents)

dull cobalt
#

bcz of prorated thing may be

#

but this will work for me for now
i just want to confirm that how can we refund this amount to the customer to their bank

upper mirage
#

the only way to refund an amount is to locate a Charge/Payment done from the customer and refund that

dull cobalt
#

that requires a charge or payment id
so i can not just refund the whole amount at once ?
editted: if it is been collected from multiple payments or charges

upper mirage
#

that requires a charge or payment id
yes that's correct

#

unfortunately that's a limitation that we don't have a workaround for

dull cobalt
#

okay

#

brother! thank you so much for helping me out

upper mirage
#

let me know if you need any more help

dull cobalt
#

thank you
have a good day