> For the complete documentation index, see [llms.txt](https://aliniex.gitbook.io/alix-pay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aliniex.gitbook.io/alix-pay/api-reference/alix-card-api/user/submit-account-kyc.md).

# Submit Account KYC

<mark style="color:orange;">`POST`</mark> /api/v2/cards/submit-kyc

This API allows you to submit an user account kyc data

#### **Headers**

| Param        | Value                                                                      |
| ------------ | -------------------------------------------------------------------------- |
| access-token | [Access Token](/alix-pay/api-reference/alix-card-api/auth/access-token.md) |

#### Request Body

```json
{
    "firstName": "Phoi",
    "lastName": "Truong Thi",
    "dateOfBirth": "1993-10-31",
    "gender": "female",
    "nationalId": "0123456789",
    "nationality": "VN",
    "idType": "ID_CARD",
    "issueDate": "2022-04-22",
    "expiryDate": "2033-10-31",
    "address": "Xuan Tam Commune, Xuan Loc District, Dong Nai Province, Vietnam",
    "frontIdImage": "data:image/jpeg;base64,/9j/4QCkRXhpZgAA",
    "backIdImage": "data:image/jpeg;base64,/9j/4QCkRXhpZgAA",
    "holdIdImage": "data:image/jpeg;base64,/9j/4QCkRXhpZgAA",
    "phoneNumber": "333806541",
    "phoneCountryCode": "84",
}
```

#### Description

<table><thead><tr><th width="212.65625">Name</th><th width="82">Type</th><th width="110">Condition</th><th>Value</th></tr></thead><tbody><tr><td>firstName</td><td>string</td><td>required</td><td></td></tr><tr><td>lastName</td><td>string</td><td>required</td><td></td></tr><tr><td>dateOfBirth</td><td>string</td><td>required</td><td>YYYY-MM-DD</td></tr><tr><td>gender</td><td>string</td><td>required</td><td><ul><li>male</li><li>female</li></ul></td></tr><tr><td>nationalId</td><td>string</td><td>required</td><td><ul><li>Id Card number</li><li>or Passport number</li></ul></td></tr><tr><td>nationality</td><td>string</td><td>required</td><td><ul><li>VN</li></ul></td></tr><tr><td>idType</td><td>string</td><td>required</td><td><ul><li>ID_CARD</li><li>PASSPORT</li></ul></td></tr><tr><td>issueDate</td><td>string</td><td>required</td><td>The issue date<br>(YYYY-MM-DD)</td></tr><tr><td>expiryDate</td><td>string</td><td>required</td><td>The expire date<br>(YYYY-MM-DD)</td></tr><tr><td>address</td><td>string</td><td>required</td><td></td></tr><tr><td>frontIdImage</td><td>string</td><td>required</td><td>Front of the document (Base64)</td></tr><tr><td>backIdImage</td><td>string</td><td>required</td><td>Back of the document (Base64)</td></tr><tr><td>holdIdImage</td><td>string</td><td>required</td><td>Selfie photo (Base64)</td></tr><tr><td>phoneNumber</td><td>string</td><td>required</td><td></td></tr><tr><td>phoneCountryCode</td><td>string</td><td>required</td><td></td></tr></tbody></table>

**Additional rules:**

* The length of "{firstName} {lastName}" must not exceed 23 characters.
* The {address} must not exceed 48 characters.
* The user must be between 18 and 65 years old.
* For documents with no expiration date, please enter an {expiryDate} that is 10 years from the {issueDate}.

#### **Response**&#x20;

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

```json

{
    "success": true,
    "message": "Your request has been successful",
    "data": {
        "nationalId": "1746865978",
        "kycStatus": "Pending"
    },
    "errorCode": 0
}

```

{% endtab %}

{% tab title="400" %}

<pre class="language-json"><code class="lang-json">{
    "success": false,
    "message": "[ERROR MESAGE]",
    "data": null,
    "errorCode": 32
}
<strong>
</strong>
</code></pre>

{% endtab %}
{% endtabs %}

#### **Response structure**

<table><thead><tr><th width="264">Name</th><th width="100">Type</th><th>Description</th></tr></thead><tbody><tr><td><pre><code>nationalId
</code></pre></td><td>string</td><td>The id of submitted document</td></tr><tr><td><pre><code>kycStatus
</code></pre></td><td>string</td><td>The KYC review status</td></tr></tbody></table>

{% hint style="success" %}
The KYC review status will update by using [webhook](/alix-pay/api-reference/alix-card-api/cards/notifications-webhook.md) &#x20;
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aliniex.gitbook.io/alix-pay/api-reference/alix-card-api/user/submit-account-kyc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
