# Query Cardholder

### **Request URI** <a href="#payin-by-creditcard" id="payin-by-creditcard"></a>

`POST` `/issuing/holder/query`

### **Request Body**

&#x20;**Refer to :** [**common**](https://docs.pagsmile.com/issuing-card-api/common)

&#x20;**Biz\_data :**

| Name       | Type    | Description    |
| ---------- | ------- | -------------- |
| holder\_id | long    | Cardholder ID. |
| id\_no     | string  | ID number.     |
| id\_type   | integer | ID type        |

{% hint style="info" %} <mark style="color:red;">Choose one of field holder\_id and field (id\_no,id\_type).</mark>
{% endhint %}

### **Request** Example <a href="#example" id="example"></a>

```
{
    "app_id": "00000000000000000",
    "partner_id": "00000000000000000",
    "request_id": "766b69FD-2aEb-bf71-cee8-e8eBbBeb",
    "timestamp": "2025-04-07 13:52:15",
    "format": "JSON",
    "version": "2.0",
    "sign_type": "RSA",
    "biz_data": {
        "holder_id": "103006"
    },
    "random_key": "<generated_key>"
}
// The biz_data in this example needs to be encrypted!
```

### Response <a href="#example" id="example"></a>

<table><thead><tr><th width="231.4375">Name</th><th width="154.484375">Type</th><th>Description</th></tr></thead><tbody><tr><td>holder_id</td><td>long</td><td>Cardholder ID</td></tr><tr><td>mobile</td><td>string</td><td>Mobile</td></tr><tr><td>first_name</td><td>string</td><td>First name</td></tr><tr><td>last_name</td><td>string</td><td>Last name</td></tr><tr><td>id_no</td><td>string</td><td>ID number.</td></tr><tr><td>id_type</td><td>integer</td><td>ID type</td></tr><tr><td>issuance_date</td><td>string</td><td>Issuance date</td></tr><tr><td>expires_on</td><td>string</td><td>Expires on</td></tr><tr><td>email</td><td>string</td><td>Email</td></tr><tr><td>birthday</td><td>string</td><td>Birthday</td></tr><tr><td>gender</td><td>integer</td><td>Gender</td></tr><tr><td>nationality_code</td><td>string</td><td>Nationality code</td></tr><tr><td>status</td><td>integer</td><td>Status : 0-initial 1-enabled 2-disabled</td></tr><tr><td>audit_status</td><td>integer</td><td>Audit Status.Refer to<a href="https://docs.pagsmile.com/issuing-card-api/data/dictionary-item/customerauditstatus">CustomerAuditStatus</a></td></tr><tr><td>address.city_name</td><td>string</td><td>City Name</td></tr><tr><td>address.country_code</td><td>string</td><td>Country Code</td></tr><tr><td>address.postal_code</td><td>string</td><td>Postal Code</td></tr><tr><td>address.state</td><td>string</td><td>State</td></tr><tr><td>address.line</td><td>string</td><td>Line</td></tr><tr><td>address.line2</td><td>string</td><td>Line2</td></tr></tbody></table>

{% tabs %}
{% tab title="200:OK" %}

```
{
    "code": "10000",
    "msg": "Success",
    "total": 1,
    "random_key": "<random key used for decryption>",
    "sign_type": "RSA",
    "app_id": "00000000000000000",
    "data": {
        "holder_id": 103006,
        "mobile": "+8618197431263",
        "first_name": "Test",
        "last_name": "User",
        "id_no": "51f635df-d206-449c",
        "id_type": 1,
        "issuance_date": "2024-07-21",
        "expires_on": "2030-07-24",
        "email": "n.hugidnsm@qwyswfg.ao",
        "birthday": "1990-11-08",
        "gender": 1,
        "nationality_code": "BR",
        "address": {
            "address_id": 104342,
            "city_id": null,
            "city_name": "beijing",
            "country_code": "BR",
            "postal_code": "045675",
            "state": "proident enim",
            "line": "Wivjq Njutsfd Hiqouxlbs Uhdt Gtjpzy",
            "line2": "Ebtorcbaq Enojuvm Ikw Xvlgum Wibq U"
        },
        "audit_status": 3,
        "status": 0
    }
}
// The data in this example has already been decrypted.
```

{% endtab %}

{% tab title="400: invalid-signature" %}

```
{
    "code": "40002",
    "msg": "Business Failed",
    "sub_code": "invalid-signature",
    "sub_msg": "invalid signature"
}
```

{% endtab %}
{% endtabs %}
