Zalo OA icon

Zalo OA

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

Zalo OA → Tạo Đơn Hàng

AI-generated

Summary

Create a new order in the Zalo Official Account store by specifying user and shipping information along with a list of ordered products and payment details.

Inputs

  • User ID (required) — ID of the user placing the order.
  • Tên Người Nhận (required) — Name of the recipient for the shipping.
  • Số Điện Thoại (required) — Phone number of the shipping recipient.
  • Địa Chỉ Giao Hàng (required) — Shipping address.
  • Thành Phố — City for the shipping address.
  • Danh Sách Sản Phẩm — List of products in the order, each with product ID, quantity, and price.
  • Phí Vận Chuyển — Shipping fee amount.
  • Giảm Giá — Discount amount applied to the order.
  • Tổng Tiền — Total amount of the order.

Output shape

a single JSON object representing the API response from creating the order

The output contains details about the created order or an error message if the creation failed.

Examples

Example 1: Create an Order

Set User ID, recipient name, phone, address, optionally city, add product list with product IDs, quantities, and prices, set shipping fee, discount and total amounts; then execute to create the order via Zalo OA API.

Discussion