> For the complete documentation index, see [llms.txt](https://docs.salework.net/salework-tai-lieu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.salework.net/salework-tai-lieu/he-thong-ho-tro/salework-open-api/order-update-self-logistics.md).

# Order Update Self Logistics

Cập nhật đơn tự vận chuyển trong Salework Kho Vận

#### Request Headers

{% code overflow="wrap" lineNumbers="true" %}

```
client-id: 123456
token: 50000601c30atpedfgu3LVvik87Ixlsvle3mSoB7701ceb156fPunYZ43GBg
```

{% endcode %}

#### Request Body

{% code overflow="wrap" lineNumbers="true" %}

```json
{    
    "method": "orderUpdate",
    "params": {
        "order_code": order_code,
        "state": STATE
    }
}
```

{% endcode %}

#### Response Body

{% code lineNumbers="true" %}

```json
{
    "success": true,
    "data": {
    }
}
```

{% endcode %}

#### Parameters

<table><thead><tr><th width="187">Parameter</th><th width="120">Type</th><th width="110">Required</th><th>Note</th></tr></thead><tbody><tr><td> order_code</td><td>string</td><td>yes</td><td>Mã đơn hàng</td></tr><tr><td><pre><code>state
</code></pre></td><td>string</td><td>yes</td><td><p>Trạng thái đơn hàng cần cập nhật:</p><pre><code><strong>PACKED: Đang đóng gói,
</strong>READY_TO_SHIP: Chờ gửi hàng,
DISPATCHED: Đã gửi hàng,
SHIPPED: Đang giao,
DELIVERED: Thành công,
RETURNED: Hoàn,
CANCELLED: Hủy
</code></pre></td></tr></tbody></table>
