#mv-connect

1 messages · Page 1 of 1 (latest)

slate crown
#

by 'wiped out' probably it's just there were some more payment which brought the balance back positive again, or we moved reserves from your platform to the connected account to clear the negative balance; it really really depends on the specific examples

dusky hornet
#

Ok i think it moved reserves from our platform to clear the negative balance. Is there any way to stop this happening/ can we get notified when this happens?

#

From the docs, it seems this is done after 180 days

slate crown
#

you can see it happen in your balance reports

#

there's not really a direct notification/webhook event as such no, and you can't stop this from happening as far as I know

dusky hornet
#

Ok thank you

#

So this is the only way we can check when this happens?

slate crown
#

yep, it's likely something you want to build in to your reporting

dusky hornet
#

thanks! I have another question related to payouts - if we send a transfer today (and our payout schedule is daily) - is this always paid out the next day? what about weekends/public holidays?

slate crown
#

I think it depends on the countries involved

dusky hornet
#

No worries, thank i'll drop them a message

#

and is there a way of knowing the "Expected payout date" once a transfer is made to a connect account?

slate crown
#

yep it would be the available_on field of the BalanceTransaction linked to the transfer.destination_payment , i.e. the available date of the balance transaction on the connected account that's caused by the transfer arriving

dusky hornet
#

what's the endpoint for the BalanceTransaction?

slate crown
#

https://stripe.com/docs/api/balance_transactions (plus the Stripe-Account option (https://stripe.com/docs/connect/authentication) since you'd be retrieving the BT from a connected account)

Learn how to add the right information to your API calls so you can make calls for your connected accounts.

dusky hornet
#

thank you!

slate crown
#

probably easier to explain in code if an example helps

#
// create a test destination charge and expand the Transfer created
let pi = await stripe.paymentIntents.create({
  amount: 1000,
  currency: 'eur',
  payment_method_types: ['card'],
  payment_method:"pm_card_visa",
  transfer_data:{destination:"acct_1Jk4zMR1CS6AzsX4"},
  confirm:true,
  expand:["charges.data.transfer"] // https://stripe.com/docs/expand 
});
// look at details of the transfer arriving on the connected account
let destPayment = await stripe.charges.retrieve(pi.charges.data[0].transfer.destination_payment, {expand:["balance_transaction"]}, {stripeAccount:"acct_1Jk4zMR1CS6AzsX4"});
console.log(destPayment.balance_transaction.available_on)