#ethan_best-practices
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/1493940294486589492
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! We currently use the invoice api to generate an invoice with the first subscription payment included in the line items. Then after it's paid off we create a subscription as a trial. However we are interested in creating subscriptions as 'active' so we can purposefully include trials
We thinking just one price for the subscription
I believe from this doc https://docs.stripe.com/api/subscriptions/create?lang=node that you can include line items as a one-time purchase when creating a subscription, however I don't see any way to handle shipping tax & details
I'm not sure I understand your use case. can you share a concrete example? something like:
- on January first, user pays $20 to start their subscription
- then we xxxx
- and one month later, the user pays $xx
Sure, we want a single invoice to contain a subscription costing $10/month. They pay $10 now, and $10/month on a recurring basis. In the same invoice we want to include a book shipped to the customers house, with tax calculated by Stripe.
then create a subscription with two prices:
- a recurring price of $10
- a one time price for the price of the book
and the first invoice will be for $10 + book price. and the next invoicex will be only $10.
Okay but how do I calculate the shipping taxes for the book in the created stripe subscription? I don't see a shipping_cost or shipping_details in the available properties
then you would add 3 prices to the Subscription: the recurring one, the price of the book, and the shipping cost.
If that is the case, what tax code do I use for the shipping cost? https://docs.stripe.com/tax/tax-codes the only tax code that sounds right is txcd_92010001 which says is only for cases where the shipping charge is optional. In our case they will be required to pay for shipping of the book.
๐ Hi there! I'm taking over for my colleague. Let me take a look
From what I can see, that tax code seems to be fine, and it's the closest match.
If you don't want to use that one, then as the documentation says, you could apply a general tax code like "txcd_20030000"
Hi arran! One more question we use Stripe shipping rates in our current workflow through invoices. Can I use those in the Subscription?
Sorry, no, Subscriptions don't currently support Shipping Rates. This would have to be added as a regular line item