Permission required:
order:readQuery Parameters
Response
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/orders' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"amount": {
"amount": 1999,
"currency": "usd"
},
"created_at": 1760000000,
"invoice_id": "8ed8f98873f8216d20a57a529c68b80f",
"order_id": "15180b2f335b821ab2d276984445fd81",
"receipt_url": "https://example.com/receipt",
"status": "pending",
"tokens_granted": 1200000,
"type": "onetime",
"refunded_amount": {
"amount": 1999,
"currency": "usd"
},
"refunded_at": 1760000000
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
Lists the team’s payment orders, newest first, optionally by type and status
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/orders' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"amount": {
"amount": 1999,
"currency": "usd"
},
"created_at": 1760000000,
"invoice_id": "8ed8f98873f8216d20a57a529c68b80f",
"order_id": "15180b2f335b821ab2d276984445fd81",
"receipt_url": "https://example.com/receipt",
"status": "pending",
"tokens_granted": 1200000,
"type": "onetime",
"refunded_amount": {
"amount": 1999,
"currency": "usd"
},
"refunded_at": 1760000000
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
GET /openapi/memorylake/admin/v1/billing/orders
order:readcurl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/billing/orders' \
-H 'Authorization: Bearer sk_xxxxxx'
Show Load More Response Billing Order object
Show Billing Order object
pending, succeeded, failed, closed, refunded, disputed.{
"success": true,
"message": "Operation completed successfully",
"data": {
"items": [
{
"amount": {
"amount": 1999,
"currency": "usd"
},
"created_at": 1760000000,
"invoice_id": "8ed8f98873f8216d20a57a529c68b80f",
"order_id": "15180b2f335b821ab2d276984445fd81",
"receipt_url": "https://example.com/receipt",
"status": "pending",
"tokens_granted": 1200000,
"type": "onetime",
"refunded_amount": {
"amount": 1999,
"currency": "usd"
},
"refunded_at": 1760000000
}
],
"continuation_token": "eyJvZmZzZXQiOjIwfQ",
"total": 1
}
}
success: 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 |