#cmarston1500_api

1 messages ¡ Page 1 of 1 (latest)

sweet vaporBOT
#

👋 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/1262319675782463528

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

opal herald
#

Hi, let me help you with this.

#

PaymentIntent object only deals with the final amount to charge the customer, and has no notion of taxes, items, etc. You can instead use Invoices API, which is a higher-level object, that carries information of tax amounts: https://docs.stripe.com/api/invoices/create

iron nova
#

That seems to only reference tax objects for Subscriptions. Or is it the case we need to create tax objects somewhere else then we need to reference them from the invoice we create or update?

#

"account_tax_ids": null,
"automatic_tax": {
"enabled": false,
"liability": null,
"status": null

"subscription": null,
"subtotal": 0,
"subtotal_excluding_tax": 0,
"tax": null,
"test_clock": null,
"total": 0,
"total_discount_amounts": [],
"total_excluding_tax": 0,
"total_tax_amounts": [],

opal herald