#bstny_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
What do you mean exactly by the "connect account create page" ?
Could you please share more details ?
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
I see, yes the API returns just if the account submitted their VAT id or not:
https://docs.stripe.com/api/accounts/object#account_object-company-vat_id_provided
Try to use this API to list the Connect Accoun tax id:
https://docs.stripe.com/api/tax_ids/list#list_tax_ids-owner-account
Can you try it please ?
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
It depends on what API key are you using.... but using the platform API key secret should work.
Happy to help!
It looks like it does not list VAT IDS for account objects
What API request you made exactly ?
curl -G https://api.stripe.com/v1/tax_ids -u "sk_test_********:" -d limit=3
Add --stripe-account '{{CONNECTED_ACCOUNT_ID}}' to this command
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"
}
}
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}}" \
$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
No you need to update this curl
curl -G https://api.stripe.com/v1/tax_ids -u "sk_test_*********:" -H "Stripe-Account: acct_1J6Bk3ExmMvzts3V" -d limit=3 e
{
"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"
}
}
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 ?
I ve got my account id using /settings/user url in dashboard
The keys are from developer api keys section
Can you please share your Account Id and the Connect Account Id ? acct_...
My account: acct_1J6Bk3ExmMvzts3V
Connect account: acct_1PH0kYIHEGzcnmjo
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
Here, you'll be using Stripe Connect header auth in order to make an API call as the Connected Account.
https://docs.stripe.com/connect/authentication?lang=curl#stripe-account-header