#kemoalkoul

1 messages ยท Page 1 of 1 (latest)

lapis portalBOT
#

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

obsidian umbra
#

Hi there, can you tell me the problem that you are trying to resolve?

viral otter
#

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

obsidian umbra
modern dome
#

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?

viral otter
#

yes

#

and in stripe shell i get results

modern dome
#

Can you share a Transfer that you get in Stripe Terminal but not when using the API?

viral otter
#

yes of course

#

@modern dome

modern dome
#

These are PaymentIntent, not Transfers, so it's completely different.

#

Can you clarify exactly what you are trying to do?

viral otter
#

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

modern dome
#

So it's expected that there are no Transfers on the connected account.

viral otter
#

so how can i get payment intents related to connected accoun!

modern dome
#

Did you check the diagram I shared above?

viral otter
#

and how the functionalty exits in stripe shell and dont exits in api

modern dome
#

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.

viral otter
#

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

modern dome
#

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.

viral otter
#

So what means the parameter --stripe-account in stripe shell?

modern dome
#

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?

viral otter
modern dome
#

Oh, then it's possible it doesn't support --stripe-account.

viral otter
#

So the result with --stripe-account same the result without it?

lapis portalBOT
modern dome
#

Yes it's possible the Stripe shell ignores --stripe-account.

viral otter
#

thank u very much for your time .๐Ÿ™

modern dome
#

Happy to help ๐Ÿ™‚