#qualleadmin
1 messages ยท Page 1 of 1 (latest)
Hello! Can you share the Invoice ID so I can take a closer look?
sure
in_1NpwmDFAWKEWQzfqtY9QlYN5
I noticed in the lines array it contains 3 items which appear to be:
- the transaction itself
- a prorate for a months usage for the subscription
- the remaining amount for the subscription
๐ give me a few minutes to take a look
I ran this which gave me the total charged
[3432, -93250, 97353].reduce((acc, curr) => acc + curr, 0)
7535
thank you
So here's a breakdown of what's happening:
- At some point subscription sub_1NIwR6FAWKEWQzfqlvQ4yPfo was updated through the dashboard. This generated proration line items but didn't immediately invoice them
- Later, you created an Invoice. This automatically pulled in all invoice items tied to that Cusotmer - including the prorations ones that hadn't been invoiced yet
amazing ok
"This automatically pulled in all invoice items tied to that customer"
is this default behavior? can we disable that?
Yup you can disable it by passing pending_invoice_items_behavior: exclude (https://stripe.com/docs/api/invoices/create#create_invoice-pending_invoice_items_behavior)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.