#bstny_api

1 messages ¡ Page 1 of 1 (latest)

buoyant turretBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245334833178087525

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

unborn anvil
#

What do you mean exactly by the "connect account create page" ?

#

Could you please share more details ?

sand compass
#

We use stripe connect accounts, but we can't verify if data that user put on your forms are the same that in our shop

#

You don't return VAT ID from API, there is a dark phase where user can verify account at your side, but represent as someone else in our shop

unborn anvil
#

Can you try it please ?

sand compass
#

This endpoint requires some super privileges?

#

I connected to test environment using stripe CLI but I had some problems with key permissions afaik

#

Anyway, this is something we will look into. Thank you

unborn anvil
unborn anvil
sand compass
#

It looks like it does not list VAT IDS for account objects

unborn anvil
#

What API request you made exactly ?

sand compass
#
curl -G https://api.stripe.com/v1/tax_ids   -u "sk_test_********:"   -d limit=3
unborn anvil
#

the sk_test is the secret key of the platform account ?

#

If so,

unborn anvil
buoyant turretBOT
sand compass
#
curl -G https://api.stripe.com/v1/tax_ids   -u "sk_test_*********:" -d limit=3 -d stripe-account='12345'
{
  "error": {
    "code": "parameter_unknown",
    "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
    "message": "Received unknown parameter: stripe-account",
    "param": "stripe-account",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_OjDcLOh9ZKDGSt?t=1716983749",
    "type": "invalid_request_error"
  }
}
unborn anvil
#

it's not a body param, it's a header value

#

Sorry, I though you were using Stripe cli

#

With curl you need to set a header: -H "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}" \

sand compass
#
$stripe = new \Stripe\StripeClient('rk_test_***********');

$account = $stripe->accounts->retrieve('acct_1J6Bk3ExmMvzts3V', []);
$taxes = $stripe->taxIds->all(['limit' => 3], ['stripe_account' => $account->id]);

if($taxes->data === []) {
    throw new \RuntimeException("Missing data");
}

Nope

unborn anvil
#

curl -G https://api.stripe.com/v1/tax_ids -u "sk_test_*********:" -H "Stripe-Account: acct_1J6Bk3ExmMvzts3V" -d limit=3 e

sand compass
#
{
  "error": {
    "code": "account_invalid",
    "doc_url": "https://stripe.com/docs/error-codes/account-invalid",
    "message": "The provided key 'sk_test_7m******************cDqC' does not have access to account 'acct_1J6Bk3ExmMvzts3V' (or that account does not exist). Application access may have been revoked.",
    "type": "invalid_request_error"
  }
}
unborn anvil
#

The API secret key used is the key of your Stripe Platform Account? the one connected to the account acct_1J6Bk3ExmMvzts3V ?

#

What is your Platform Account Id and the Connec Account Id that you are trying to check their tax id ?

sand compass
#

I ve got my account id using /settings/user url in dashboard
The keys are from developer api keys section

unborn anvil
#

Can you please share your Account Id and the Connect Account Id ? acct_...

sand compass
#

My account: acct_1J6Bk3ExmMvzts3V
Connect account: acct_1PH0kYIHEGzcnmjo

unborn anvil
#

Now use the API Secret key of the account acct_1J6Bk3ExmMvzts3V and pass the Connect Account acct_1PH0kYIHEGzcnmjo as a header, in order to make the API request on their behalf:
curl -G https://api.stripe.com/v1/tax_ids -u "sk_test_*********:" -H "Stripe-Account: acct_1PH0kYIHEGzcnmjo" -d limit=3 e