#maurbel_api

1 messages ¡ Page 1 of 1 (latest)

sleek furnaceBOT
#

👋 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.

queen oak
compact terrace
#

When I call stripe.tax.registrations.create for some reason it doesn't show any trace in the logs

queen oak
#

Can you share the account Id you are testing with ?

compact terrace
#

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

queen oak
#

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 ?

compact terrace
#

I can log taxError.requestId. I've just sent one now: req_KywF0XkXAC9KEJ

queen oak
#

Thanks for sharing, checking..

queen oak
compact terrace
#

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

queen oak
compact terrace
#

Ok, thanks. I see what is the problem the Stripe onboarding needs to be completed before creating a tax registration