#overture8

1 messages · Page 1 of 1 (latest)

lucid nebulaBOT
warm oriole
#

Hello! The only way to do this would be to update the invoice item's that are generated for proration yourself

limber tusk
#

Hi there. Ok, I'll give that a try.

#

When I try to update with this:

Stripe::InvoiceItem.update("in_1NdFF6BBcPgjpDHAIPNsZPfK", {metadata: {some: "data"}}, connect_options)

It comes back with this:

Stripe::InvalidRequestError: Old `id` values cannot be used to specify an invoice line item in this API version. Please use the current value of the `id` field of the invoice line item object.

Do you know where I can get the correct ID?

warm oriole
#

You want the ID of the invoice item, not the invoice - it should be like "ii_123", not "in_123"

#

If you retrieve all the lines on the Invoice, you should see that some of those lines have invoice_item set

limber tusk
#

Jeez, I'm an idiot - sorry.

#

thank you, that worked.