GET /openapi/memorylake/admin/v1/billing/invoices
Permission required:
invoice:readQuery Parameters
array
Repeatable. Only invoices in these states
integer
default:"20"
Items per page (1–100)
string
Token from the previous page
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/invoices' \
-H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Load More Response Billing Invoice object
Show Load More Response Billing Invoice object
array
List of items in the current page
Show Billing Invoice object
Show Billing Invoice object
integer
Issue time, Unix seconds
string
The payment provider’s hosted invoice page; null when none
string
Invoice id
string
The payment provider’s own PDF link; null when the provider has none yet. GET /billing/invoices/{invoice_id}/pdf always returns a PDF without leaving this API
string
Invoice number printed on the document
string
The order it belongs to (GET /billing/orders/{order_id}); null when none
string
Invoice state. One of:
draft, open, paid, uncollectible, void.object
object
object
integer
Payment due time, Unix seconds
string
Token to fetch the next page; absent on the last page
integer
Total number of items matching the filter across all pages; omitted when the count is unavailable
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"created_at": 1760000000,
"hosted_invoice_url": "https://example.com/hosted_invoice",
"invoice_id": "fc9ec77f14773109fc1b0f8a2749731e",
"invoice_pdf_url": "https://example.com/invoice_pdf",
"number": "example",
"order_id": "98fae70aa1ad919811f9214706e755e1",
"status": "draft",
"subtotal": {
"amount": 1999,
"currency": "usd"
},
"tax": {
"amount": 1999,
"currency": "usd"
},
"total": {
"amount": 1999,
"currency": "usd"
},
"due_at": 1760000000
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
| Status | Meaning |
|---|---|
400 | A parameter or the body is invalid |
401 | The API key is missing, invalid, disabled or expired |
403 | The key is not allowed to do this |
422 | The body or a parameter failed validation |
429 | Too many requests. Wait for the time in Retry-After |
500 | Server-side error |