> For the complete documentation index, see [llms.txt](https://docws.ems.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docws.ems.com.vn/tieng-viet/diem-gui-hang/cap-nhat-diem-lay-hang.md).

# Cập nhật điểm lấy hàng

## Update Inventory

<mark style="color:green;">`POST`</mark> `http://ws.ems.com.vn/api/v1/inventory/update`

API cập nhật thông tin điểm gửi hàng.

#### Path Parameters

| Name            | Type   | Description |
| --------------- | ------ | ----------- |
| merchant\_token | string | *`Token`*   |

#### Headers

| Name   | Type   | Description            |
| ------ | ------ | ---------------------- |
| Accept | string | application/javascript |

#### Request Body

| Name     | Type    | Description                         |
| -------- | ------- | ----------------------------------- |
| id       | integer | Mã điểm lấy hàng                    |
| name     | string  | Tên điểm lấy hàng                   |
| username | string  | Tên người liên hệ                   |
| phone    | string  | Số điện thoại liên hệ               |
| address  | string  | Địa chỉ                             |
| active   | boolean | True: Sử dụng, False: Ngừng sử dụng |

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

```php
Cập nhật thành công:
{"code": "success", "message": "Thành công", "data": [Mã kho hàng]}

Cập nhật thất bại:
{"code": "error", "message": "........", "data": [Mã kho hàng]}
```

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