List recharge orders¶
List recharge orders for an account, ordered by creation time from newest to oldest.
GET https://billing.moi.matrixorigin.cn/api/v1/billing/accounts/$ACCOUNT_ID/recharge-orders
Before you begin¶
Prepare a valid personal access token for the account owner.
Call List current accounts to obtain the target account’s ID.
Request example¶
Replace $MOI_PERSONAL_ACCESS_TOKEN and $ACCOUNT_ID in the example with your personal access token and the selected account’s ID.
curl -X GET \
"https://billing.moi.matrixorigin.cn/api/v1/billing/accounts/$ACCOUNT_ID/recharge-orders?page_size=2" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Path parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Target account ID from |
Query parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
No |
Page size, 1–100; omitted, nonpositive, or greater than 100 uses 50. |
|
string |
No |
Next-page token. Omit for the first request; then use |
Successful response¶
Returns HTTP 200 with the account’s recharge orders; the list is empty when no orders exist.
{
"items": [],
"total": 0,
"next_page_token": ""
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Records returned by this request. |
|
string |
Payment order ID. |
|
string |
Recharge order number. |
|
string |
Billing account ID. |
|
string |
Recharge type. |
|
string |
Payment channel. |
|
string |
Payment amount as a decimal string. |
|
string |
Payment currency. |
|
string |
Base Credit. |
|
string |
Bonus Credit. |
|
string |
Total Credit. |
|
string |
Credit exchange rate when the order was created. |
|
string |
Recharge tier snapshot encoded as a JSON string; may be omitted. |
|
string |
Order status. |
|
string |
Refund status. |
|
string |
Payment dispute status. |
|
string |
Payment provider transaction number; may be omitted. |
|
integer |
Order expiry time in Unix seconds. |
|
integer |
Creation time in Unix seconds. |
|
integer |
Update time in Unix seconds. |
|
integer |
Total records matching the filters. |
|
string |
Next-page token; an empty string marks the last page. |
In field paths, [] denotes each array item. For example, items[].payment_order_id refers to the corresponding field in each item.
For the next page, set $NEXT_PAGE_TOKEN to next_page_token from the preceding response and retain the same filters. Stop when the token is empty.
curl -X GET \
"https://billing.moi.matrixorigin.cn/api/v1/billing/accounts/$ACCOUNT_ID/recharge-orders?page_size=2&page_token=$NEXT_PAGE_TOKEN" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Error response¶
Missing authentication returns HTTP 401; provide a valid personal access token.
{
"code": "unauthenticated",
"message": "missing bearer token",
"error": "missing bearer token"
}
Field |
Type |
Description |
|---|---|---|
|
string |
Error code. |
|
string |
Error message. |
|
string |
Compatibility error message, with the same content as message. |