#mikebm - Object Prefixes

1 messages ยท Page 1 of 1 (latest)

soft spruce
#

Hello! The li_ prefix is for line items and the sli_ prefix is for Subscription line items.

mellow anchor
#

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_"

soft spruce
#

Yeah, that's something separate.

#

The sli_ are the IDs you're see on the actual Invoice's line items.

mellow anchor
#

so will it show il_ if its just a regular line item but sli_ for subscirptions?

#

Sorry, just trying to fully grasp this before I report back to the data team

soft spruce
#

Sorry, had the wrong link.

mellow anchor
#

Yeah, I am used to seeing il. Just not sli and I cannot find it in the docs

soft spruce
#

I'm not sure we explicitly document sli_ anywhere.

mellow anchor
#

This invoice object example only shows il Were you expecting it to also show sli?

soft spruce
#

No, it's not surprising that example only shows li.

#

I think we just don't have an example for sli

mellow anchor
#

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

soft spruce
#

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.

mellow anchor
#

It might be a proration credit triggering this

#

in_1JkUgpK3oIjALJVj1oo8dd5j

#

is our production invoice that had an sli on it

soft spruce
#

Taking a look, hang on...

#

Where specifically are you seeing the sli IDs?

#

Dashboard? API?

mellow anchor
#

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",

soft spruce
#

What API version are you using?

mellow anchor
#

In Prod - I am seeing sli's for subscriptions - API
2019-08-14
In QA - I see these same subscriptions as li - API latest

soft spruce
#

We don't document the old sli IDs anymore since they only exist in old API versions.

mellow anchor
#

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

soft spruce
#

Sorry I didn't realize this sooner, but yeah, it's an API version thing. ๐Ÿ™‚

mellow anchor
#

Thank you for this. I' suggest updating that doc to state changed from sli_ to il_ hah

soft spruce
#

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. ๐Ÿ™‚

mellow anchor
#

haha np. Have a good one and thank you