#maurbel_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/1429801279877546105
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
When I call stripe.tax.registrations.create for some reason it doesn't show any trace in the logs
Can you share the account Id you are testing with ?
acct_1KCUj1Apl5w3GwAb
These are the errors messages that I get:
Received unknown parameter: tax_id
Error code: parameter_unknown
Error type: StripeInvalidRequestError
Check Stripe Dashboard for Tax setup
This is my request
tax = await stripe.tax.registrations.create({
country: countryCode,
active_from: 'now',
tax_id: {
type: 'eu_vat'
}
}, {
stripeAccount: accountId,
});
When I console log Object.keys(stripe.tax.registrations) I get:
[ '_stripe', 'basePath', 'resourcePath', 'path' ]
No create method
I don't see any record in the account Id you've shared
Is that the connected account or the platform
Received unknown parameter: tax_id
Error code: parameter_unknown
Error type: StripeInvalidRequestError
You should have a request Id in the response
Can you try making the same request with Postman or curl for example ?
I can log taxError.requestId. I've just sent one now: req_KywF0XkXAC9KEJ
Thanks for sharing, checking..
The tax registration doesn't accept tax_id:
https://docs.stripe.com/api/tax/registrations/create
What guide are you following ?
Thanks, I modified the request like thisstripe.tax.registrations.create({
country: 'IT',
country_options: {
it: {
type: 'oss_union',
},
},
active_from: 'now',
}, {
stripeAccount: accountId, // Associates tax registration with the connected account
});
But still getting:
Error code: undefined
Error type: StripeInvalidRequestError
Request id: req_GChTcRwcjVDQfW
Have you had a chance to review the API response ?
Before managing tax registrations, you must set your head office address. You can achieve this by calling the Tax Settings API (https://docs.stripe.com/tax/settings-api) or updating your business information in the Stripe Dashboard under Tax Settings (https://dashboard.stripe.com/settings/tax).
You can review the request in your Stripe Dashboard:
http://dashboard.stripe.com/logs/test/req_GChTcRwcjVDQfW
Ok, thanks. I see what is the problem the Stripe onboarding needs to be completed before creating a tax registration