Skip to content

List saved PayPal accounts

GET/billing/paypal-accounts

Overview

Lists the PayPal accounts the customer has saved, newest first. Each entry has the account's email address, when it was saved, and service_ids, the services whose renewals are charged to it. available indicates whether PayPal accounts can be saved and used on this installation.

Accounts are saved in the browser, where the customer approves them on PayPal, so there is no endpoint for it. To have a service renew from one, send its uuid as paypal_account to the automatic payment endpoint.

Permissions

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

curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/billing/paypal-accounts' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
{
  "available": true,
  "items": [
    {
      "uuid": "b71cfb0d-abab-4721-9254-622be47149cb",
      "uuid_short": "Uuid short",
      "email": "gordon.freeman@blackmesa.example.com",
      "created_at": "2026-09-14T16:42:09.000000Z",
      "service_ids": [
        1
      ]
    }
  ]
}

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.

availablebooleanrequired

The value of available.

itemsobject[]required

Saved PayPal accounts, with the services renewing from each.

Show child attributes
uuidstringrequired

The uuid UUID.

uuid_shortstringrequired

The value of uuid_short.

emailstring | nullrequired

The account's email address, as PayPal reported it.

created_atstringrequired

The date and time for created at, in UTC.

service_idsinteger[]required

The services whose renewals are charged to it.

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.