List Invoices
/invoices
List Invoices
Query Parameters
subject_id: string
The ID or external ID of the subject to list invoices for.
limit: optional number
maximum100
minimum1
offset: optional number
minimum0
Returns
has_more: boolean
List Invoices
curl https://api.uselark.ai/invoices \
-H "X-API-Key: $LARK_API_KEY"
{
"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"
}
}
]
}