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
| Item | Value |
|---|---|
| Method | POST |
| Path | /api/v1/openapi/cardholder/legacy_cards |
| Auth | HMAC |
| Idempotency | Not required |
Request Fields
None — send an empty JSON object.
json
{}Response Fields
Each item in data.list[]:
| Field | Type | Description |
|---|---|---|
card_id | string | card_<id> — use it as legacy_card_id |
card_type | string | virtual_g / physical_g |
card_number | string | Masked card number showing only the last 4 digits, e.g. **** 4242; empty string while no card number is available |
card_holder_name | string | The platform's cardholder name of the card; may be empty |
status | int | The card's status code (for virtual cards the same values as status on /card/info) |
created_at | string | RFC3339 |
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
| HTTP | code | error_key | Description |
|---|---|---|---|
| 200 | 50000 | cardholder_service_not_configured | The cardholder service is not enabled — contact us |
| 401 | 40100 | openapi_invalid_credentials | Auth failure |
| 429 | 42900 | too_many_requests | Rate limited — honor Retry-After |
| 200 | 50000 | openapi_cardholder_failed | Server 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,
createreturnscardholder_already_registered— use the existing cardholder.