# Salework Open Api

Với hệ thống Salework, bạn đã có thể kết nối API trực tiếp từ Salework từ hệ thống bên ngoài. Ví dụ: để đồng bộ đơn hàng, sản phẩm tại website của mình.&#x20;

Salework Open API cung cấp các API khả dụng sau:&#x20;

* [Lấy danh sách sản phẩm và kho hàng](/salework-tai-lieu/he-thong-ho-tro/salework-open-api/product-get-list.md)
* [Tạo đơn hàng ngoại sàn](/salework-tai-lieu/he-thong-ho-tro/salework-open-api/order-create-3rd-logistics.md)
* [Tạo phiếu xuất kho](/salework-tai-lieu/he-thong-ho-tro/salework-open-api/warehouse-import.md)
* [Tạo phiếu nhập kho](/salework-tai-lieu/he-thong-ho-tro/salework-open-api/warehouse-export.md)
* [Tạo phiếu hoàn kho](/salework-tai-lieu/he-thong-ho-tro/salework-open-api/warehouse-return.md)
* [Báo cáo số lượng sản phẩm đã bán theo thời gian](/salework-tai-lieu/he-thong-ho-tro/salework-open-api/product-report.md)
* Tạo khoản thu (Salework Banking)

Để gọi được các API các bạn cần truyền clientId và token vào header của các Request. Bạn có thể lấy được clientId và token cho tổ chức kinh doanh của mình theo các bước dưới đây.

&#x20;Tại Salework Admin, bạn chọn **Open API** và bấm **Bắt đầu sử dụng**

<figure><img src="/files/D8O0SWb72QoupxM6WTKQ" alt=""><figcaption></figcaption></figure>

Tại đây, bạn có thể lấy Client ID và Token của mình.

<figure><img src="/files/ZA4MgihJfQRehmDkjQK4" alt=""><figcaption></figcaption></figure>

#### Ví dụ về  Request Headers

<pre data-overflow="wrap" data-line-numbers><code><strong>client-id: 123456
</strong>token: 50000601c30atpedfgu3LVvik87Ixlsvle3mSoB7701ceb156fPunYZ43GBg
</code></pre>


---

# 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://docs.salework.net/salework-tai-lieu/he-thong-ho-tro/salework-open-api.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.
