#skammerens-datter_api
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/1263852783723872256
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- skammerens-datter_api, 2 hours ago, 35 messages
- skammerens-datter_api, 4 hours ago, 13 messages
- skammerens-datter_api, 22 hours ago, 10 messages
- datter_paymentelement-subscription, 1 day ago, 41 messages
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
reading this there is; under "More parameters" for Create a subscription:
https://docs.stripe.com/api/subscriptions/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
assuming that is not incorrect, I would assume that the proration_behaviour is inherited on updates to the subscription
that's an incorrect assumption
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?
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
okay, thank you - i'll try. sorry for the misunderstanding
No worries
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?
If you use exclusive tax, then those values will be the same
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
subtotal_excluding_tax will tell you the amount without inclusive tax if you use that
okay, i simply added subtotal_excluding_tax and tax together to get the right number
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
Why not look at amount_due? https://docs.stripe.com/api/invoices/object#invoice_object-amount_due. What's the goal here?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.