List payment authorizations¶
List the most recently created payment authorizations for an account, up to 1,000 entries.
GET https://billing.moi.matrixorigin.cn/api/v1/billing/accounts/$ACCOUNT_ID/payment-authorizations
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/payment-authorizations" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Path parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Target account ID from |
Successful response¶
Returns HTTP 200 with the account’s payment authorizations; the list is empty when no authorizations exist.
{
"items": [],
"total": 0
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Records ordered by creation time, newest first, up to 1,000. |
|
string |
Payment authorization ID. |
|
string |
Billing account ID. |
|
string |
Payment provider. |
|
string |
Payment channel. |
|
string |
Payment authorization type. |
|
string |
Payment method reference. |
|
string |
Authorization status. |
|
string |
Authorization status at the payment provider. |
|
integer |
Authorization version. |
|
string |
Single-payment limit as a decimal string, in currency units. |
|
string |
Daily payment limit as a decimal string, in currency units. |
|
string |
Payment currency. |
|
integer |
Creation time in Unix seconds. |
|
integer |
Revocation time in Unix seconds; may be omitted before revocation. |
|
integer |
Number of returned records, up to 1,000. |
In field paths, [] denotes each array item. For example, items[].payment_authorization_id refers to the corresponding field in each item.
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. |