#shnikola_invoice-partialpayments
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/1387460354467954819
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, can you provide an account ID?
Sure, it's kmrkwwvhQcvQD2AmFIUu79CRBHqS49Qi
example of events I am trying to get the invoice ID of (test env):
evt_2RduRWkmrkwwvhQc10mW7cWEevt_2RdpYckmrkwwvhQc1hF7nF23
Thanks, I'm still looking into this.
I'm looking at evt_2RduRWkmrkwwvhQc10mW7cWE and this charge was created directly via the API (req_qE9ECjLNndSmYt).
Correct, I use the API to initiate refunds
The API was used to initiate the Charge as well. So It's not tied to a Payment Intent.
Correct, but the other event is tied to a Subscription, so should have it
I have 2 types of payments - one with manual charges, and another for subscriptions. Both can be refunded
Right, however, you're looking for an Invoice to be returned with the event.
This specific example, the Charge was create directly via the API and was not tied to a Invoice or Subscription.
Sorry, the evt_2RdpYckmrkwwvhQc1hF7nF23 is a better example of that. That one should be tied to an invoice
Got it. There's been a change with the Basil version of the API. The PaymentIntent is returned in the event. With that you can list the payments associated with an invoice to get the Invoice ID [0].
[0] https://docs.stripe.com/api/invoice-payment/list?lang=ruby
Bit this API takes an invoice ID and returns payments. I don't have the invoice id
You should be able to pass the PaymentIntent ID [0]
Ah, I see. Thank you.
On a related note, my business logic was supposing that one invoice = one charge. Now that an invoice can have multiple payments, I usually just do invoice.payments[0]
Are there any scenarios where an invoice would have multiple payments?
Hi, yes that is possible on this API verions as my teammate suggested: https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
Can this happen in the usual subscription process with card payments?
From the context above, it does not sounds like it as you're attemting to charge the customer the full amount on the invoice.