#Dan Judge

1 messages · Page 1 of 1 (latest)

tidal novaBOT
knotty monolith
olive jasper
#

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);```
knotty monolith
#

thanks for clarifying, and can you please share the requestId of the failure API request ?

olive jasper
#

I don't have one, I can't seem to recreate at the moment :/

#

Sorry

knotty monolith
#

Don't hesitate to come back once you have a requestId

olive jasper
#

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

knotty monolith
#

Thanks for sharing, let me check...

#

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.

olive jasper
#

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?

knotty monolith
#

Can you share the requestId of that API call?

olive jasper
#

Where would I find that please?

knotty monolith
olive jasper
#

I have nothing in logs since 28th Apr

knotty monolith
#

You are filtering on POST methods, while your request is a GET one I think.

olive jasper
#

Good spot! Sorry

#

req_1iS4THLVcGa8qT

knotty monolith
tidal novaBOT
olive jasper
#

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
                        )

                )

        )

)

versed osprey
#

👋 taking over for my colleague. Let me catch up.

#

would you mind summing up the ask please?

olive jasper
#
  1. Why is the pending balance in negative in the API call and 0 in the dashboard
  2. Why does the payout I've mentioned above, have no transfers associated with it?
versed osprey
#

this needs some investigation that we don't have enough time to do while answering other questions on discord.

#

detailing what's happening, you're code, and the Get requests responses

#

that would be great thanks