#mikebm - Object Prefixes
1 messages ยท Page 1 of 1 (latest)
Hello! The li_ prefix is for line items and the sli_ prefix is for Subscription line items.
Ah! We just upgraded to the latest stripe SDK so that might explain it. The subscription object now lets you have mutliple entries in data. So each entry is now a sli_
Thank you! This was not in the docs
just shows "si_"
Yeah, that's something separate.
Those are Subscription Items: https://stripe.com/docs/api/subscription_items/object
The sli_ are the IDs you're see on the actual Invoice's line items.
so will it show il_ if its just a regular line item but sli_ for subscirptions?
is this not the docs? shows "ii" https://stripe.com/docs/api/invoices/upcoming_invoice_lines#upcoming_invoice_lines-subscription_items
Sorry, just trying to fully grasp this before I report back to the data team
Look at the example Invoice object here and you'll see an il_ ID: https://stripe.com/docs/api/invoices/object#invoice_object
Sorry, had the wrong link.
Yeah, I am used to seeing il. Just not sli and I cannot find it in the docs
I'm not sure we explicitly document sli_ anywhere.
This invoice object example only shows il Were you expecting it to also show sli?
No, it's not surprising that example only shows li.
I think we just don't have an example for sli
okay, but the jist is that if its a subscription it should be sli instead of li?
unfortunately, no. That's not it. I have an invoice with subs on it and they are all li, so i have no idea when it is sli_
heh
Can you give me an example of when you're seeing sli and when you're seeing li on an Invoice?
If I can look at the Invoice IDs I should be able to explain what's going on.
It might be a proration credit triggering this
in_1JkUgpK3oIjALJVj1oo8dd5j
is our production invoice that had an sli on it
Taking a look, hang on...
Where specifically are you seeing the sli IDs?
Dashboard? API?
API, I am using stripe CLI to fetch this one right now and I See it in there
"id": "sli_100a7dK3oIjALJVj75a618ac",
"object": "line_item",
"amount": 9600,
"currency": "usd",
What API version are you using?
I think you're running into this change: https://stripe.com/docs/upgrades#2019-12-03
In Prod - I am seeing sli's for subscriptions - API
2019-08-14
In QA - I see these same subscriptions as li - API latest
We don't document the old sli IDs anymore since they only exist in old API versions.
yeah, I was looking for the old ID in this change list. Specifically that item, so I had no idea what it used to be
this makes sense
That is why I see in prod and not QA using the latest SDK
Sorry I didn't realize this sooner, but yeah, it's an API version thing. ๐
Thank you for this. I' suggest updating that doc to state changed from sli_ to il_ hah
We'll consider it! I think there might actually be more than just those two in older versions, would have to dig them all up. ๐
haha np. Have a good one and thank you