# Feedback

## CustomerConfirmDelivery

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

**Headers**

| Name     | Value                                         |
| -------- | --------------------------------------------- |
| ClientID | lấy từ [api đăng nhập](/sso/sso-dang-nhap.md) |
| Token    | lấy từ [api đăng nhập](/sso/sso-dang-nhap.md) |

**Body**

| Name                                        | Type     | Description                                                                                          |
| ------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------- |
| OrderCode<mark style="color:red;">\*</mark> | string   | Mã đơn hàng                                                                                          |
| ConfirmID<mark style="color:red;">\*</mark> | string   | Mã xác nhận [*(chi tiết)*](#thong-tin-ma-xac-nhan-confirmid)                                         |
| Notes                                       | string   | Ghi chú                                                                                              |
| **DeliveryInfo**                            | object   | Thông tin giao hàng                                                                                  |
| ReceiverName                                | string   | Tên người nhận                                                                                       |
| ReceiverAddress                             | string   | Địa chỉ đầy đủ người nhận, bao gồm: số nhà, tên đường, tên phường/xã, tên quận/huyện, tên tỉnh thành |
| ReceiverPhone                               | string   | Số điện thoại người nhận                                                                             |
| DeliveryTime                                | DateTime | Thời gian hẹn phát                                                                                   |

**Response**

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

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

{% endtab %}

{% tab title="200" %}

```json
{
    "IsError": true,
    "Errors": [
        {
            "ErrorMessage": "Số điện thoại không hợp lệ (09871111231)",
            "PropertyName": "ReceiverPhone"
        }
    ],
    "ErrorMessage": "Số điện thoại không hợp lệ (09871111231)",
    "ErrorCode": "24"
}
```

{% 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                              |
| ------------------- | ------------ | ---------------------------------------- |
| IsError             | bool         | Có lỗi xảy ra?                           |
| ErrorMessage        | string       | Thông báo lỗi                            |
| ErrorCode           | string       | Mã lỗi [*(chi tiết)*](#thong-tin-ma-loi) |
| **Errors**          | array object | Mảng các lỗi trả về                      |
| Errors.PropertyName | string       | Tên trường lỗi                           |
| Errors.ErrorMessage | string       | Thông báo cụ thể theo trường lỗi         |

### Thông tin mã xác nhận (ConfirmID)

{% hint style="info" %}

* 1: Hẹn phát lại
* 2: Chuyển hoàn về địa chỉ gửi
* 3: Chuyển hoàn về địa chỉ khác
* 4: Chuyển tiếp
* 5: Tiêu hủy
  {% endhint %}

### Thông tin mã lỗi

{% hint style="danger" %}

* 1: Không tìm thấy tỉnh thành từ địa chỉ
* 2: Không tìm thấy quận huyện từ địa chỉ
* 3: Không tìm thấy tỉnh thành từ địa chỉ
* 6: Có lỗi xảy ra trong quá trình xử lý
* 13: Đơn hàng không có trên hệ thống
* 14: Trạng thái vận đơn không hợp lệ
* 15: Chưa truyền mã vận đơn
* 17: Địa chỉ không hợp lệ
* 22: ConfirmID không hợp lệ
* 23: Chưa truyền DeliveryInfo
* 24: Thông tin giao hàng không hợp lệ
  {% endhint %}

### Mẫu ví dụ

```json
{
    "OrderCode" : "HD00001",
    "ConfirmID" : 3,
    "DeliveryInfo" : {
        "ReceiverName" : "Thành",
        "ReceiverAddress" : "326 Võ Văn Kiệt, Cô Giang, Quận 1",
        "ReceiverPhone" : "09871111231"
    },
    "Notes": "Chuyển hoàn về kho"
}
```


---

# Agent Instructions: 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://apidoc.247express.vn/customer/feedback.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.
