#torn_api

1 messages ¡ Page 1 of 1 (latest)

still escarpBOT
#

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

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

celest raven
#

Hi there

#

Taking a look

celest raven
#

Okay so the issue here is that you can only use the Apply Customer Balance endpoint to fully apply funds to a PaymentIntent.

#

You can't partially fund the PaymentIntent here.

#

Since it is associated to an Invoice/Subscription you can't adjust the amount of the PaymentIntent either.

#

The best path forward here is to create a new PaymentIntent for that Customer to charge their balance.

#

Then you can either mark the Invoice as paid or you could void the Invoice.

#

Depending on how you want to handle that.

#

Otherwise, you'd need your Customer to push funds for the remaining amount of the Invoice to be able to pay it with the Customer balance

steady venture
#

is there not a way to apply partial payment to an invoice?

celest raven
#

Ah actually we can try one thing

#

Under Manage invoices sent to customers there is the Adjustments setting

#

That lets you write off a certain amount

#

I'm not positive if this only applies on the push during reconciliation or if it will apply here as well. I can spin up a quick test of that or you could flip that on with the necessary amount and try to reconcile the amount here.

#

To be clear though this would fully pay the Invoice

#

There is no way to just partially pay the Invoice right now

#

(That is a feature we are working on and do hope to support in the future though I don't have a specific timeline)

steady venture
#

Ah ok. Im not sure that that would work for us. We have a 12.7k invoice, and a 12.5k cash balance. we would like to apply it to the invoice, but as you said, it wont work cause its not the full amount. Would best option here be to create a new payment intent and apply the cash balance to that, and then issue a credit note for the existing invoice? does that make sense

celest raven
#

Oh yep that's a great call.

#

That is going to be the best way to go right now to collect the full amount for the Invoice

steady venture
#

ok awesome. thank you bismarck!