#kemoalkoul
1 messages ยท Page 1 of 1 (latest)
Hello kemoalkoul, 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.
โข https://discord.com/channels/841573134531821608/1163877435348099247, 1 days ago, 14 messages
Hi there, can you tell me the problem that you are trying to resolve?
i want to get payment intents for spefic connected account, and i use in stripe shell this command "stripe payment_intents list --stripe-account acct_xxxxxxxxxxxx" and work but in stripe in nodejs don't work when use paymentIntents.list with header stripeAccount, and dont work also use transfer.list with header stripeAccount
the code:
const transfers = await stripeService.paymentIntents.list(
{
limit: limit,
},
{
stripeAccount: 'acct_xxxxxxxxxxxx',
},
);
@obsidian umbra
Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
req_SE8zyh0aBwiY0k
Hi! I'm taking over this thread.
So you are trying to list all transfers on acct_1NuZLFB6N2vPoVRJ, but get zero result. And you were expecting to get some results?
Can you share a Transfer that you get in Stripe Terminal but not when using the API?
These are PaymentIntent, not Transfers, so it's completely different.
Can you clarify exactly what you are trying to do?
I tried both and the both in stripe shell return values and in API doesn't return any value
whatever the transfers is
@modern dome
This Transfer object lives on the Platform account, not on the connected account.
Please lok at this diagram it will help clarify this: https://stripe.com/docs/connect/destination-charges#flow-of-funds-app-fee
So it's expected that there are no Transfers on the connected account.
so how can i get payment intents related to connected accoun!
Did you check the diagram I shared above?
and how the functionalty exits in stripe shell and dont exits in api
If you want to find objects on the connected account, then check the Charge objects.
and how the functionality exits in stripe shell and dont exits in api
I don't understand what you mean. With both the API and the Shell you can retrieve everything you want from the platform account or the connected account.
But if you try to retrieve something that doesn't exist on the connected account, then with both the API and the shell you will get no results.
i use this in stripe shell
stripe payment_intents list --stripe-account acct_xxxxxxxxxxxx
and get payment_intents related to acct_xxxxxxxxxxxx
the account is acct_1NuZLFB6N2vPoVRJ
can explian me the response why in shell returned and in the api didn't turn vlaues
acct_1NuZLFB6N2vPoVRJ is an Express account, so it's doesn't have any PaymentIntent. So it's expected to get no results with the API
With the Stripe shell, I'm guessing you are looking at the PaymentIntent of the platform account. For example pi_3O2BwcBBdQ1wYqgO0B9VKpHj that you shared earlier belongs to acct_1NXLeeBBdQ1wYqgO and not acct_1NuZLFB6N2vPoVRJ.
So what means the parameter --stripe-account in stripe shell?
not sure, let me run some tests
For me it does work correctly. Using stripe payment_intents list --stripe-account acct_xxx where acct_xxx is an Express account, returns no results.
Can you try updating your Stripe CLI to the latest version?
i use stripe shell that in the website
Oh, then it's possible it doesn't support --stripe-account.
So the result with --stripe-account same the result without it?
Yes it's possible the Stripe shell ignores --stripe-account.
To run some tests I recommend using the Stripe CLI instead: https://stripe.com/docs/cli
thank u very much for your time .๐
Happy to help ๐