# List saved payment methods

`GET https://console.advinservers.com/api/v1/client/billing/payment-methods`

### Overview

Lists saved cards and bank accounts. Each entry includes the payment type, last four digits, expiry date and customer label. Full account numbers and payment tokens are never returned. `knows_default` indicates whether the default method is known. If false, no method is marked as default. New payment methods are collected during checkout.

### 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.

- `knows_default` (boolean, required): The value of `knows_default`.
- `items` (object[], required): Saved payment methods with masked details for identification.
  - `id` (integer, required): The id ID.
  - `type` (string | null, required): The type of operation or resource.
  - `is_card` (boolean | null, required): Whether the resource is card.
  - `description` (string | null, required): The customer's own label for it, where they gave one.
  - `gateway` (string | null, required): The payment gateway identifier, such as `stripe` or `paypal_payments`.
  - `gateway_name` (string | null, required): The value of `gateway_name`.
  - `gateway_kind` (string | null, required): What the customer met when they saved this: `card`, `paypal` or `other`. Classified from the gateway rather than from `type`, because the two disagree on the cases that matter - a PayPal billing agreement is stored as a card, and PayPal also operates a plain card form. Null where the row names no gateway.
  - `card_type` (string | null, required): The value of `card_type`.
  - `last_four` (string | null, required): The value of `last_four`.
  - `expiry_date` (string | null, required): The value of `expiry_date`.
  - `is_expired` (boolean, required): True once the month printed above has been and gone.
  - `bank_name` (string | null, required): The value of `bank_name`.
  - `is_default` (boolean | null, required): Whether the resource is default.
  - `auto_pay` (boolean | null, required): Whether renewals are charged to this payment method automatically. Null if the billing system cannot provide this information.
  - `last_updated` (string | null, required): The value of `last_updated`.

```json
{
  "knows_default": true,
  "items": [
    {
      "id": 3261,
      "type": "RemoteCreditCard",
      "is_card": true,
      "description": "Facility purchasing card",
      "gateway": "stripe",
      "gateway_name": "Credit Card",
      "gateway_kind": "card",
      "card_type": "Visa",
      "last_four": "4417",
      "expiry_date": "08/29",
      "is_expired": false,
      "bank_name": null,
      "is_default": true,
      "auto_pay": false,
      "last_updated": "03/02/2026 19:12"
    }
  ]
}
```

## 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/payment-methods' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
