#tiffany-m_api

1 messages ยท Page 1 of 1 (latest)

proper wharfBOT
wintry dawnBOT
#

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.

proper wharfBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1253706184452476949

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

regal scaffold
#

Not sure exactly what you mean by this. Refund should pull from the account's balance if there's enough funds. If this happens before the payout then that will show up on the payout.
is there a way to access the transfer id for a payment_refund?
what transfer id? is this a connect scenario? can you share an example refund id?

lean wyvern
# regal scaffold ```Question about if refunds that happens for example 6/25 for a payment that or...

Not sure exactly what you mean by this. Refund should pull from the account's balance if there's enough funds. If this happens before the payout then that will show up on the payout.
In balance_transactions, it will show the payouts let's say from the past day. However, my question is if I have a transaction or payment that happened let's say on 6/21 originally for $100.00, that would show up on the payout for 6/21. But if I process a refund or partial refund for that payment on 6/25, would I see the data on that endpoint for the original transaction for $100.00 with the ["source_transfer"]["amount_reversed"] information attached? I understand that I would see the refund or partial refund as its own object in the return from the list balance_transactions, but that object does not seem to have "source_transfer" available which includes the "id" of the transfer, which is what I need. I'll include the response I'm seeing below for example.

what transfer id? is this a connect scenario? can you share an example refund id?
The ["source_transfer"]["id"] in the output attached or the id that starts with tr*.

In the attachment, the first output is coming from the original transaction or transfer for $1000.00 that then later had a partial refund for $250.00 and the output includes both but I believe that's only because both happened the same day. My first question, being if the refund happened for a transfer or transaction in the past if both the original transaction/transfer and the refund appear in this list? And if not, I need an alternate way to get the ["source_transfer"]["id"] that relates to the refund since the output currently doesn't include that.

lament epoch
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Out of curiosity, have you tried to refund a past testmode payment to see exactly how all the objects will look when you do so?

#

I'm still trying to parse the question/scenario/what you're expecting though.

But if I process a refund or partial refund for that payment on 6/25, would I see the data on that endpoint for the original transaction for $100.00 with the ["source_transfer"]["amount_reversed"] information attached?
The original Balance Transaction remains in place. Creating a Refund will cause a new Balance Transaction to be created for the refund.

lean wyvern
#

Hi, I haven't tried yet creating a refund for a past day's transaction. I've gone ahead and done so via the Stripe dashboard now but will have to wait for the daily payout to occur to check.

The original Balance Transaction remains in place. Creating a Refund will cause a new Balance Transaction to be created for the refund.
I understand a new balance transaction will appear in the output. In my output file attached, I have the output for the original transaction and the refund and they are separate objects returned. But the question 1) if I create a refund for a transaction today for an payment/transfer a few days ago, will both appear in the balance transactions for a payout for the past day 2) if there's a way to access the transfer id for the original payment the refund was for.

However, I was able to find the answer to the latter by trying a bunch of things, by adding the following expand to the request, data.source.transfer_reversal

lament epoch
lean wyvern
#

Not referring to a field on the balance transaction object. But, according to that output from the list balance transactions, I just wanted to know if I would see separate objects returned for the original transfer and the refund transfer on the same day, if only the refund transfer happened in the past day and the original transfer payment happened a week ago

lament epoch
#

Sorry, I need to know where you're looking to be able to explain what you should expect to see there. Balance Transactions contain a single reference to the object that triggered them in their source field. In the case of a Transfer being what caused the Balance Transaction, then the source field will contain the ID of the Transfer object. Since you're using expand, the Transfer object will also be expanded showing it's current state.

lean wyvern
#

For reference, I was using the cli, but I was able to get what I need with this:

stripe balance_transactions list --payout="po_1PTEKOGbO9HHspF7uxQPsH0d" --api-key="sk_test_51Mta0EKA296nhejwWml6kXp3RJ0g37BmcMPIt3l86YjcKz6oEf9ZpTnMJmMzrQYxca7bTs48FZBuluKbKbhT1CKN00jTwA1hyw" --stripe-account="acct_1OL9pUGbO9HHspF7" -d "expand[0]"=data.source.source_transfer.source_transaction -d "expand[1]"=data.source.transfer_reversal.transfer

I needed the transaction id for the original payment or transfer the refund was associated with

lament epoch
#

I'd recommend rolling your secret key that is in that message, as this is a public forum.