#skammerens-datter_api

1 messages ¡ Page 1 of 1 (latest)

torpid vineBOT
#

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

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

craggy apexBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

tropic bone
#

Can you share a request id where you did this? There's no subscription-level setting for proration_behavior. You need to pass that param on every update request to tell us what proration behavior you want for that request, specifically

dim wedge
#

assuming that is not incorrect, I would assume that the proration_behaviour is inherited on updates to the subscription

tropic bone
dim wedge
#

it does however say: "Unsupported for subscription creation" - does that mean i should do "create_prorations" as the value upon creating the subscription, and then set proration_behavior for the update of the subscription to make Stripe generate the invoice?

tropic bone
#

You can't create a proration when creating the subscription. There would be nothing to prorate

#

You have to set proration_behavior on every update request if you want to specify proration behavior

#

There's not global setting for a sub

dim wedge
#

okay, thank you - i'll try. sorry for the misunderstanding

tropic bone
#

No worries

dim wedge
#

another question: when retrieving invoices, the subtotal and subtotal_excluding_tax are the same number, but tax is applied on the invoice pdf. is a setting incorrect, or am I fetching the wrong value?

tropic bone
#

If you use exclusive tax, then those values will be the same

#

subtotal_excluding_tax will tell you the amount without inclusive tax if you use that

dim wedge
#

okay, i simply added subtotal_excluding_tax and tax together to get the right number

tropic bone
#

yeah you could do that

#

But there could also be discounts not accounted for

dim wedge
#

okay; what would be the correct way then? should i do subtotal plus tax then? not sure how to incorporate the discounts into the calculation

tropic bone
dim wedge
#

previewing the proration gives me the subtotal with taxes; i would like to preview invoices where the amount matches the proration (so both are including taxes)

#

amount_due was the right one; thanks for pointing it out