#DamManc
1 messages ยท Page 1 of 1 (latest)
hello! taking a look at the object, gimme a while
to clarify, your invoice may have more than one line, and you want to know which to inspect to retrieve your metadata?
you'll need to loop through the lines to see which one has the metadata key you're looking for.
looking into why a proration was created ๐
thank you! ok i see ๐
Hey, taking over here. The reason for the proration line item is because you passed the start_date parameter for a timestamp in the past: https://dashboard.stripe.com/test/logs/req_UPuD6jqR6YlOFW
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The default behaviour for a phase is to prorate accordingly: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases-proration_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.
Either:
a) don't pass start_date and don't backdate the start.
b) pass proration_behavior: 'none' if you don't want proration.
The difference in the timestamp was minimal (36 seconds), so we did create prorations but they must amount to โฌ0 (it's only a โฌ5 line item)