#eb-levels
1 messages · Page 1 of 1 (latest)
Are you intending to update the proration attribute for an Invoice Item on an existing Subscription or a new Subscription?
on an existing subscription
Ah, whoops. I think I misread your initial message. You can't update the proration attribute on an Invoice Item. This attribute us updated automatically depending on whether the invoice item was created as a proration adjustment or not.
Okay, Is there a way we can indicate that a line item we are adding is a proration adjustment on our end?
That's what proration already does: https://stripe.com/docs/api/invoiceitems/object#invoiceitem_object-proration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Are you calculating and creating your own Line Items to handle prorations on your own? Or are you using Stripe to handle prorations for you?
We are creating a line item to handle proration on our own. A little back story: we updated our plans and gave customers 1yr grace period through credits as a negative line item to offset the price change. Now if the user changes their plan or downgrade, we also need to prorate the grace period credit we gave them
So we are looking to mark the prorated grace period line item as a proration using the proration attribute for the Data & accounting purposes
Ahhhh, okay. In that case I would just use metadata to indicate that it is a proration: https://stripe.com/docs/api/invoiceitems/update#update_invoiceitem-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay thanks