#gabrielmr_api

1 messages ¡ Page 1 of 1 (latest)

primal ospreyBOT
#

👋 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.

pulsar harborBOT
quasi fjord
#

That should be the charge

leaden pivot
#

Source?

quasi fjord
#

yep

leaden pivot
#

Let me see

quasi fjord
#

click the above link

#

the source param should contain the "source" of the balance transaction

leaden pivot
quasi fjord
#

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

leaden pivot
#

I only opened the link you have sent to me

quasi fjord
#

So source would be a transfer

leaden pivot
#

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

quasi fjord
#

what does that mean

#

what does integrate the payout mean

leaden pivot
#

I want to reconciliate the payouts with the charges made

quasi fjord
#

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?

leaden pivot
#

I don't know what is a "connect account"

#

I have only access to the Stripe API

quasi fjord
#

Can you paste this balance transaction id in the chat:

#

So I don't have to try to type it out from the screenshot

leaden pivot
quasi fjord
#

I know

leaden pivot
quasi fjord
#

Just please do what I ask so I can help you

leaden pivot
quasi fjord
#

Oh

#

So first call list payouts

leaden pivot
#

Yes

quasi fjord
#

Ok

#

Now you need to either expand each balance transaction

#

or retrieve them

leaden pivot
#

Balance Transaction,

you say I need to get this info: "balance_transaction": "txn_1P1..."

Or something like this?

quasi fjord
#

yep

#

Each payout has a balance transaction

leaden pivot
#

Right

quasi fjord
#

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)

leaden pivot
#

There's a charge id

#

I save it on the client carts on database

quasi fjord
#

There you go then

#

That's how you reconcile

leaden pivot
#

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!

quasi fjord
#

yeah exactly

leaden pivot
#

I'll try it later, thank you again!