# 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 %}


---

# 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://docws.ems.com.vn/tieng-viet/diem-gui-hang/cap-nhat-diem-lay-hang.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.
