# Feedback

## CustomerConfirmDelivery

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

**Headers**

| Name     | Value                                             |
| -------- | ------------------------------------------------- |
| ClientID | From [SSO-Login](/english-1.0.6/sso/sso-login.md) |
| Token    | From [SSO-Login](/english-1.0.6/sso/sso-login.md) |

**Body**

| OrderCode<mark style="color:red;">\*</mark> | string   | OrderCode                                                                                      |
| ------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------- |
| ConfirmID<mark style="color:red;">\*</mark> | string   | ConfirmID [*(detail)*](#thong-tin-ma-xac-nhan-confirmid)                                       |
| Notes                                       | string   | Notes                                                                                          |
| **DeliveryInfo**                            | object   | Delivery Info                                                                                  |
| ReceiverName                                | string   | Recipient's name                                                                               |
| ReceiverAddress                             | string   | Recipient's full address (house number, Street name, Ward name, District name, Province name). |
| ReceiverPhone                               | string   | Recipient's phone                                                                              |
| DeliveryTime                                | DateTime | ReDelivery Time                                                                                |

**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         | IsError?                                   |
| ErrorMessage        | string       | Error mesage                               |
| ErrorCode           | string       | Error code [*(detail)*](#thong-tin-ma-loi) |
| **Errors**          | array object | Array of Errors                            |
| Errors.PropertyName | string       | Property name                              |
| Errors.ErrorMessage | string       | Error mesage of property                   |

### ConfirmID <a href="#thong-tin-ma-xac-nhan-confirmid" id="thong-tin-ma-xac-nhan-confirmid"></a>

{% hint style="info" %}

* 1: Re-Delivery
* 2: Return to sender address
* 3: Return to other address
* 4: Forward to order address
* 5: Destroy
  {% endhint %}

### Errors Code <a href="#thong-tin-ma-loi" id="thong-tin-ma-loi"></a>

{% hint style="danger" %}

* 1: Ward error
* 2: District Error
* 3: Province Error
* 6: Was an exception
* 13: OrderCode not found
* 14: OrderCode's status is invalid
* 15: OrderCode is not allow null
* 17: ReceiverAddress is invalid
* 22: ConfirmID is in valid
* 23: DeliveryInfo is not allow null
* 24: Delivery info is invalid
  {% endhint %}

### Example

```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/english-1.0.6/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.
