#jacobjensen_api

1 messages ยท Page 1 of 1 (latest)

fading mistBOT
#

๐Ÿ‘‹ 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.

whole hawkBOT
celest spire
#

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?

ornate marten
#

Hi, Toby. The ID of the Balance Transaction is txn_1OyWJ4E5RkzLDNUxHVsuVsHm and the prefix of the object ID in the source field is pyr

celest spire
#

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:

ornate marten
#

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

celest spire
#

Can you try listing Credit Notes using the Invoice as a filter, using the endpoint I referenced?

ornate marten
#

you mean using the invoice number as a query when using the credit_notes list?

celest spire
#

Yeah, the ID of the Invoice, it should start with a in_ prefix.

ornate marten
#

that worked! thank you very much, Toby ๐Ÿ™‚