Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Zalo OA → Cập Nhật Đơn Hàng

AI-generated

Summary

Update the status of an existing order in Zalo Official Account by specifying the order ID, new status, and optionally a reason for the status change.

Inputs

  • ID Đơn Hàng (required) — The unique identifier of the order to be updated.
  • Trạng Thái Đơn Hàng (required) — The new status to set for the order; options include pending, confirmed, shipping, delivered, or canceled.
  • Lý Do — The reason for updating the order status, provided as a text string.

Output shape

a single JSON object representing the API response from Zalo OA server regarding the order update operation

The JSON response includes the confirmation or error details of the order update request. If the API call fails, the returned object may include error information.

Examples

Example 1: Update order status to 'Đã Xác Nhận' (confirmed) with a reason

Set 'ID Đơn Hàng' to the target order ID, 'Trạng Thái Đơn Hàng' to 'confirmed', and optionally provide a 'Lý Do' explaining the update.

Discussion