#jacobjensen_api
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/1226872469617377301
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ can you share the ID of the Balance Transaction from your testing, and let me know what the prefix of the object ID provided in its source field is?
Hi, Toby. The ID of the Balance Transaction is txn_1OyWJ4E5RkzLDNUxHVsuVsHm and the prefix of the object ID in the source field is pyr
Gotcha, thank you for that! I'm taking a look.
Hm, offhand, I don't think I'm spotting a great way to do what you're doing with just the pyr_ object.
If you're able to get the Invoice ID, are you able to:
- list Credit Notes, using the ID of the Invoice as a filter in the
invoicefield: https://docs.stripe.com/api/credit_notes/list - iterate through the results until you find the Credit Note whose
refundmatches thepyrID you have: https://docs.stripe.com/api/credit_notes/object#credit_note_object-refund
?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I tried retrieving the invoice, but there is basically no information related to the credit note. All I can find in the response is: "post_payment_credit_notes_amount": 18000,
but if I look at the invoice via the interface, there is clearly a credit note attached to the invoice
Can you try listing Credit Notes using the Invoice as a filter, using the endpoint I referenced?
you mean using the invoice number as a query when using the credit_notes list?
Yeah, the ID of the Invoice, it should start with a in_ prefix.
that worked! thank you very much, Toby ๐