#damenz - tax rates

1 messages · Page 1 of 1 (latest)

ashen pollen
#

Hey damenz. Can you provide an example request id so I can look into this?

kind steppe
#

req_nEpVSjjIr9caKk

ashen pollen
#

Thanks taking a look

kind steppe
#

i read a subscription via the API and it is exactly like this (except the object is expanded)

#

I only provide

        $param["default_tax_rates"] = [
            "txr_1HT6x9LiVV9UQF8g0EmMwCIK", 
            "txr_1HT6wwLiVV9UQF8gmlggt8dA" 
        ];
#

which used to be working

ashen pollen
#

So for the request id that you shared, it looks like you were actually creating a subscription schedule, not a subscription: POST /v1/subscription_schedules. default_tax_rates is a valid parameter for creating a subscription, but not for creating a subscription schedule: https://stripe.com/docs/api/subscription_schedules/create

kind steppe
#

thats correct I am creating a scheduled subscription

#

but It used to be working

#

(same code, I didnt touch anything)

ashen pollen
#

When did this stop working for you?

#

Would like to see a request that worked

kind steppe
#

Last week but I dont have the request ID

#

this is my body

#

when I look at the doc you sent me there isnt even a "plans" parameters

#

as if everything changed

#

?

ashen pollen
#

That example also doesn't include default_tax_rates though. Is that a different request?

kind steppe
#

oh its a little further down

#

I dont provide if its in dev

#

now I have to provide inside the phase?

#

yeah... they changed the api

#

without adding a warning in the doc

#

it works when I provide inside the phase

#

I used to be able to provide it "globally" for the entire schedule

ashen pollen
#

So you for sure had 200s for creating subscription schedules in live mode?

kind steppe
#

200s?

#

oh yeah

ashen pollen
#

I see some successes in test mode, which makes sense because the default_tax_rates weren't passed in (according to your code)

#

By 200 I mean successful responses

kind steppe
#

Yeah I had 200's but it does not happen that often that we create a stripe subscription

#

(Its my billing team who's doing it, not me)

#

They just flagged me that it stopped working last week

ashen pollen
#

Ok looking through old requests right now for you guys. So far, I haven't found one that passed in default_tax_rates as you described. I will keep looking over them though

kind steppe
#

At least its working now !

ashen pollen
#

All the successful ones I see have default_tax_rates passed in correctly (within phases)

kind steppe
#

Weird I will check my change log of my code maybe some of my collegues changed it or used a old version of the code to push

#

Thank you for your help!