#MorenoMdz

1 messages · Page 1 of 1 (latest)

orchid pawnBOT
limber plume
#

Where did you see the error from? Can you share the request ID (req_xxx)?

fossil gull
#

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

limber plume
#

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

fossil gull
#

No it comes from the Stripe SDK:

limber plume
#

This is likely the request that you made to Stripe that returned this error. Could you check what the request ID was?

fossil gull
#

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

limber plume
fossil gull
#

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"
  }
}
limber plume
#

Thanks for sharing! Looking into it now

fossil gull
#

thanks!

limber plume
#

It's not an automatic payout

fossil gull
#

yea that was my initial guess, but we didnt know if it was possible to do a non instant pay from the dashboard

limber plume
#

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

fossil gull
#

can connected users start this manual payout from their dashboard?

#

or just us

limber plume
#

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.

fossil gull
#

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?

limber plume
fossil gull
#

Do you have the information when that action was released in the dashboard, and how we can disable it?

limber plume
#

In Express Dashboard, connected account has no option to control the payout. It can only be performed by the platform

fossil gull
#

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

limber plume
#

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

fossil gull
#

I see, does the API have any audit endpoints we can use?

limber plume
#

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.

fossil gull
#

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

limber plume
#

Sounds right! Your system can listen to account.updated event when such payout schedule setting is changed, so that it can be flagged out

fossil gull
#

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.

limber plume
#

No problem! Happy to help 😄