#Dan Judge
1 messages · Page 1 of 1 (latest)
Hi
just to make sure I follow you, Are you referring/trying to achieve to this guide in order to get the charges included in a payout ?
https://stripe.com/docs/expand/use-cases#charges-in-payout
However, I'm finding this hard to test, because if I do manual payouts to get some data, I can't pull the transfers for that payout (it says I can only do it on the automatic payouts).
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
I'm not doing the lookup on charges, rather, I'm using transfers, so for each payout which is listed for the affiliate, I'm then doing the following:
$balance_transactions = $this->stripe->balanceTransactions->all([
'payout' => $payout_id,
'type' => 'transfer',
'limit' => 100,
], $balance_transaction_headers);```
thanks for clarifying, and can you please share the requestId of the failure API request ?
No worries, but in general you should be able to test payout, you can a test bank acocunt:
https://stripe.com/docs/connect/testing#payouts
And do some payouts in your test mode.
Don't hesitate to come back once you have a requestId
My connect account's pending balance from the payout has a pending in negative, why would this be?
(
[object] => balance
[available] => Array
(
[0] => Stripe\StripeObject Object
(
[amount] => 16292
[currency] => gbp
[source_types] => Stripe\StripeObject Object
(
[card] => 16292
)
)
)
[livemode] =>
[pending] => Array
(
[0] => Stripe\StripeObject Object
(
[amount] => -16292
[currency] => gbp
[source_types] => Stripe\StripeObject Object
(
[card] => -16292
)
)
)
)```
It actually looks like there's also no associated transfer with the payout as it's not listing any balance transactions, which I don't get.
The flow was:
User paid for subscription for 1,500 gbp on 28th Apr
Affiliate connect account was transferred 169.92 gbp immediately after the above
Then I did the manual transfer on 28th which was for the full account balance which was 169.92
Payout ID: po_1N1fkLCdamuDJ8XiaGJw8GBC
Transfer ID of transfer I'm trying to associate: tr_3N1X5MCpYMgMVBBw1oTySHID
Thanks for sharing, let me check...
I just checked your connected account balance :
https://dashboard.stripe.com/test/connect/accounts/acct_1N1Wy1CdamuDJ8Xi/activity
And its balance is 0 for available and pending.
if you want to by pass the pending balance in your test
You can use one of these cards:
Because the funds are not available immediately after the payment in live mode.
I know, I've used these cards. The balance states that in the dashboard, but doing an API call I get the above balance object which is showing a negative pending balance?
Can you share the requestId of that API call?
Where would I find that please?
In the response header of the API call:
https://support.stripe.com/questions/finding-the-id-for-an-api-request
You are filtering on POST methods, while your request is a GET one I think.
You can get the RequestId from the header response of the request also:
https://stripe.com/docs/api/request_ids
so you are still getting this response from that API call ?
Yes
(
[object] => balance
[available] => Array
(
[0] => Stripe\StripeObject Object
(
[amount] => 16292
[currency] => gbp
[source_types] => Stripe\StripeObject Object
(
[card] => 16292
)
)
)
[livemode] =>
[pending] => Array
(
[0] => Stripe\StripeObject Object
(
[amount] => -16292
[currency] => gbp
[source_types] => Stripe\StripeObject Object
(
[card] => -16292
)
)
)
)
👋 taking over for my colleague. Let me catch up.
would you mind summing up the ask please?
- Why is the pending balance in negative in the API call and 0 in the dashboard
- Why does the payout I've mentioned above, have no transfers associated with it?
this needs some investigation that we don't have enough time to do while answering other questions on discord.
would you mind sending an email to https://support.stripe.com/contact/email?topic=api_integration
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
detailing what's happening, you're code, and the Get requests responses
that would be great thanks