List Invoices
client.invoices.list(InvoiceListParams { subject_id, limit, offset } query, RequestOptionsoptions?): InvoiceListResponse { has_more, invoices }
/invoices
List Invoices
Parameters
Returns
List Invoices
import Lark from 'lark-billing';
const client = new Lark({
apiKey: 'My API Key',
});
const invoices = await client.invoices.list({ subject_id: 'user_1234567890' });
console.log(invoices.has_more);
{
"has_more": false,
"invoices": [
{
"id": "in_1SS1tIDHrpDCEzdlVd8FH0V4",
"created_at": "2021-01-01T00:00:00Z",
"hosted_url": "https://invoice.stripe.com/i/acct_6Q96h5avMho8OKe/test_9USnMMVPQmtUHVUYXV2M...",
"line_items": [
{
"amount": {
"currency_code": "USD",
"value": "100"
},
"description": "Test Invoice",
"price_in_unit_amount": {
"currency_code": "USD",
"value": "100"
},
"quantity": 1
}
],
"status": "draft",
"subject_id": "subj_VyX6Q96h5avMho8O7QWlKeXE",
"total_amount": {
"currency_code": "USD",
"value": "100"
}
}
]
}Returns Examples
{
"has_more": false,
"invoices": [
{
"id": "in_1SS1tIDHrpDCEzdlVd8FH0V4",
"created_at": "2021-01-01T00:00:00Z",
"hosted_url": "https://invoice.stripe.com/i/acct_6Q96h5avMho8OKe/test_9USnMMVPQmtUHVUYXV2M...",
"line_items": [
{
"amount": {
"currency_code": "USD",
"value": "100"
},
"description": "Test Invoice",
"price_in_unit_amount": {
"currency_code": "USD",
"value": "100"
},
"quantity": 1
}
],
"status": "draft",
"subject_id": "subj_VyX6Q96h5avMho8O7QWlKeXE",
"total_amount": {
"currency_code": "USD",
"value": "100"
}
}
]
}