#arielbo-tax
1 messages · Page 1 of 1 (latest)
@wild talon hello! Happy to help but that's 1% of the info 🙂
and POST /v1/subscriptions
Status
400 ERR
ID
req_WeCsj0HnP8fUu9
yes I explain me better
so did you put the address on the customer first? If not why not? Which doc are you following?
So I see this customer has an address in bolivia, but the country is the full name, it should be a country code
did you look at the tax hash on customer?
my guess is that it has an error right now
https://stripe.com/docs/api/customers/object#customer_object-tax if you look at this it has all the info you need
what I want to know is what address information is necessary for the 'automatic_tax' to work => [
'enabled' => true,
],
I am currently asking only the country and the city, do you need more data? is it the same for all countries?
you never gave the city though, you also didn't pass the right country code
and it's all in our docs
correct
And make sure to properly look at the tax array in the respond, you have to expand it with 'expand' => ['tax'] on customer creation
and then read its content
https://stripe.com/docs/expand has all the information about the feature in details with lots of examples. But it's because tax is not returned by default (to keep the API fast)
thanks you, please, where do you have one list of country codes?
maybe this works https://www.iso.org/obp/ui/#search ?
can I use expand in update customer too ?
$cus,
[
'address' => ['country' => $code ]
],
'expand' => ['tax'],
);```