#gabrielmr_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/1225461165992312853
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
The balance transaction objects will have a source: https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That should be the charge
Source?
yep
Let me see
click the above link
the source param should contain the "source" of the balance transaction
This?
So if you're looking at the balance transactions from a payout, the source params on those balance transactions should be a charge
That is a transfer
You looking at a connect account?
If it's a connect account, then that would make sense
Often the platform transfers funds to the connect account and then those funds are paid out
I only opened the link you have sent to me
So source would be a transfer
But, Let's say that
I sell something to a client, for example
And I receive the charge object
I save on my database the charge Id
But I'm not integrating the Payout
I want to integrate this right now
yeah i told you how
look at the source param
You never answered my question though
Is that a connect account's payouts you're looking at?
Can you paste this balance transaction id in the chat:
So I don't have to try to type it out from the screenshot
https://docs.stripe.com/api/payouts/list
I'm referring to this method
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 know
Just please do what I ask so I can help you
This is from the link you have sent me...
Balance Transaction,
you say I need to get this info: "balance_transaction": "txn_1P1..."
Or something like this?
Right
You need to either expand it or retrieve it
So you can look at the source param on it
That should contain a charge id (assuming this isn't a connect account)
So, making a summary:
I retrieve the payouts from the day I want, and with each balance_transaction "id" I need to retrieve the "balance transaction object" to get the charge that "connects" the client order with the payout
Thank you!
yeah exactly
I'll try it later, thank you again!