Actions38
- Zalo OA Actions
- Gửi Tin Nhắn Văn Bản Vào Nhóm
- Gửi Tin Nhắn Văn Bản
- Gửi Tin Nhắn Hình Ảnh
- Gửi Tin Nhắn File
- Gửi Tin Nhắn Danh Sách
- Lấy Thông Tin Người Theo Dõi
- Lấy Danh Sách Người Theo Dõi
- Cập Nhật Thông Tin Người Theo Dõi
- Lấy Danh Sách Cuộc Trò Chuyện Gần Đây
- Lấy Lịch Sử Hội Thoại
- Kiểm Tra Trạng Thái Tin Nhắn
- Upload Hình Ảnh
- Gửi Tin Tư Vấn Kèm Ảnh
- Upload Hình Ảnh GIF
- Upload File
- Lấy Danh Sách Tag
- Gán Tag Cho Người Theo Dõi
- Xóa Tag
- Xóa Người Theo Dõi Khỏi Tag
- Cập Nhật Menu OA
- Tạo Bài Viết
- Cập Nhật Bài Viết
- Xóa Bài Viết
- Lấy Danh Sách Bài Viết
- Lấy Chi Tiết Bài Viết
- Chuẩn Bị Upload Video
- Xác Thực Video
- Tạo Sản Phẩm
- Cập Nhật Sản Phẩm
- Lấy Thông Tin Sản Phẩm
- Lấy Danh Sách Sản Phẩm
- Tạo Danh Mục
- Cập Nhật Danh Mục
- Lấy Danh Sách Danh Mục
- Tạo Đơn Hàng
- Cập Nhật Đơn Hàng
- Lấy Thông Tin Đơn Hàng
- Lấy Danh Sách Đơn Hàng
Overview
This node integrates with the Zalo Official Account (OA) API to update the status of an existing order. It allows users to change the order's state, such as marking it as pending, confirmed, shipping, delivered, or canceled, and optionally provide a reason for the status update.
Typical use cases include:
- Automating order management workflows by syncing order statuses from external systems into Zalo OA.
- Notifying customers about changes in their order status via Zalo OA.
- Managing order lifecycle states directly within n8n workflows connected to Zalo OA.
For example, after receiving a shipment confirmation from a logistics provider, this node can update the order status to "Đang Giao Hàng" (shipping) with a note explaining the update.
Properties
| Name | Meaning |
|---|---|
| ID Đơn Hàng | The unique identifier of the order to be updated or viewed. |
| Trạng Thái Đơn Hàng | The new status of the order. Options: Chờ Xác Nhận (pending), Đã Xác Nhận (confirmed), Đang Giao Hàng (shipping), Đã Giao Hàng (delivered), Đã Hủy (canceled). |
| Lý Do | The reason for updating the order status; an optional descriptive text. |
Output
The node outputs a JSON object representing the response from the Zalo OA API after attempting to update the order. This typically includes details about the success or failure of the operation, any updated order information, and error messages if applicable.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo Official Account API.
- The node uses the Zalo OA API v3.0 endpoint
https://openapi.zalo.me/v3.0/oa/store/order/updateto perform the update. - Proper permissions must be granted to the API token to allow order updates.
- Network access to the Zalo OA API endpoints is necessary.
Troubleshooting
Common Issues:
- Invalid or expired API tokens will cause authentication failures.
- Incorrect order IDs may result in errors indicating the order does not exist.
- Insufficient permissions on the API token can lead to authorization errors.
- Providing an invalid status value outside the allowed options will cause request rejection.
Error Messages and Resolutions:
- "Please check the order parameters and OA access permissions."
Ensure that the order ID is correct and that the API token has the required scopes. - API response errors with HTTP status codes like 401 or 403
Verify that the API key credential is valid and has not expired. - Network errors or timeouts
Check network connectivity and firewall settings allowing access toopenapi.zalo.me. - If the node returns an error with a message about missing or invalid parameters, double-check the input fields for correctness.
- "Please check the order parameters and OA access permissions."
Links and References
If you need further assistance configuring or troubleshooting this node, consult the official Zalo OA API documentation or reach out to the Zalo developer support channels.