# Tạo điểm lấy hàng

## Create Inventory

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

API tạo điểm lấy hàng.

#### Path Parameters

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

#### Headers

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

#### Request Body

| Name           | Type   | Description           |
| -------------- | ------ | --------------------- |
| 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ệ |
| province\_code | string | Mã tỉnh/thành phố     |
| district\_code | string | Mã quận/huyện         |
| ward\_code     | string | Mã phường/xã          |
| address        | string | Địa chỉ               |

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

```php
Đăng ký thành công:
{'code': 'success', 'message': 'Thành công', 'data': [Mã kho hàng]}

Thất bại:
{'code': 'error', 'message': '.......', 'data': 0}

```

{% 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/tao-diem-gui-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.
