#amyamy
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Do you have any concrete examples I can take a look at?
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
I'm seeing an invoice line item that starts with il_ associated with this Credit Note
right, but when I curl it, the json is different
When you look at the docs and you look at the bottom left corner of the site. What API version is it displaying?
$ 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?
Okay yes
So the sli_ ID is the Subscription Line Item ID (which is a deprecated ID retained for backward compatibility).