# Getting Started

## CÁC BƯỚC TÍCH HỢP

* Bước 1: Đăng nhập lấy ClientID và Token theo[ API đăng nhập](https://apidoc.247express.vn/sso/sso-dang-nhap). Username và Password đăng nhập sẽ được cấp khi là khách hàng của 247.
* Bước 2: Lấy [danh sách các ClientHubID](https://apidoc.247express.vn/customer/danh-sach-dia-chi), đấy chính là danh sách mã định danh (ID) của các địa chỉ gửi hàng của khách hàng. Khi tạo đơn hàng cần gửi, phải điền đúng mã định danh (ClientHubID) tương ứng địa chỉ gửi hàng đi của đơn hàng đó.
* Bước 3: Lấy [danh sách dịch vụ chính](https://apidoc.247express.vn/customer/danh-sach-dich-vu-chinh) đã được đăng ký bởi khách hàng.
* Bước 4: Lấy danh sách các [dịch vụ giá trị gia tăng](https://apidoc.247express.vn/customer/danh-sach-dich-vu-gtgt) mà khách hàng có thể sử dụng.
* Bước 5: Tạo đơn hàng sử dụng [API tạo đơn hàng](https://apidoc.247express.vn/customer/tao-don-hang) với các thông tin cần thiết sau:
  * ClientID và Token lấy ở bước 1.
  * ClientHubId lấy ở bước 2.
  * Dịch vụ chính/dịch vụ giá trị gia tăng lấy bước 3 và 4 (nếu sử dụng).

#### THÔNG TIN API

{% hint style="success" %}
Môi trường staging: [https://customerapi-stg.247tech.vn](https://customerapi-stg.247tech.vn/)\
Môi trường production: <https://api.247express.vn>
{% endhint %}

#### NOTE

{% hint style="info" %}
Bắt buộc phải nhập các trường có đánh dấu.\
Các API đều yêu cầu Headers có Token và ClientID.
{% endhint %}


---

# 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://apidoc.247express.vn/master.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.
