#triplee-subsriptions

1 messages · Page 1 of 1 (latest)

dull shuttle
#

triplee-subsriptions

cunning quest
#

I'm seeing the invoice.GetNext() API but that next invoice may be $0

#

so I guess I really want to find the upcoming invoice that is not $0

dull shuttle
#

Unfortunately, there isn't really a good way to do that automatically with our API. With the "retrieve upcoming invoice" api endpoint, the most we'll do is calculate what the next Invoice we create will look like. There isn't really a way to look further into the future.

If you wanted to do this, you'd have to retrieve the customer's credit balance, predict how much would be consumed by each invoice, and then use that information to predict when the next non-zero invoice would be created

cunning quest
#

gotcha okay no worries. and best way to retrieve the customer's credit balance?