Nhảy tới nội dung

👥 API tra cứu thông tin công dân

Đặc tả API

VietQR.IO (/v2/citizen)

Tra cứu thông tin công dân

API tra cứu thông tin công dân dựa vào CCCD, CMND hoặc Mã số thuế và tên công dân

Authorizations:
(x-client-idx-api-key)
Request Body schema: application/json
legalId
required
string

Mã định danh cá nhân (CCCD, CMND hoặc Mã số thuế) của công dân

legalName
required
string

Tên công dân

Responses

Request samples

Content type
application/json
{
}

Response samples

Content type
application/json
Example

Success - Thành công

{
}

Code mẫu

curl --location --request POST 'https://api.vietqr.io/v2/citizen' \
--header 'x-client-id: <CLIENT_ID_HERE>' \
--header 'x-api-key: <API_KEY_HERE>' \
--header 'Content-Type: application/json' \
--data-raw '{
"legalId":"8589715960",
"legalName":"NGUYEN MINH KHANH"
}'