# List payment authorizations

```{raw} html
<div class="mo-api-page-show-toc" aria-hidden="true"></div>
```

List the most recently created payment authorizations for an account, up to 1,000 entries.

```text
GET https://billing.moi.matrixorigin.cn/api/v1/billing/accounts/$ACCOUNT_ID/payment-authorizations
```

## Before you begin

1. Prepare a valid [personal access token](../../../../../guides/billing/credentials.md#personal-access-token) for the account owner.
2. Call [List current accounts](../accounts/current.md) 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.

```bash
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

::::{div} mo-api-parameter-table

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `accountID` | string | Yes | Target account ID from `items[].billing_account_id` in the List current accounts response. |

::::

## Successful response

Returns HTTP `200` with the account’s payment authorizations; the list is empty when no authorizations exist.

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "items": [],
  "total": 0
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `items` | array of object | Records ordered by creation time, newest first, up to 1,000. |
| `items[].payment_authorization_id` | string | Payment authorization ID. |
| `items[].billing_account_id` | string | Billing account ID. |
| `items[].provider` | string | Payment provider. |
| `items[].channel` | string | Payment channel. |
| `items[].authorization_type` | string | Payment authorization type. |
| `items[].payment_method_ref` | string | Payment method reference. |
| `items[].status` | string | Authorization status. |
| `items[].provider_status` | string | Authorization status at the payment provider. |
| `items[].authorization_version` | integer | Authorization version. |
| `items[].max_single_amount` | string | Single-payment limit as a decimal string, in currency units. |
| `items[].max_daily_amount` | string | Daily payment limit as a decimal string, in currency units. |
| `items[].currency` | string | Payment currency. |
| `items[].created_at` | integer | Creation time in Unix seconds. |
| `items[].revoked_at` | integer | Revocation time in Unix seconds; may be omitted before revocation. |
| `total` | 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.

:::::::{div} mo-api-tabs mo-api-response-tabs
::::::{tab-set}
:::::{tab-item} Response example

```json
{
  "code": "unauthenticated",
  "message": "missing bearer token",
  "error": "missing bearer token"
}
```

:::::
:::::{tab-item} Fields

| Field | Type | Description |
| --- | --- | --- |
| `code` | string | Error code. |
| `message` | string | Error message. |
| `error` | string | Compatibility error message, with the same content as message. |

:::::
::::::
:::::::
