> For the complete documentation index, see [llms.txt](https://apidoc.247express.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidoc.247express.vn/customer/kiem-tra-dia-chi-phat.md).

# Kiểm tra địa chỉ phát

## CheckAddressInfo

<mark style="color:green;">`POST`</mark> /api/Customer/CheckAddressInfo

**Headers**

| Name     | Value                |
| -------- | -------------------- |
| ClientID | Lấy từ api đăng nhập |
| Token    | Lấy từ api đăng nhập |

**Body**

| Name    | Type   | Description  |
| ------- | ------ | ------------ |
| Address | string | Địa chỉ phát |

**Response**

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

```json
{
    "DeliveryArea": "IN",
    "IsError": false,
    "Errors": [],
    "ErrorMessage": ""
}
```

{% endtab %}

{% tab title="401" %}

```json
{
    "IsError": true,
    "ErrorMessage": "Bạn cần đăng nhập để truy cập chức năng này."
}
```

{% endtab %}
{% endtabs %}

| Name         | Type   | Description                                                                                                                                                                             |
| ------------ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DeliveryArea | string | <p></p><ul><li>IN: Địa chỉ trong vùng phát (có thể tạo đơn)</li><li>OUT: Địa chỉ ngoài vùng phát (có thể tạo đơn)</li><li>UNKNOWN: Địa chỉ không xác định (không thể tạo đơn)</li></ul> |
| IsError      | bool   | Lỗi nếu có                                                                                                                                                                              |
| ErrorMessage | string | Thông báo lỗi                                                                                                                                                                           |
|              |        |                                                                                                                                                                                         |

### Mẫu ví dụ

```json
{
    "Address": "326 Võ Văn Kiệt, Phường Cầu Ông Lãnh, HCM"
}
```
