#thai_invoice-credit
1 messages ¡ Page 1 of 1 (latest)
đ 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/1273419843881664532
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- thai-huynh_api, 2 days ago, 8 messages
@thin parrot the Refund API is for refunding a payment that was made. It doesn't handle a concept of "credit".
I think you want to look at the Invoice itself, specifically the starting_balance and ending_balance properties
thai_invoice-credit
oOoo ook i see it
what about a partial refund
say i purchase 2 items ... refunded 1 item
but it was all paid using balance
Sorry that's a bit too cryptic. A Refund is for a real payment, if they paid with their card for example. If you had a balance/credit then you'd handle this yourself
basically this is what im doing...
- Update customer balance to $50
- Create an invoice for 2 items $25 each
- Partial refund of $25
should I just check for the customer balance at the end of it for refunds?
not really. Like in your example they never "paid". So there's nothing to refund. You can not create a Refund at all in the API here. So it'd be on you to track their credit balance and set it back to $25
yea i guess just to check for the credit balance
ok thanks
one other qustion while i have u here
if i remember it correctly, we cannot pause a subscription via api right?
it has to be done via dashboard?
it has been awhile since I work on the pause feature
yes we don't have a pause feature in the API today