> 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/english-1.0.6/webhooks/status-update-log.md).

# Status update log

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

#### Headers

| Name                                       | Type   | Description        |
| ------------------------------------------ | ------ | ------------------ |
| ClientID<mark style="color:red;">\*</mark> | Number | Get at SSO - Login |
| Token<mark style="color:red;">\*</mark>    | String | Get at SSO - Login |

#### Request Body

| Name                                       | Type     | Description                                   |
| ------------------------------------------ | -------- | --------------------------------------------- |
| FromDate<mark style="color:red;">\*</mark> | DateTime | From date                                     |
| ToDate<mark style="color:red;">\*</mark>   | DateTime | To date                                       |
| OrderCodes                                 | String   | Order code (multiple orders separated by ",") |

{% tabs %}
{% tab title="200: OK " %}
{% tabs %}
{% tab title="Success" %}

```json
{
  "Data": {
    "Orders": [
      {
        "OrderCode": "HD000003",
        "Histories": [
          {
            "OrderCode": "HD000003",
            "ExternalCode": "HD000003",
            "ReferenceCode": "HD000003",
            "Status": "21",
            "StatusName": "DATIEPNHAN",
            "Description": null,
            "RequestFeedbackCount": 0,
            "DelayCode": null,
            "DelayNotes": null,
            "DeliveryNotes": null,
            "Mailman": null,
            "TransactionId": "8b2213ed-g2de-457b-a0e1-9a26c4d23a3f",
            "DeliveryDate": null,
            "ReceiverName": null,
            "Time": "2023-01-03T10:11:19.6240597+07:00",
            "IsCallError": false,
            "ErrorMessage": null,
            "IsPartnerResponseError": false,
            "PartnerResponseErrorMsg": null
          },
          {
            "OrderCode": "MDH24700000001",
            "ExternalCode": null,
            "Status": "23",
            "StatusName": "DALAYHANG",
            "Description": null,
            "RequestFeedbackCount": 0,
            "DelayCode": null,
            "DelayNotes": null,
            "DeliveryNotes": null,
            "Mailman": null,
            "TransactionId": "eda18522-2ffc-48ce-beb8-abe32aa60a54",
            "DeliveryDate": null,
            "ReceiverName": null,
            "Time": "2023-01-04T10:11:19.6240597+07:00",
            "IsCallError": false,
            "ErrorMessage": null,
            "IsPartnerResponseError": false,
            "PartnerResponseErrorMsg": null
          }
        ]
      }
    ]
  },
  "IsError": false,
  "ErrorMessage": ""
}
```

{% endtab %}

{% tab title="Error" %}

```json
{
    "Data": null,
    "IsError": true,
    "ErrorMessage": ""
}

```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

### Response description

| Trường                  | Mô tả                                                                                        |
| ----------------------- | -------------------------------------------------------------------------------------------- |
| Data                    | Data                                                                                         |
| Orders                  | List of orders                                                                               |
| Histories               | Transaction log of update status orders                                                      |
| OrderCode               | Order code                                                                                   |
| ExternalCode            | External code (Order code entered by customer)                                               |
| ReferenceCode           | Customer reference code                                                                      |
| Status                  | Status ID [*(detail)*](/english-1.0.6/webhooks/update-status.md#list-of-statuses)            |
| StatusName              | Status name                                                                                  |
| Description             | Description status                                                                           |
| RequestFeedbackCount    | External code                                                                                |
| DelayCode               | Delay code [*(detail)*](/english-1.0.6/tracking/order-tracking.md#list-of-reasons-for-delay) |
| DelayNotes              | Reason for failed delivery                                                                   |
| Mailman                 | Mail man                                                                                     |
| TransactionId           | Transaction ID                                                                               |
| DeliveryDate            | Delivery date                                                                                |
| DeliveryNotes           | Delivery notes                                                                               |
| ReceiverName            | Recipient's name                                                                             |
| Time                    | Event occurrence time                                                                        |
| IsCallError             | Is call API failed?                                                                          |
| ErrorMessage            | Description for API Call Failed                                                              |
| IsPartnerResponseError  | Is the response error?                                                                       |
| PartnerResponseErrorMsg | Description for response error                                                               |
