> 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/tao-diem-gui-hang.md).

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