# List top-ups

`GET https://console.advinservers.com/api/v1/client/billing/deposits`

### Overview

Lists the account's 50 most recent top-ups, newest first, across all teams. Older top-ups are not included. `credit` contains the same information as the balance endpoint. `enabled` indicates whether top-ups are available.

### Permissions

Requires the account permission `billing.read` (View billing).

## Authorization

Send `Authorization: Bearer <token>` with the request. Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

## Response 200

The record, as a JSON object. There is no envelope.

- `enabled` (boolean, required): The value of `enabled`.
- `credit` (object, required): The available account credit, formatted for display.
  - `enabled` (boolean, required): The value of `enabled`.
  - `balance` (string, required): The value of `balance`.
  - `currency` (string | null, required): The three-letter currency code used for monetary amounts.
  - `minimum` (string, required): The value of `minimum`.
  - `maximum` (string, required): The value of `maximum`.
  - `presets` (string[], required): The value of `presets`.
  - `withdrawal_waiver_required` (boolean, required): Adding funds needs `waives_withdrawal` accepted: the billing country is in the EU, the EEA or the UK, or unknown.
- `items` (object[], required): Recent top-ups with amounts, statuses and payment details for unpaid entries.
  - `uuid` (string, required): The uuid UUID.
  - `uuid_short` (string, required): The value of `uuid_short`.
  - `status` (string, required): The value of `status`. One of: `pending_payment`, `credited`, `expired`, `cancelled`.
  - `status_label` (string, required): The status in the customer's words, written once on the enum.
  - `payment_in_progress` (boolean, required): Paid or being paid at a checkout, before the top-up shows it. The dialog reads it to stop a second payment; the list shows only Unpaid or Paid.
  - `billing` (object, required): The value of `billing`.
    - `service_id` (integer | null, required): The customer's service number, once a recurring service exists.
    - `invoice_id` (integer | null, required): The customer's invoice number, once an invoice exists.
    - `invoice_url` (string | null, required): A complete URL where the invoice can be paid.
    - `checkout_uuid` (string | null, required): The checkout UUID, or null when no checkout is available.
    - `checkout_uuid_short` (string | null, required): The value of `checkout_uuid_short`.
    - `invoice_status` (string | null, required): The current invoice status, or null before an invoice exists.
    - `amount` (string | null, required): The amount in the currency shown by `currency`.
    - `currency` (string | null, required): The three-letter currency code used for `amount`.
    - `billing_cycle` (string | null, required): How often the service renews, or null for a one-time charge.
    - `payment_due_at` (string | null, required): When payment is due before the reservation is released.
    - `payment_window_minutes` (integer | null, required): How many minutes the original payment window allowed.
    - `paid_at` (string | null, required): When the charge was paid, or null while payment is outstanding.
  - `credited_at` (string | null, required): The date and time for credited at, in UTC.
  - `cancelled_at` (string | null, required): The date and time for cancelled at, in UTC.
  - `created_at` (string | null, required): The date and time for created at, in UTC.

```json
{
  "enabled": true,
  "credit": {
    "enabled": true,
    "balance": "10.00",
    "currency": "USD",
    "minimum": "5.00",
    "maximum": "500.00",
    "presets": [
      "25.00",
      "50.00",
      "100.00",
      "250.00"
    ],
    "withdrawal_waiver_required": false
  },
  "items": [
    {
      "uuid": "20a09a3f-a6cf-4470-b078-7330235aa5d5",
      "uuid_short": "Uuid short",
      "status": "pending_payment",
      "status_label": "Unpaid",
      "payment_in_progress": true,
      "billing": {
        "service_id": null,
        "invoice_id": 18386,
        "invoice_url": "https://clients.advinservers.com/viewinvoice.php?id=18386",
        "checkout_uuid": "53a832f9-e85e-44b5-af03-2ef26110686d",
        "invoice_status": "Unpaid",
        "amount": "25.00",
        "currency": "USD",
        "billing_cycle": null,
        "payment_due_at": "2026-09-14T17:12:09+00:00",
        "payment_window_minutes": null,
        "paid_at": null
      },
      "credited_at": null,
      "cancelled_at": null,
      "created_at": "2026-09-14T16:42:09+00:00"
    }
  ]
}
```

## Errors

- `401`: The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- `403`: Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- `429`: Too many requests. The `Retry-After` header says how many seconds to wait. Limits are per account, so several keys on one account share them.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/billing/deposits' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
