#akdj16

1 messages ยท Page 1 of 1 (latest)

narrow socketBOT
upbeat raptor
#

Hi there!

#

What is your question?

dim wren
#

Hi, I get a customer who has 5โ‚ฌ in credit balance, so I was thinking it will be applied on the next invoice, but when I call the api for checking the upcomingInvoice, I see that the starting_balance field is 0, and in the amount_due, the credit is not applied. it is a normal behaviour? do I need to finalize the invoice to see the credit applied?

upbeat raptor
#

Can you share the customer ID (cus_xxx) with the credit balance?

dim wren
#

yes

#

cus_Mm6awDgm9yBflK

#

this one

gusty stag
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

I'm not sure, but I could test this for you. AFAIK the upcoming invoice should take the Customer Balance into account

dim wren
#

ok could you test it ? because I tried many times and it is 0

gusty stag
#

I will as soon as possible

#

do you have the request id of the Upcoming Invoice request you've made?

dim wren
#

req_ANfIF0K739AuSw

#

this one?

gusty stag
#

no that's the balance transaction request

#

what I need instead is the Upcoming Invoice request id

dim wren
#

I just retry my test but I didn't find the request id

gusty stag
#

this is just adding balance to a customer

#

I'm looking into it now

dim wren
#

yes, but I did a call just after, and it is not showed here

gusty stag
dim wren
#

I added

#

I checked this invoice body, the starting_balance is -500 now

gusty stag
#

perfect ๐Ÿ™‚

#

let me know if you need any more help

dim wren
#

thanks

#

ok