Skip to content

List saved payment methods

GET/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).

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/billing/payment-methods' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/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"
    }
  ]
}

Authorization

Authorizationstringheaderrequired

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.

Send it as Bearer <token>.

Response 200

application/json

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

knows_defaultbooleanrequired

The value of knows_default.

itemsobject[]required

Saved payment methods with masked details for identification.

Show child attributes
idintegerrequired

The id ID.

typestring | nullrequired

The type of operation or resource.

is_cardboolean | nullrequired

Whether the resource is card.

descriptionstring | nullrequired

The customer's own label for it, where they gave one.

gatewaystring | nullrequired

The payment gateway identifier, such as stripe or paypal_payments.

gateway_namestring | nullrequired

The value of gateway_name.

gateway_kindstring | nullrequired

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_typestring | nullrequired

The value of card_type.

last_fourstring | nullrequired

The value of last_four.

expiry_datestring | nullrequired

The value of expiry_date.

is_expiredbooleanrequired

True once the month printed above has been and gone.

bank_namestring | nullrequired

The value of bank_name.

is_defaultboolean | nullrequired

Whether the resource is default.

auto_payboolean | nullrequired

Whether renewals are charged to this payment method automatically. Null if the billing system cannot provide this information.

last_updatedstring | nullrequired

The value of last_updated.

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.