#shaya8089
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shaya8089, 1 minute ago, 7 messages
Yes, it does. I don't know if we have docs on this specifically.
Let me look
thanks, waiting
https://stripe.com/docs/reports/balance-transaction-types#charge_and_payment_related
this page explains different types of BalanceTransactions which includes refund
thanks
I have a had a question in a previous thread linked here above
I have a follow up question:
I'm retrieving a paymentIntent, now I want to expand a nested prop:
stripe.paymentIntents.retrieve(id, {
expand: ['last_charge.balance_transaction'],
stripeAccount: getOrgStripeUserId(org)
});
}
Should this work, because it doesn't seem to...
Tnx
what part doesn't work exactly?
Are you not getting the expansion or is the retrieve request failing?
a second, checking
so I don't get balance_transaction as an object inside charges
only get the id
(I'm using an older api version where charges is avaialbe on paymentIntent)
which API version are you on?
2020-08-27
stripe.paymentIntents.retrieve(id, {
expand: ['charges.balance_transaction'],
stripeAccount: getOrgStripeUserId(org)
});
So my code should give me back an expasionable object for balance_transaction nested in each charge?
you need data inbetween
like
'pi_xxx',
{
expand: ['charges.data.balance_transaction'],
....
}
);```
please see the attached screenshot I don't get the balance_transaction inside the charges
(test data)
can you share the request ID for this GET request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
I cannot find the requests in my platform account, and not in the connected account either
GET requests are omitted by default afaik
you'd need to adjust the filters
if not, can you share the connected account ID?
Yes i saw, still
I can try look it up
hmm I found the request but looks like we don't store any information about the parameters or anything for GET type request
https://dashboard.stripe.com/test/logs/req_jW0ix1EPExYk2q
sorry found it...
Hmm
So can it be it's impossible to expand it? how can I know for sure?
the syntax I shared should work for the older API version, not sure why its failing tbh
could be it's different if I do for a connected account?
Hmm, good question 🤔
Ah
try
const paymentIntent = await stripe.paymentIntents.retrieve(
'pi_xxx',
{
expand: ['charges.data.balance_transaction'],
},
{
stripeAccount: 'acct_xxx'
}
);```
I think expand and stripeAccount needs to be part of separate arguments
No, I know for sure that not, I use expand in other place in the code