#vparthay_api

1 messages ยท Page 1 of 1 (latest)

halcyon mauveBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

daring eagle
#

Hello

smoky gorge
#

What's the refund id?

daring eagle
#

What do you mean?

smoky gorge
#

I am trying to tie with TRR with the actual refund and unable to find it.. Which API should I be using for it?

daring eagle
#

Ah

smoky gorge
#

sure thanks ..

#

"source_transaction": null,

#

I get a null, does that mean this came out of nowwhere?

daring eagle
#

What happens if you expand source_transaction when you retrieve the Transfer?

smoky gorge
#

it is still null

#

trr_id = "tr_1QbDshDMNOMDEQIUW5cZCU6N"

transfer = stripe.Transfer.retrieve(
trr_id,
expand=[
"source_transaction",
]

)

print(transfer)

daring eagle
#

Hmm okay sorry I must be misremembering. I thought we set source_transaction for destination charges... let me double check on that...

#

Just to be clear, there is no refund tied here

#

Like the Transfer Reversal was a separate API request

#

But I am assuming you want to know the originating PaymentIntent for the Transfer, correct?

halcyon mauveBOT
smoky gorge
#

But I am assuming you want to know the originating PaymentIntent for the Transfer, correct?

Yes yes yes..

ashen lake
#

๐Ÿ‘‹ Taking over this thread, catching up now

#

Thanks for waiting! source_transaction is generally used to retrieve the original Payment Intent. However, this original Payment Intent pi_3QaUhuDMNOMDEQIU0nwcsfH0 was created with multiple capture, which the source_transaction isn't populated when multiple capture is used.