#lucas_subscription-tax

1 messages ยท Page 1 of 1 (latest)

bitter eagleBOT
#

๐Ÿ‘‹ 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/1304231008408830024

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

oblique wren
#

celsian_subscription-tax

#

lucas_subscription-tax

#

@gilded sierra Can you provide a bit more details about what you tried and what you mean by "it keeps asking for additional fields"?

gilded sierra
#

The api responds with: Stripe::InvalidRequestError: Missing required param: items[0][price_data][currency].

#

If I add currency it requests additional fields, I tried populating them all, but I'm not sure why it's asking for all of this. I just want to enable inclusive tax for this single Subscription, but it seems like it's trying to get me to create an entirely new price.

oblique wren
#

Gotcha, that's the part you misunderstood. When you pass price_data, it's to basically create a brand new Price object that they are going to be subscribed to.
So right now they are say on a $10/month Price price_1234.
You are now going to create a new Price price_ABCD for $10/month and mark that one as tax inclusive

Alternatively, you can find the Price they are subscribed to and update tax_behavior if it's not set yet: https://docs.stripe.com/api/prices/update#update_price-tax_behavior

gilded sierra
#

Ah, got it. Thank you. Chat gpt failed to mention that part ๐Ÿค™

Regarding the tax behavior of the price, that would set it for every subscription using that price, is that correct?

oblique wren
#

yes

gilded sierra
#

Ok. Thanks a lot!

In that case I'll duplicate the prices I need and set the tax behavior to inclusive on the new prices and migrate the users to the new price.

#

Feel free to close this.