#MorenoMdz
1 messages · Page 1 of 1 (latest)
Where did you see the error from? Can you share the request ID (req_xxx)?
sure, gimme one min
The error comes from the Stripe node SDK directly btw
@limber plume I dont have the req, is it possible to find it using the event?
evt_1Np1NyFLA3BbKLyx8NwEJnJ6 on acc acct_1NdYwZFLA3BbKLyx
wait this is a standard payout, it should not be sent manual, I thought only instant payouts could be manually triggered
The error message was returned from your server, not Stripe. Could you trace where your server thrown this error from and what was the cause of it
No it comes from the Stripe SDK:
This is likely the request that you made to Stripe that returned this error. Could you check what the request ID was?
one sec
this is the request we do to retrieve the balance trx related to a payotu
this.stripe.balanceTransactions.list(
{
payout: payoutId,
type: 'payment',
limit: 100,
expand: ['data.source.source_transfer'],
},
{ stripeAccount: accountId },
)
this happens when the webhook pings our system with a for example an event of PAYOUT_CREATED
I understand, but I would need the request ID (req_xxx) to check why the error was returned for this specific payout. Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
hmm
this is more complicated to find than it should tbh
trying to find the request our system made on that time
I dont see the request here
can it be because it is pinging a connected account?
Ok I found a different one with the same error: req_xlEDjEPDsZKM4s
Response body
{
"error": {
"message": "Balance transaction history can only be filtered on automatic transfers, not manual.",
"param": "payout",
"request_log_url": "https://dashboard.stripe.com/acct_1NgFiEFTycyGGOqO/logs/req_xlEDjEPDsZKM4s?t=1694568435",
"type": "invalid_request_error"
}
}
Request query parameters
{
"limit": "100",
"type": "payment",
"payout": "po_1NpfVfFTycyGGOqORX7Ya3g0",
"expand": {
"0": "data.source.source_transfer"
}
}
Thanks for sharing! Looking into it now
thanks!
The payout po_1NpfVfFTycyGGOqORX7Ya3g0 was made manually in Dashboard: https://dashboard.stripe.com/logs/req_Lg60RuiKO0yErj
It's not an automatic payout
yea that was my initial guess, but we didnt know if it was possible to do a non instant pay from the dashboard
For payout performed manually through Dashboard or API (not Stripe's automatic payout), balance transaction history won't be available. Stripe doesn't know what are the charges, transfers... etc that are included in this payout since it's a lump sum requested
With connected account type as Express (your case), only platform can initiate the manual payout. If the connected account type is Standard, then connected account can perform manual payout.
so in our case, the users that create an account connected to our account should not be able to do this manual payout action right?
Yup! Express connected account doesn't have access to full Dashboard. Only Express Dashboard is supported: https://stripe.com/docs/connect/express-dashboard
Do you have the information when that action was released in the dashboard, and how we can disable it?
In Express Dashboard, connected account has no option to control the payout. It can only be performed by the platform
Also, in the API/Dashboard do we have access to audit who did start the manual payout?
In Express Dashboard, connected account has no option to control the payout. It can only be performed by the platform
Oh I meant when we added this action in the platform dashboard:
this is new and is causing all this trouble lol
Gotcha! This channel is for direct technical integration with API. I'm afraid I don't have the release information off the top of my head and if it's possible to disable it in the Dashboard.
For API, this can be controlled within your system who and how the manual payout can be triggered for audit purpose. For Dashboard related queries, our support team will be able to assist you better than I can: https://support.stripe.com/contact
I see, does the API have any audit endpoints we can use?
I'm afraid Stripe doesn't offer audit endpoint. Since the API request is made from your server, it can be audited in your own system before making the request.
all good, I was able to identify what happened from the dashboard
what I need to figure out now is if when someone from our team use that new action, it automagically changes the connected account setting to be manual instead of automatically daily
Sounds right! Your system can listen to account.updated event when such payout schedule setting is changed, so that it can be flagged out
yep
what is counter intuitive is how the button changes the account settings
when it sounds all it does is an ad hoc payout
if you could pass that feedback forward to your product team haha
anyway, thanks for the help, I have the information I need for now.
No problem! Happy to help 😄