GET /openapi/memorylake/admin/v1/billing/invoices
所需权限:
invoice:read查询参数
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/invoices' \
-H 'Authorization: Bearer sk_xxxxxx'
响应
显示 Load More Response Billing Invoice 对象
显示 Load More Response Billing Invoice 对象
当前页的条目列表
显示 Billing Invoice 对象
显示 Billing Invoice 对象
{
"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
}
}
错误
出错时返回success: false、message 和 error_code。全部错误码见错误码。
| 状态码 | 含义 |
|---|---|
400 | 参数或请求体无效 |
401 | API Key 缺失、无效、已停用或已过期 |
403 | 该 Key 无权执行此操作 |
422 | 请求体或参数未通过校验 |
429 | 请求过多,请按 Retry-After 等待后重试 |
500 | 服务端错误 |