# Webhook đơn hàng

Để cấu hình webhook đơn hàng, Quý khách hàng có thể truy cập menu **Cấu hình ⇒ Thông tin shop ⇒ Tab Đối tác**

Click vào icon **Cấu hình gửi thông báo** để tiến hành khai báo URL Webhook để tiếp nhận thông tin mà Abit đẩy về theo URL đó

<figure><img src="/files/JCj2WezAX8F5N0ZWHjxa" alt=""><figcaption><p>Chọn trạng thái đơn hàng khi có biến động về trạng thái thì sẽ bắn thông tin đơn hàng về URL API Webhook</p></figcaption></figure>

{% tabs %}
{% tab title="Json example" %}

```json
{
   "invoice_date":"2025-04-30T17:00:00.000Z",
   "eoi_order_id":"578675043107439962",
   "adjustment":0,
   "sales_commission":0,
   "sub_total":69000,
   "total":76700,
   "discount_amount":0,
   "discount_percent":0,
   "s_h_amount":7700,
   "mahang":"(1)AOTHUN...",
   "campaign":"",
   "campaign_group":"",
   "channel":"TIKTOK_SHOP",
   "nhanvien":"demo",
   "order_source":"TIKTOK_SHOP",
   "message":"SL: 1 - Mã SP: AOTHUN - Tên SP: Ao thun có cổ -  Giá bán: 69000",
   "ecom_doanhso":76700,
   "ecom_username":"7495809628279114074",
   "order_source_name":"VN - Shop thời trang",
   "created_at":"2025-05-01T16:57:31.000Z",
   "products":"[{\"currency\":\"VND\",\"display_status\":\"AWAITING_SHIPMENT\",\"id\":\"578675043107571034\",\"is_gift\":false,\"original_price\":\"95000\",\"package_id\":\"1161280609977664858\",\"package_status\":\"TO_FULFILL\",\"platform_discount\":0,\"product_id\":\"1731307057752475541\",\"product_name\":\"Áo thun nam nữ\",\"sale_price\":\"69000\",\"seller_discount\":26000,\"seller_sku\":\"AOTHUN\",\"shipping_provider_id\":\"6841743441349706241\",\"shipping_provider_name\":\"Ju0026T Express\",\"sku_id\":\"1731307086149617557\",\"sku_image\":\"https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/fa5523810cfd4622944b1785f100eaa4~tplv-aphluv4xwc-origin-jpeg.jpeg?dr=15568u0026t=555f072du0026ps=933b5bdeu0026shp=54477afbu0026shcp=3c3d9ffbu0026idc=my2u0026from=1413970683\",\"sku_name\":\"ÁO XE MÁY CỜ, L (48-58kg) (u003C1.68m)\",\"sku_type\":\"NORMAL\",\"tracking_number\":\"\",\"quantity\":1}]",
   "phone_number":"(+84)098*****63",
   "donvi_vc":"JNT",
   "tiendatcoc":0,
   "receiver":"D** A** k***",
   "address":"Viet Nam  Ha Noi  Quoc Oai  Qu****** Ch*******************",
   "tracking_no":"8590632397119",
   "invoicestatus":"Daphatthanhcong",
   "idanh":"",
   "name":"578675043107439961",
   "invoice_no":"EG71409856A45",
   "invoice_id":79069511,
   "updated_at":"2025-05-13T15:15:00.000Z",
   "invoice_status":"Daphatthanhcong"
}
```

{% 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://apidocs.abit.vn/webhook/webhook-don-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.
