Skip to content

List Legacy Cards ​

Lists the cards on your account whose existing holder can be reused when registering a cardholder: pass a returned card_id as legacy_card_id to /cardholder/create.

A card is a candidate when it is a virtual_g or physical_g card of your account, has been issued, was opened without a cardholder, and has not yet been reused by one of your registered cardholders. Card status does not matter. At most the 50 most recent candidates are returned.

Endpoint ​

ItemValue
MethodPOST
Path/api/v1/openapi/cardholder/legacy_cards
AuthHMAC
IdempotencyNot required

Request Fields ​

None — send an empty JSON object.

json
{}

Response Fields ​

Each item in data.list[]:

FieldTypeDescription
card_idstringcard_<id> — use it as legacy_card_id
card_typestringvirtual_g / physical_g
card_numberstringMasked card number showing only the last 4 digits, e.g. **** 4242; empty string while no card number is available
card_holder_namestringThe platform's cardholder name of the card; may be empty
statusintThe card's status code (for virtual cards the same values as status on /card/info)
created_atstringRFC3339

The list is not paginated: data carries the usual pagination fields with page=1 and all candidates in list.

Example Response ​

json
{
  "code": 0,
  "message": "Success",
  "data": {
    "list": [
      {
        "card_id": "card_12345",
        "card_type": "virtual_g",
        "card_number": "**** 4242",
        "card_holder_name": "John Doe",
        "status": 2,
        "created_at": "2026-08-01T09:30:00Z"
      }
    ],
    "total": 1,
    "page": 1,
    "page_size": 1,
    "total_pages": 1,
    "has_next": false,
    "has_prev": false
  }
}

Common Errors ​

HTTPcodeerror_keyDescription
20050000cardholder_service_not_configuredThe cardholder service is not enabled — contact us
40140100openapi_invalid_credentialsAuth failure
42942900too_many_requestsRate limited — honor Retry-After
20050000openapi_cardholder_failedServer error

Notes ​

  • Creating a cardholder from a legacy card does not change the legacy card. Once the cardholder is registered, the card no longer appears in this list (its holder is already registered — choosing it again returns cardholder_already_registered); while the registration is still a draft, the card stays selectable. Cards you open afterwards with the new cardholder are linked to the cardholder.
  • If the legacy card's holder is already registered as another cardholder on your account, create returns cardholder_already_registered — use the existing cardholder.

Released under MIT-equivalent terms.