> 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/update-status.md).

# Update status

{% hint style="info" %}

* Use RESTful APIs
* Content-Type: application/json
* Supports one of the following authentication mechanisms:
  * Apikey
  * Basic Authentication
    {% endhint %}

## Update Order Status

<mark style="color:green;">`POST`</mark> `/IntergrationAPI`

#### Headers

| Name         | Type   | Description  |
| ------------ | ------ | ------------ |
| Content-Type | string | Content type |

#### Request Body

| Name                 | Type           | Description                                                                                  |
| -------------------- | -------------- | -------------------------------------------------------------------------------------------- |
| Time                 | datetime       | Event occurrence time                                                                        |
| TransactionId        | string         | Transaction ID                                                                               |
| DeliveryDate         | datetime(null) | Delivery date                                                                                |
| ReceiverName         | string         | Recipient's name                                                                             |
| Mailman              | string         | Mail man                                                                                     |
| DeliveryNotes        | string         | Delivery notes                                                                               |
| DelayNotes           | string         | Reason for failed delivery                                                                   |
| RequestFeedbackCount | integer        | Number of request for feedback                                                               |
| Description          | string         | Description status                                                                           |
| StatusName           | string         | Status name                                                                                  |
| Status               | string         | Status ID [*(detail)*](#list-of-statuses)                                                    |
| OrderCode            | string         | Order Code                                                                                   |
| ApiKey               | string         | API key for authentication between 2 parties                                                 |
| DelayCode            | string         | Delay Code [*(detail)*](/english-1.0.6/tracking/order-tracking.md#list-of-reasons-for-delay) |
| ExternalCode         | string         | External Code (Order code entered by customer)                                               |
| ReferenceCode        | string         | Customer reference code                                                                      |

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

```json
// Success
{
    "IsError": false,
    "ErrorMessage": ""
}
// Error
{
    "IsError": true,
    "ErrorMessage": "Mô tả lỗi"
 }
```

{% endtab %}
{% endtabs %}

### Example

```json
{
  "ApiKey": "EBD2E298-20AC-483F-80EC-B51CF8D79A2A",
  "OrderCode": "HD000003",
  "ExternalCode": "HD000003",
  "ReferenceCode":"HD000003"
  "Status": "25",
  "StatusName": "DANGDIPHAT",
  "Description": "Change order status: DANGVANCHUYEN ==> DANGDIPHAT",
  "RequestFeedbackCount": 0,
  "DelayCode": null,
  "DelayNotes": null,
  "DeliveryNotes": null,
  "Mailman": null,
  "DeliveryDate": null,
  "ReceiverName": "THANH",
  "TransactionId": "e07147ce-ebdb-47c6-ac96-959222494dbe",
  "Time": "2019-08-07T11:24:12.4946223+07:00"
}
```

### List of Statuses

{% hint style="info" %}

* 16: CHOXULY - PENDING\_FOR\_PROCEED
* 18: HUY - CANCEL
* 19: THATLAC - LOST
* 21: DATIEPNHAN - ACCEPTED
* 23: DALAYHANG - PICKED\_UP
* 24: DANGVANCHUYEN - IN\_TRANSIT
* 25: DANGDIPHAT - DELIVERING
* 27: CHOCHUYENHOAN - PENDING\_FOR\_RETURN
* 28: DACHUYENHOAN - RETURNED
* 30: PHATTHANHCONG - DELIVERED
* 32: TICHTHU - CONFISCATED
  {% endhint %}
