#amyamy

1 messages ยท Page 1 of 1 (latest)

velvet leafBOT
hallow lichen
#

Hi ๐Ÿ‘‹

Do you have any concrete examples I can take a look at?

oblique laurel
#

cn_1IdiG3GXITprGE41biraMLMz - Can you see this?

#

With this one, I checked the network tab in the dashboard and was unable to reproduce the JSON. But when I make a curl request, I get the behavior I described above.

#

in_1IdiEiGXITprGE41KE4RBdQY - the invoice for this CN

hallow lichen
#

I'm seeing an invoice line item that starts with il_ associated with this Credit Note

oblique laurel
#

right, but when I curl it, the json is different

hallow lichen
#

When you look at the docs and you look at the bottom left corner of the site. What API version is it displaying?

oblique laurel
#
$ curl https://api.stripe.com/v1/credit_notes/cn_1IdiG3GXITprGE41biraMLMz \
  -u $LIVE_KEY:
{
  "id": "cn_1IdiG3GXITprGE41biraMLMz",
  "object": "credit_note",
  "invoice": "in_1IdiEiGXITprGE41KE4RBdQY",
  "lines": {
    "object": "list",
    "data": [
      {
        "id": "cnli_1IdiG3GXITprGE41Egpsim4w",
        "invoice_line_item": "sli_99ac5f6677929f",
        "invoice_line_item_unique_id": "il_1IdiEiGXITprGE41pmtHB5SQ",
      }
    ],
    "has_more": false,
    "url": "/v1/credit_notes/cn_1IdiG3GXITprGE41biraMLMz/lines"
  },
}
#

(deleted everything else)

#

2019-05-16

#

I have a feeling sli_... is a subscription line item ID?

hallow lichen
#

Okay yes

#

So the sli_ ID is the Subscription Line Item ID (which is a deprecated ID retained for backward compatibility).

oblique laurel
#

aghhhh

#

๐Ÿ˜ญ

hallow lichen
#

But you've got the il_ which is the actual Invoice line item ID

#

As well as the Invoice ID

oblique laurel
#

right, I'll change the api version header for this specific request then >_<

#

thanks