> For the complete documentation index, see [llms.txt](https://arito-dev.gitbook.io/arito-api-integration-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arito-dev.gitbook.io/arito-api-integration-documentation/list-api/import-customer.md).

# Import Customer

Used to push customer data into the program, either individual customer data or a list of multiple customers

<table data-view="cards"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Method</td><td><a data-footnote-ref href="#user-content-fn-1"><mark style="color:green;"><strong>POST</strong></mark></a></td></tr><tr><td>Link</td><td><mark style="color:orange;"><strong>{{host}}/Customer/Import</strong></mark></td></tr></tbody></table>

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

## Authorization

<table data-header-hidden><thead><tr><th width="183"></th><th></th></tr></thead><tbody><tr><td>Type</td><td><mark style="color:blue;">Bearer Token</mark></td></tr><tr><td>Token</td><td><mark style="color:orange;">{{access_token}}</mark></td></tr></tbody></table>

## Body

```
{
    "memvars": {
        "data": [
            {
                "ma_kh": "API-KH0001",
                "ten_kh": "Công ty TNHH ABC",
                "dia_chi": "123 Hùng Vương, Q5. Hồ Chí Minh",
                "ma_so_thue": "0313610123",
                "nh_kh1": "KHVIP",
                "gioi_han_no": 10000000,
                "dien_thoai": "0909123456"
            }
        ]
    }
}
```

### Parameter description

<table><thead><tr><th width="144">Name</th><th width="59" data-type="checkbox">(*)</th><th width="94">Datatype</th><th>Descripsion</th></tr></thead><tbody><tr><td>ma_kh</td><td>true</td><td>string</td><td>Customer's code</td></tr><tr><td>ten_kh</td><td>true</td><td>string</td><td>Customer's name</td></tr><tr><td>ma_so_thue</td><td>false</td><td>string</td><td>Tax code</td></tr><tr><td>nh_kh1</td><td>false</td><td>string</td><td>Customer type</td></tr><tr><td>gioi_han_no</td><td>false</td><td>numeric</td><td>Debt limit</td></tr><tr><td>dien_thoai</td><td>false</td><td>string</td><td>Phone number</td></tr></tbody></table>
{% endtab %}

{% tab title="Response" %}

```
{
    "code": 200,
    "msg": "Ok",
    "value": null,
    "data": null
}
```

### &#x20; Describe the results

<table><thead><tr><th width="159">Tên</th><th>Diễn giải</th></tr></thead><tbody><tr><td>code</td><td>When the import is successful, the status code is 200. For other codes, such as 401, 452, it indicates a failed operation, accompanied by a descriptive message explaining the result</td></tr><tr><td>msg</td><td>Description of API execution results</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

[^1]:
